【问题标题】:Permission denied when running hive query运行配置单元查询时权限被拒绝
【发布时间】:2013-12-06 16:09:15
【问题描述】:

当我尝试在 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 在这里不是问题。

【问题讨论】:

  • 您是否授予了脚本的执行权限?
  • @SSaikia_JtheRocker 我该怎么办?该文件由hadoop自己创建,由hadoop执行,由hadoop删除。我无法管理它的权利。

标签: java hadoop hive


【解决方案1】:

问题出在 /etc/fstab 中。 hadoop 的分区挂载了noexec

【讨论】:

  • 你能详细解释一下吗@garath。我面临同样的问题。
  • 就我而言,当我检查 fstab 时,我发现 hadoop 分区上的权限错误
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-06-11
  • 2015-11-09
  • 2017-03-24
相关资源
最近更新 更多