nutch项目2006年之前集成分布式文件系统 称为NDFS,之后独立出Hadoop子项目更名为HDFS
由于自己的系统基于早期nutch版本开发,发现NDFS心跳检测在window平台异常:
Cannot run program "df": CreateProcess error=2, ϵͳÕҲ»µ½ָ¶
想必是windows平台无此df命令造成,更正DF的构造
public DF(String path) throws IOException {
//Process process = Runtime.getRuntime().exec(new String[] {"df","-k",path});
Process process = Runtime.getRuntime().exec(new String[] {"cmd.exe","/A","dir"});
try {
.............
再依次启动 NameNode 和 DataNode 成功...
然后启动TestClient测试通过!
Usage: -ndfs 127.0.0.1:9999 -ls tmp
由于自己的系统基于早期nutch版本开发,发现NDFS心跳检测在window平台异常:
Cannot run program "df": CreateProcess error=2, ϵͳÕҲ»µ½ָ¶
想必是windows平台无此df命令造成,更正DF的构造
public DF(String path) throws IOException {
//Process process = Runtime.getRuntime().exec(new String[] {"df","-k",path});
Process process = Runtime.getRuntime().exec(new String[] {"cmd.exe","/A","dir"});
try {
.............
再依次启动 NameNode 和 DataNode 成功...
然后启动TestClient测试通过!
Usage: -ndfs 127.0.0.1:9999 -ls tmp