복붙노트

[HADOOP] 하이브 쿼리를 실행할 때 권한이 거부

HADOOP

하이브 쿼리를 실행할 때 권한이 거부

내가 하이브에서 간단한 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.

나는 권한을 변경하려했으나 성공하지. 내 하둡은 RHEL에 설치되어 있습니다.

최신 정보

이 오류는 모든 맵리 듀스 프로그램에 일어난, 그래서 하이브 여기에 문제가되지 않습니다.

해결법

  1. ==============================

    1.문제의 / etc / fstab에 있었다. 하둡에 대한 파티션은 NOEXEC 장착 된

    문제의 / etc / fstab에 있었다. 하둡에 대한 파티션은 NOEXEC 장착 된

  2. from https://stackoverflow.com/questions/20428471/permission-denied-when-running-hive-query by cc-by-sa and MIT license