You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Sateesh Karuturi <sa...@gmail.com> on 2015/06/02 15:39:19 UTC

NoSuchMethodError when hive.execution.engine value its tez

I am using *hive 1.0.0* and *apache tez 0.4.1* When I configure hive to use
tez I get an exception.

In *hive-site.xml* when the *hive.execution.engine* value is mr its works
fine. But if I set it to tez I get this error:


Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.tez.mapreduce.hadoop.MRHelpers.updateEnvBasedOnMRAMEnv(Lorg/apache/hadoop/conf/Configuration;Ljava/util/Map;)V

at
org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:169)

at
org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:122)

at
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:454)

at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:626)

at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:570)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.apache.hadoop.util.RunJar.run(RunJar.java:221)

at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

Re: NoSuchMethodError when hive.execution.engine value its tez

Posted by Gopal Vijayaraghavan <go...@apache.org>.
> I am using *hive 1.0.0* and *apache tez 0.4.1* When I configure hive to use
> tez I get an exception.
Use the tez.version that hive-1.0.0 is tested with ­ 0.5.2
(https://github.com/apache/hive/blob/branch-1.0/pom.xml#L155)

I suspect you¹ll get several build failures trying to build 1.0.0 against
tez-0.4.x branch, since the APIs changed signficantly during Tez¹s promotion
to a top-level project.

Cheers,
Gopal




Re: NoSuchMethodError when hive.execution.engine value its tez

Posted by Sateesh Karuturi <sa...@gmail.com>.
I am using *hive 1.0.0* and *apache tez 0.4.1* When I configure hive to use
tez I get an exception.

In *hive-site.xml* when the *hive.execution.engine* value is mr its works
fine. But if I set it to tez I get this error:


Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.tez.mapreduce.hadoop.MRHelpers.updateEnvBasedOnMRAMEnv(Lorg/apache/hadoop/conf/Configuration;Ljava/util/Map;)V

at
org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:169)

at
org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:122)

at
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:454)

at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:626)

at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:570)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.apache.hadoop.util.RunJar.run(RunJar.java:221)

at org.apache.hadoop.util.RunJar.main(RunJar.java:136)


On Tue, Jun 2, 2015 at 7:09 PM, Sateesh Karuturi <
sateesh.karuturi9@gmail.com> wrote:

> I am using *hive 1.0.0* and *apache tez 0.4.1* When I configure hive to
> use tez I get an exception.
>
> In *hive-site.xml* when the *hive.execution.engine* value is mr its works
> fine. But if I set it to tez I get this error:
>
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.tez.mapreduce.hadoop.MRHelpers.updateEnvBasedOnMRAMEnv(Lorg/apache/hadoop/conf/Configuration;Ljava/util/Map;)V
>
> at
> org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:169)
>
> at
> org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:122)
>
> at
> org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:454)
>
> at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:626)
>
> at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:570)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:606)
>
> at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
>
> at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
>
>