Windows 开发 Hadoop 时,需配置 HADOOP_HOME 环境变量,值为 D:Program Fileshadoop-common-2.7.3-bin-master
。配置后可解决以下错误:
- org.apache.hadoop.io.nativeio.NativeIO$Windows.createDirectoryWithMode0(Ljava/lang/String;I)V
- org.apache.hadoop.io.nativeio.NativeIO$Windows.createDirectoryWithMode0