当前位置: 首页 > 知识库问答 >
问题:

我在尝试使用Hadoop和Yarn时出错了。援助被重新询问,

慕乐语
2023-03-14

第一岗!我正试图使用mapreduce和HADOOP以及Yarn运行一个WordCount程序,结果出现了以下错误:

线程“main”java.lang.noClassDefFoundError:org/apache/hadoop/yarn/exceptions/yarnRuntimeException

我遵循此网站中的说明:https://hadoop.apache.org/docs/stable/hadoop-Mapreduce-client/hadoop-Mapreduce-client-core/mapreduceTutorial.html#示例:_wordcount_v1.0

共有1个答案

盛柏
2023-03-14
warning: You have loaded library /usr/local/hadoop/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
2020-08-16 17:49:11,518 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2020-08-16 17:49:18,923 INFO client.RMProxy: Connecting to ResourceManager at Pi1-Master/192.168.0.101:8050
2020-08-16 17:49:22,858 WARN mapreduce.JobResourceUploader: Hadoop command-line option parsing not performed. Implement the Tool interface and execute your application with ToolRunner to remedy this.
2020-08-16 17:49:24,009 INFO mapreduce.JobResourceUploader: Disabling Erasure Coding for path: /tmp/hadoop-yarn/staging/pi/.staging/job_1597607894992_0005
2020-08-16 17:49:24,947 INFO sasl.SaslDataTransferClient: SASL encryption trust check: localHostTrusted = false, remoteHostTrusted = false
2020-08-16 17:49:26,412 INFO input.FileInputFormat: Total input files to process : 2
2020-08-16 17:49:26,674 INFO sasl.SaslDataTransferClient: SASL encryption trust check: localHostTrusted = false, remoteHostTrusted = false
2020-08-16 17:49:26,907 INFO sasl.SaslDataTransferClient: SASL encryption trust check: localHostTrusted = false, remoteHostTrusted = false
2020-08-16 17:49:27,036 INFO mapreduce.JobSubmitter: number of splits:2
2020-08-16 17:49:28,028 INFO sasl.SaslDataTransferClient: SASL encryption trust check: localHostTrusted = false, remoteHostTrusted = false
2020-08-16 17:49:29,257 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1597607894992_0005
2020-08-16 17:49:29,258 INFO mapreduce.JobSubmitter: Executing with tokens: []
2020-08-16 17:49:31,061 INFO conf.Configuration: resource-types.xml not found
2020-08-16 17:49:31,066 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'.
2020-08-16 17:49:31,670 INFO impl.YarnClientImpl: Submitted application application_1597607894992_0005
2020-08-16 17:49:32,115 INFO mapreduce.Job: The url to track the job: http://Pi1-Master:8088/proxy/application_1597607894992_0005/
2020-08-16 17:49:32,122 INFO mapreduce.Job: Running job: job_1597607894992_0005
2020-08-16 17:50:03,467 INFO mapreduce.Job: Job job_1597607894992_0005 running in uber mode : false
2020-08-16 17:50:03,479 INFO mapreduce.Job:  map 0% reduce 0%
2020-08-16 17:50:03,622 INFO mapreduce.Job: Job job_1597607894992_0005 failed with state FAILED due to: Application application_1597607894992_0005 failed 2 times due to AM Container for appattempt_1597607894992_0005_000002 exited with  exitCode: 1
Failing this attempt.Diagnostics: [2020-08-16 16:50:17.244]Exception from container-launch.
Container id: container_1597607894992_0005_02_000001
Exit code: 1

[2020-08-16 16:50:17.282]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: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/yarn/exceptions/YarnRuntimeException
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
    at java.lang.Class.getMethod0(Class.java:3018)
    at java.lang.Class.getMethod(Class.java:1784)
    at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.yarn.exceptions.YarnRuntimeException
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 7 more


[2020-08-16 16:50:17.284]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: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/yarn/exceptions/YarnRuntimeException
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
    at java.lang.Class.getMethod0(Class.java:3018)
    at java.lang.Class.getMethod(Class.java:1784)
    at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.yarn.exceptions.YarnRuntimeException
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 7 more


For more detailed output, check the application tracking page: http://Pi1-Master:8088/cluster/app/application_1597607894992_0005 Then click on links to logs of each attempt.
. Failing the application.
2020-08-16 17:50:03,916 INFO mapreduce.Job: Counters: 0
 类似资料:
  • ...在Xcode控制台,我得到 它演示了建立了连接并成功找到了服务器,但其他问题出现了。会很感激你的帮助。

  • 我在尝试更新我的Eclipse时出错! 以下是在“安装下载0”期间发生内部错误的错误日志 Java . lang . illegalargumentexception:比较法违反了它的通用契约!at Java . util . comparabletimsort . merge hi(comparabletimsort . Java:835)at Java . util . comparablet

  • 我正在阅读有关C中线程的教程并测试了以下代码: 我试图使用gcc和g编译此代码,但我总是遇到编译错误。 使用gcc-pthread thread_test.c: /tmp/ccmpQLyp。o: 在函数std::cout'thread_test.cpp: 你能帮忙吗?我必须做些什么才能让这段代码在Linux和Windows上运行吗?

  • 这是我的ProdottoController: Prodotto实体: 这是视图(Freemarker): 当我尝试将值更新到表中时,出现以下错误: FreeMarker模板错误(调试模式;在生产中使用RETHROW!):以下内容已评估为null或缺失:==

  • My AccountEntityToAccount方法出现错误,返回类型Transaction是抽象类或接口。提供非抽象/非接口结果类型或工厂方法。AccountEntityToAccount(AccountEntity AccountEntity); 我怎样才能解决这个问题。我的事务类应该是抽象的,我无法更改抽象关键字

  • 问题内容: 当我尝试使用 $ httpBackend.flush();时 我收到错误 TypeError:$ browser.cookies不是一个函数。 我找不到有关这种错误和解决方案的任何信息。 角度:1.3.15 茉莉花:2.3.4 问题答案: 我相信您在版本中使用的是角度模拟,而您的代码使用的是angular 。请检查您是否在为应用程序中实现的版本使用模拟程序。同样,提供您的茉莉花测试配置