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/15 21:47:01 UTC

hive on tez error

iam using hive 1.0.0 and tez 0.5.2.. whenever iam trying to open the hive
getting following error:
Exception in thread "main" java.lang.RuntimeException: java.io.IOException:
Previous writer likely failed to write
hdfs://localhost:9000/tmp/hive/hadoop/_tez_session_dir/002dad89-59b6-43c9-92f9-1c7b2232b1c4/tez.
Failing because I am unlikely to write too.
at
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:457)
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:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.io.IOException: Previous writer likely failed to write
hdfs://localhost:9000/tmp/hive/hadoop/_tez_session_dir/002dad89-59b6-43c9-92f9-1c7b2232b1c4/tez.
Failing because I am unlikely to write too.
at
org.apache.hadoop.hive.ql.exec.tez.DagUtils.localizeResource(DagUtils.java:979)
at
org.apache.hadoop.hive.ql.exec.tez.DagUtils.addTempResources(DagUtils.java:860)
at
org.apache.hadoop.hive.ql.exec.tez.DagUtils.localizeTempFilesFromConf(DagUtils.java:803)
at
org.apache.hadoop.hive.ql.exec.tez.TezSessionState.refreshLocalResourcesFromConf(TezSessionState.java:228)
at
org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:154)
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)
... 8 more

Re: hive on tez error

Posted by Sateesh Karuturi <sa...@gmail.com>.
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 127.0.0.1:9000              0.0.0.0:*
LISTEN      8030/java
tcp        0      0 127.0.0.1:9000              127.0.0.1:40274
ESTABLISHED 8030/java
tcp        0      0 127.0.0.1:40442             127.0.0.1:9000
 ESTABLISHED 8323/java
tcp        0      0 127.0.0.1:9000              127.0.0.1:40442
ESTABLISHED 8030/java
tcp        0      0 127.0.0.1:40441             127.0.0.1:9000
 TIME_WAIT   -
tcp        0      0 127.0.0.1:40274             127.0.0.1:9000
 ESTABLISHED 8157/java

On Tue, Jun 16, 2015 at 1:36 AM, Steve Howard <st...@gmail.com>
wrote:

> What does netstat -anp | grep 9000 show?
>
> On Mon, Jun 15, 2015 at 3:47 PM, Sateesh Karuturi <
> sateesh.karuturi9@gmail.com> wrote:
>
>> iam using hive 1.0.0 and tez 0.5.2.. whenever iam trying to open the hive
>> getting following error:
>> Exception in thread "main" java.lang.RuntimeException:
>> java.io.IOException: Previous writer likely failed to write
>> hdfs://localhost:9000/tmp/hive/hadoop/_tez_session_dir/002dad89-59b6-43c9-92f9-1c7b2232b1c4/tez.
>> Failing because I am unlikely to write too.
>> at
>> org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:457)
>> 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:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:483)
>> at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
>> at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
>> Caused by: java.io.IOException: Previous writer likely failed to write
>> hdfs://localhost:9000/tmp/hive/hadoop/_tez_session_dir/002dad89-59b6-43c9-92f9-1c7b2232b1c4/tez.
>> Failing because I am unlikely to write too.
>> at
>> org.apache.hadoop.hive.ql.exec.tez.DagUtils.localizeResource(DagUtils.java:979)
>> at
>> org.apache.hadoop.hive.ql.exec.tez.DagUtils.addTempResources(DagUtils.java:860)
>> at
>> org.apache.hadoop.hive.ql.exec.tez.DagUtils.localizeTempFilesFromConf(DagUtils.java:803)
>> at
>> org.apache.hadoop.hive.ql.exec.tez.TezSessionState.refreshLocalResourcesFromConf(TezSessionState.java:228)
>> at
>> org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:154)
>> 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)
>> ... 8 more
>>
>>
>

Re: hive on tez error

Posted by Steve Howard <st...@gmail.com>.
What does netstat -anp | grep 9000 show?

On Mon, Jun 15, 2015 at 3:47 PM, Sateesh Karuturi <
sateesh.karuturi9@gmail.com> wrote:

> iam using hive 1.0.0 and tez 0.5.2.. whenever iam trying to open the hive
> getting following error:
> Exception in thread "main" java.lang.RuntimeException:
> java.io.IOException: Previous writer likely failed to write
> hdfs://localhost:9000/tmp/hive/hadoop/_tez_session_dir/002dad89-59b6-43c9-92f9-1c7b2232b1c4/tez.
> Failing because I am unlikely to write too.
> at
> org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:457)
> 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:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> Caused by: java.io.IOException: Previous writer likely failed to write
> hdfs://localhost:9000/tmp/hive/hadoop/_tez_session_dir/002dad89-59b6-43c9-92f9-1c7b2232b1c4/tez.
> Failing because I am unlikely to write too.
> at
> org.apache.hadoop.hive.ql.exec.tez.DagUtils.localizeResource(DagUtils.java:979)
> at
> org.apache.hadoop.hive.ql.exec.tez.DagUtils.addTempResources(DagUtils.java:860)
> at
> org.apache.hadoop.hive.ql.exec.tez.DagUtils.localizeTempFilesFromConf(DagUtils.java:803)
> at
> org.apache.hadoop.hive.ql.exec.tez.TezSessionState.refreshLocalResourcesFromConf(TezSessionState.java:228)
> at
> org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:154)
> 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)
> ... 8 more
>
>