1、hadoop 做scoker 是错误
2016-07-21 23:05:16,303 INFO [main] ipc.CallQueueManager (CallQueueManager.java:<init>(53)) - Using callQueue class java.util.concurrent.LinkedBlockingQueue
2016-07-21 23:05:16,534 INFO [Socket Reader #1 for port 1888] ipc.Server (Server.java:run(605)) - Starting Socket Reader #1 for port 18882016-07-21 23:05:16,562 ERROR [main] util.Shell (Shell.java:getWinUtilsPath(373)) - Failed to locate the winutils binary in the hadoop binary path
java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:355)
at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:370)
at org.apache.hadoop.util.Shell.<clinit>(Shell.java:363)
解决:在win中配置HADOOP_HOME
在代码之前加入: System.setProperty("hadoop.home.dir","E://cenos-6.5-hadoop-2.6.4//hadoop-2.6.4");
下载:winutils.exe 下载地址:http://download.csdn.net/download/lachisis/7594503
2、