简体   繁体   English

Hadoop、Map 上的 Hive 上的 Hive 减少不起作用 - 错误:无法找到或加载主 ZA2F2ED4F8EBC2061AB4

[英]Hive on Hadoop, Map Reduce not working - Error: Could not find or load main class 1600

Need help in resolving below issue.需要帮助解决以下问题。 I have installed Ubuntu as Windows subsystem on Windows 10. Installed Hadoop 3.1.3 and Hive 3.1.2 I have installed Ubuntu as Windows subsystem on Windows 10. Installed Hadoop 3.1.3 and Hive 3.1.2

When I am running normal query without MapReduce its running fine.当我在没有 MapReduce 的情况下运行正常查询时,它运行良好。

hive> use bhudwh;
OK
Time taken: 1.075 seconds
hive> select id from matches where id < 5;
OK
1
2
3
4
Time taken: 6.012 seconds, Fetched: 4 row(s)
hive>

When running MapReduce query, it throws error - Error: Could not find or load main class 1600.运行 MapReduce 查询时,它会引发错误 - 错误:无法找到或加载主 class 1600。

hive> select distinct id from matches;
Query ID = bhush_20200529144705_62bc4f10-1604-453f-a90c-ed905c9c1fe9
Total jobs = 1
Launching Job 1 out of 1
Number of reduce tasks not specified. Estimated from input data size: 1
In order to change the average load for a reducer (in bytes):
  set hive.exec.reducers.bytes.per.reducer=<number>
In order to limit the maximum number of reducers:
  set hive.exec.reducers.max=<number>
In order to set a constant number of reducers:
  set mapreduce.job.reduces=<number>
Starting Job = job_1590670326852_0003, Tracking URL = http://DESKTOP-EU9VK4S.localdomain:8088/proxy/application_1590670326852_0003/
Kill Command = /mnt/e/Study/Hadoop/hadoop-3.1.3/bin/mapred job  -kill job_1590670326852_0003
Hadoop job information for Stage-1: number of mappers: 1; number of reducers: 1
2020-05-29 14:47:24,644 Stage-1 map = 0%,  reduce = 0%
2020-05-29 14:47:41,549 Stage-1 map = 100%,  reduce = 100%
Ended Job = job_1590670326852_0003 with errors
Error during job, obtaining debugging information...
Examining task ID: task_1590670326852_0003_m_000000 (and more) from job job_1590670326852_0003
Task with the most failures(4):
-----
Task ID:
  task_1590670326852_0003_m_000000
URL:
  http://0.0.0.0:8088/taskdetails.jsp?jobid=job_1590670326852_0003&tipid=task_1590670326852_0003_m_000000
-----
Diagnostic Messages for this Task:
[2020-05-29 14:47:40.355]Exception from container-launch.
Container id: container_1590670326852_0003_01_000005
Exit code: 1
[2020-05-29 14:47:40.360]Container exited with a non-zero exit code 1. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
Error: Could not find or load main class 1600
[2020-05-29 14:47:40.361]Container exited with a non-zero exit code 1. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
Error: Could not find or load main class 1600
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
MapReduce Jobs Launched:
Stage-Stage-1: Map: 1  Reduce: 1   HDFS Read: 0 HDFS Write: 0 FAIL
Total MapReduce CPU Time Spent: 0 msec
hive>

Below are few lines from Hadoop logs.以下是 Hadoop 日志中的几行。

2020-05-29 14:47:28,262 INFO [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: Reduce slow start threshold not met. completedMapsForReduceSlowstart 1
2020-05-29 14:47:28,262 INFO [AsyncDispatcher event handler] org.apache.hadoop.mapreduce.v2.app.job.impl.TaskAttemptImpl: Diagnostics report from attempt_1590670326852_0003_m_000000_0: [2020-05-29 14:47:27.559]Exception from container-launch.
Container id: container_1590670326852_0003_01_000002
Exit code: 1
[2020-05-29 14:47:27.565]Container exited with a non-zero exit code 1. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
Error: Could not find or load main class 1600
[2020-05-29 14:47:27.566]Container exited with a non-zero exit code 1. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
Error: Could not find or load main class 1600

I have tried all the configuration changes suggested in different threads but its not working.我已经尝试了不同线程中建议的所有配置更改,但它不起作用。

I have also checked Hadoop MapReduce example of WordCount and it also fails with same error.我还检查了WordCount的 Hadoop MapReduce 示例,它也因同样的错误而失败。 All Hadoop processes seems running fine.所有 Hadoop 进程似乎运行良好。 Output of jps command. jps命令的 Output。

9473 NodeManager
11798 Jps
9096 ResourceManager
8554 DataNode
8331 NameNode
8827 SecondaryNameNode

Please suggest how to resolve this error.请建议如何解决此错误。

It looks like the start command of the MapReduce task contains an illegal option 1600 .看起来 MapReduce 任务的启动命令包含非法选项1600 You need to check whether exists an illegal configuration yarn.app.mapreduce.am.command-opts with a value of 1600 in your yarn-site.xml.您需要检查您的yarn-site.xml中是否存在值为1600的非法配置yarn.app.mapreduce.am.command-opts

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Hadoop错误:无法找到或加载主类类路径TestJava - Hadoop Error: Could not find or load main class class path TestJava 错误:找不到或加载正在运行Hadoop的主类 - Error: Could not find or load main class Running Hadoop hadoop错误:无法找到或加载主类MultiOutWordCount - hadoop Error: Could not find or load main class MultiOutWordCount 启动时出现“错误:找不到或无法加载主类” Hadoop - "Error: Could not find or load main class" when starting Hadoop Hadoop无法找到或加载主类 - Hadoop Could not find or load main class 错误:无法在Hadoop上找到或加载主类org.apache.hadoop.hdfs.tools.GetConf - Error: Could not find or load main class org.apache.hadoop.hdfs.tools.GetConf on Hadoop Hadoop 2.7.2 - 错误:无法找到或加载主类 org.apache.hadoop.hdfs.server.namenode.NameNode - Hadoop 2.7.2 - Error: Could not find or load main class org.apache.hadoop.hdfs.server.namenode.NameNode HADOOP 错误:无法找到或加载主类 org.apache.hadoop.fs.FsShell - HADOOP Error: Could not find or load main class org.apache.hadoop.fs.FsShell Hadoop 编译错误:无法找到或加载主类 com.sun.tools.javac.Main - Hadoop Compilation Error: Could not find or load main class com.sun.tools.javac.Main 字数统计 hadoop 程序:错误:无法找到或加载主类 com.sun.tools.javac.Main - Word Count hadoop program: Error: Could not find or load main class com.sun.tools.javac.Main
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM