-
大小: 78KB文件类型: .zip金币: 1下载: 0 次发布日期: 2021-06-03
- 语言: Java
- 标签: hadoop hadoop-2.6.0 hadoop.dll winutils.exe
资源简介
windows上eclipse运行hadoop程序报NullPointerException错
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" java.lang.NullPointerException
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1010)
at org.apache.hadoop.util.Shell.runCommand(Shell.java:482)
at org.apache.hadoop.util.Shell.run(Shell.java:455)
at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:715)
at org.apache.hadoop.util.Shell.execCommand(Shell.java:808)
at org.apache.hadoop.util.Shell.execCommand(Shell.java:791)
at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:656)
at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:444)
at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:293)
at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:133)
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:437)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1296)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1293)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1628)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:1293)
at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1314)
at com.lxz.mr.WCApp.main(WCApp.java:27)
原因是hadoop.dll文件和winutils.exe文件缺失了。解决步骤为:
1,下载这两个文件,下载地址:https://download.csdn.net/download/luxiangzhou/10635946
2,解压之后,把hadoop.dll拷贝到C:\Windows\System32下面
3,创建环境变量HADOOP_HOME,然后把winutils.exe文件拷贝到${HADOOP_HOME}/bin目录下
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 83968 2015-01-24 20:19 hadoop-2.6.0-hadoop.dll-winutils.exe\hadoop.dll
文件 108032 2015-01-24 20:19 hadoop-2.6.0-hadoop.dll-winutils.exe\winutils.exe
文件 1762 2018-08-30 14:26 hadoop-2.6.0-hadoop.dll-winutils.exe\详细.txt
目录 0 2018-08-30 14:22 hadoop-2.6.0-hadoop.dll-winutils.exe\
----------- --------- ---------- ----- ----
文件 83968 2015-01-24 20:19 hadoop-2.6.0-hadoop.dll-winutils.exe\hadoop.dll
文件 108032 2015-01-24 20:19 hadoop-2.6.0-hadoop.dll-winutils.exe\winutils.exe
文件 1762 2018-08-30 14:26 hadoop-2.6.0-hadoop.dll-winutils.exe\详细.txt
目录 0 2018-08-30 14:22 hadoop-2.6.0-hadoop.dll-winutils.exe\
- 上一篇:tr069 java源码
- 下一篇:jsp+sqlserver网页系统
相关资源
- 高职组云计算与大数据题库
- Hadoop-2.8.5全面资料
- IT18掌大数据课程包含配套资料
- Hadoop-client-2.7.4.jar
- hadoop2.7.3 hadoop.dll
- hadoop2.7.1对应的hadoop.dllwinutils.exe等。
- hadoop-auth-2.2.0.jar
- hadoop-common-2.2.0-bin-master
- hive函数大全中文版
- hadoop.dll以及winutils.exe
- hadoop-lzo-0.4.13.jar
- 山东大学大数据实验三:Hadoop实现P
- hadoop-lzo-0.4.20-SNAPSHOT.jar 包
- hadoop-lzo-0.4.20-SNAPSHOT.jar
- 基于mapreduce的pagerank实现DEMO地址
- TFIDF算法mapreduce实现
- hadoop-lzo-0.4.20.jar
- Hive 入门级编程全案例详解
- hadoop-2.7.2-common.jar
- hadoop各版本--hadoop.dll以及winutils.exe,
- 2016年大数据全套视频徐培成
- hadoop-common-2.7.4-bin 包含hadoop.dll、win
- hadoop-core-1.2.1.jar
- 大数据hadoop winutils.exe
- Hadoop之MapReduce编程完整源码
- Java-org.apache.hadoop
- Unable to load native-hadoop library for your
- hadoop 2.7.1
- 驴妈妈旅游网站大数据项目实战
- hadoop-2.6.0-cdh5.14.0 hadoop.dll winutils
评论
共有 条评论