Hive启动出现权限错误 /tmp/hive on HDFS should be writable.
2017-02-09 15:25
399 查看
一.启动Hadoop后运行Hive时出现如下错误。
Exception in thread "main"java.lang.RuntimeException: java.lang.RuntimeException:The root scratch dir:/tmp/hive on HDFS should be writable.
从The root scratch dir: /tmp/hive on HDFS should be writable. Currentpermissions are: rwxr-xr-x可以看出。系统要求在hdfs上用户应该具备写权限,而从报错可以看出只有所有者具有写权限,所有组合其他用户不具备。
三.错误修改。
使用hadoop fs hadoop fs -chmod -R dir修改目录权限,如下
使其他用户也具备本目录的写权限
Exception in thread "main"java.lang.RuntimeException: java.lang.RuntimeException:The root scratch dir:/tmp/hive on HDFS should be writable.
Exception in thread "main" java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:705) at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:635) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:563) at org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:531) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:705) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641) 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:498) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136)二.错误分析。
从The root scratch dir: /tmp/hive on HDFS should be writable. Currentpermissions are: rwxr-xr-x可以看出。系统要求在hdfs上用户应该具备写权限,而从报错可以看出只有所有者具有写权限,所有组合其他用户不具备。
三.错误修改。
使用hadoop fs hadoop fs -chmod -R dir修改目录权限,如下
root@hadoop22 ~]# hadoop fs -chmod -R 777 /tmp
使其他用户也具备本目录的写权限
相关文章推荐
- hive启动出现权限错误 /tmp/hive on HDFS should be writable.
- hive启动报错:Caused by: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be
- The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rw-rw-rw-
- Caused by:java.lang.RuntimeException:The root scratch dir:/tmp/hive on HDFS should be writable.
- phpmyadmin出现“Wrong permissions on configuration file, should not be world writable!”错误
- 进入phpmyadmin出现Wrong permissions on configuration file, should not be world writable!
- phpmyadmin提示错误Wrong permissions on configuration file, should not be world writable!解决方法
- azkaban-web-start.sh启动时出现Table 'execution_flows' is marked as crashed and should be repaired Query错误的解决办法(图文详解)
- 访问日志文件过大而导致启动 Apache 时出现 httpd could not be started 错误
- mysql启动异常之--TCP/IP, --shared-memory, or --named-pipe should be configured on NT OS
- hive第一次启动时,常出现的错误以及解决办法
- HUE 报错误:Filesystem root '/' should be owned by 'hdfs'
- 当启动tomcat时出现tomcat setting should be set in tomcat preference pag
- Mysql启动出现MySQL server PID file could not be found 错误
- 启动Tomcat 出现 Can't load AMD 64-bit .dll on a IA 32-bit platform错误的解决办法
- 启动Tomcat 出现 Can't load AMD 64-bit .dll on a IA 32-bit platform错误的解决办法
- Wrong permissions on configuration file, should not be world writable问题解决办法
- hadoop-HA集群搭建,启动DataNode,检测启动状态,执行HDFS命令,启动YARN,HDFS权限配置,C++客户端编程,常见错误
- 启动SQL Server 2005 配置管理器时,出现以下提示错误,无法连接到WMI提供程序。您没有权限或者该服务器无法访问