FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset 错误解决

错误现象

FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset

FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset 错误解决_第1张图片

解决方案

Windows 依赖文件夹

https://gitcode.net/mirrors/steveloughran/winutils/-/tree/master/hadoop-3.0.0/bin

FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset 错误解决_第2张图片

配置 HADOOP_HOME 环境变量

FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset 错误解决_第3张图片

配置 Path 环境变量

FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset 错误解决_第4张图片

验证 Hadoop 环境变量是否正常。双击 winutils.exe,

FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset 错误解决_第5张图片

复制 hadoop.dll 文件到 C:\Windows\System32

FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset 错误解决_第6张图片

可能的错误现象 :
FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset 错误解决_第7张图片

说明缺少微软运行库(正版系统往往有这个问题), 搜索下载

重启一下电脑, 以免参数未生效

你可能感兴趣的:(Hadoop,hadoop,大数据,big,data,zookeeper,hdfs)