Permission denied when running hive query

2019-09-17 12:12发布

When I am trying to run simple SELECT in Hive I got following error:

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.

UPDATE

This error happened on every MapReduce program, so Hive is not a problem here.

标签: java hadoop hive
1条回答
Summer. ? 凉城
2楼-- · 2019-09-17 12:21

The problem was in /etc/fstab. The partition for hadoop was mounted with noexec

查看更多
登录 后发表回答