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

Make sure you're using Spring 3.2.5 or better spring-data-solr解决

Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: AnnotationConfigUtils.processCommonDefinitionAnnotations(…) is not public! Make sure you're using Spring 3.2.5 or better...

java.io.IOException: Segment already parsed

ERROR security.UserGroupInformation: PriviledgedActionException as:hadoop cause:java.io.IOException: Segment already parsed! Exception in thread "main" java.io.IOException: Segment already parsed!...

org.apache.hadoop.ipc.rpc server at 9000 not available yet zzzzz解决

hadoop分布式集群启动过程出现的错误 org.apache.hadoop.ipc.rpc server at 9000 not available yet zzzzz 主要原因,namenode服务器的 /etc/hosts中配置了 127.0.0.1 master 需要去掉,改为服务器的ip。...

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