Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用节俭工具运行蜂箱挂钩时出现容器错误_Java_Hadoop_Mapreduce_Hive_Yarn - Fatal编程技术网

Java 使用节俭工具运行蜂箱挂钩时出现容器错误

Java 使用节俭工具运行蜂箱挂钩时出现容器错误,java,hadoop,mapreduce,hive,yarn,Java,Hadoop,Mapreduce,Hive,Yarn,我是一个构建工具的人,需要在Hive SemanticAnalyzer中运行MapReduce作业。当我运行启动配置单元驱动程序的自定义java程序时,MapReduce作业运行良好。但是,当我试图通过修改HiveServer2和HiveJDBC(与修改后的服务器连接良好)来执行钩子时,MapReduce作业失败,并出现以下错误: Application application_1395851979242_0009 failed 2 times due to AM Container for a

我是一个构建工具的人,需要在Hive SemanticAnalyzer中运行MapReduce作业。当我运行启动配置单元驱动程序的自定义java程序时,MapReduce作业运行良好。但是,当我试图通过修改HiveServer2和HiveJDBC(与修改后的服务器连接良好)来执行钩子时,MapReduce作业失败,并出现以下错误:

Application application_1395851979242_0009 failed 2 times due to AM Container for appattempt_1395851979242_0009_000002 exited with exitCode: 1 due to: Exception from container-launch:
org.apache.hadoop.util.Shell$ExitCodeException:
        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:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
还有其他人遇到过类似的纱线错误吗?

我使用命令:
纱线原木--applicationId myAppId

检索应用程序容器日志

在那之后,我发现我丢失了一些罐子。由于我正在处理的应用程序的性质(MR Jobs是从Thrift的Hive Hook启动的),我不得不编辑MapReduce作业配置,将JAR包含在“tmpjars”设置中