hadoop windows配置

参考:http://www.bkjia.com/ASPjc/931209.html

1.hadoop环境配置

2.hadoop bin下添加winutils.exe

3.hadoop.dll放到C:\Windows\System32


代码配置

//hadoop执行者

System.setProperty("HADOOP_USER_NAME","root");

//hadoop目录

System.setProperty("hadoop.home.dir", "D:\\hadoop\\hadoop-2.5.2");

//集群连接配置

Configuration conf=new Configuration();

conf.set("fs.defaultFS", "hdfs://node1:8020");

conf.set("yarn.resourcemanager.hostname", "node3");

你可能感兴趣的:(hadoop windows配置)