ItGo.me - 专注IT技术分享

首页 > Exception > The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwx-wx--x

The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwx-wx--x

时间:2015-04-26来源:网友分享 点击:

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-wx--x
    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:472)
    at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:671)
    at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
    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.main(RunJar.java:160)
Caused by: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwx-wx--x
    at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:557)
    at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:506)
    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:458)
    
    解决方法:
Update the permission of your /tmp/hive HDFS directory using the following command
   hadoop fs -chmod 777 /tmp/hive

If so can you remove /tmp/hive on both local and hdfs.
    hadoop fs -rm -r /tmp/hive;  
    rm -rf /tmp/hive

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server....

Could not find output/spill0.out in any of the configured local directories

java.lang.Exception: org.apache.hadoop.util.DiskChecker$DiskErrorException: Could not find output/spill0.out in any of the configured local directories ...

Column count doesn't match value count at row 1原因及解决

Cause: java.sql.SQLException: Column count doesn't match value count at row 1...

The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwx-wx--x
------分隔线----------------------------