运行配置单元查询时权限被拒绝

时间:2013-12-06 16:09:15

标签: java hadoop hive

当我试图在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.

我尝试更改权限,但没有成功。我的hadoop安装在RHEL上。

更新

这个错误发生在每个MapReduce程序上,所以Hive在这里不是问题。

1 个答案:

答案 0 :(得分:0)

问题出在/ etc / fstab中。 hadoop的分区安装了noexec