简体   繁体   English

运行Hive查询时权限被拒绝

[英]Permission denied when running hive query

When I am trying to run simple SELECT in Hive I got following error: 当我尝试在Hive中运行简单的SELECT时,出现以下错误:

Application application_1386250421542_0001 failed 2 times due to AM Container for appattempt_1386250421542_0001_000002 exited with exitCode: 126 due to: Exception from container-launch:
org.apache.hadoop.util.Shell$ExitCodeException: /bin/bash: /var/lib/hadoop/hadoop-yarn/usercache/hdfs/appcache/application_1386250421542_0001/container_1386250421542_0001_02_000001/launch_container.sh: Permission denied
at org.apache.hadoop.util.Shell.runCommand(Shell.java:464)
at org.apache.hadoop.util.Shell.run(Shell.java:379)
at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:589)
at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:195)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:283)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:79)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
.Failing this attempt.. Failing the application.

I tried to change permissions, but without success. 我试图更改权限,但没有成功。 My hadoop is installed on RHEL. 我的hadoop已安装在RHEL上。

UPDATE 更新

This error happened on every MapReduce program, so Hive is not a problem here. 每个MapReduce程序都会发生此错误,因此Hive在这里不是问题。

The problem was in /etc/fstab. 问题出在/ etc / fstab中。 The partition for hadoop was mounted with noexec hadoop的分区已通过noexec挂载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM