You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Rahul Channe <dr...@googlemail.com> on 2015/05/08 03:48:16 UTC

Hive 0.14 startup error

Hi All,

I am getting following error on starting hive 0.14. Need help

user@ubuntuvm:~/hive-0.14.0$ hive

Logging initialized using configuration in
jar:file:/home/user/hive-0.14.0/lib/hive-common-0.14.0.jar!/hive-log4j.properties
Exception in thread "main" java.lang.RuntimeException:
java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should
be writable. Current permissions are: rwx--x--x
        at
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:444)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:672)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:616)
        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:622)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
Caused by: java.lang.RuntimeException: The root scratch dir: /tmp/hive on
HDFS should be writable. Current permissions are: rwx--x--x
        at
org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:529)
        at
org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:478)
        at
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:430)
        ... 7 more
user@ubuntuvm:~/hive-0.14.0$

Re: Hive 0.14 startup error

Posted by Eduardo Ferreira <ea...@gmail.com>.
The recommendation is to set permissions to 1777 on /tmp, including
/tmp/hive.
On May 7, 2015 9:49 PM, "Rahul Channe" <dr...@googlemail.com> wrote:

> Hi All,
>
> I am getting following error on starting hive 0.14. Need help
>
> user@ubuntuvm:~/hive-0.14.0$ hive
>
> Logging initialized using configuration in
> jar:file:/home/user/hive-0.14.0/lib/hive-common-0.14.0.jar!/hive-log4j.properties
> Exception in thread "main" java.lang.RuntimeException:
> java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should
> be writable. Current permissions are: rwx--x--x
>         at
> org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:444)
>         at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:672)
>         at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:616)
>         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:622)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
> Caused by: java.lang.RuntimeException: The root scratch dir: /tmp/hive on
> HDFS should be writable. Current permissions are: rwx--x--x
>         at
> org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:529)
>         at
> org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:478)
>         at
> org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:430)
>         ... 7 more
> user@ubuntuvm:~/hive-0.14.0$
>
>