Hadoop+wordcount统计文件单词数目所遇错误

1、错误: 在类中找不到 main 方法

Exception in thread “main” java.io.IOException: (null) entry in command stri…

解决方法:

在eclipse环境中点window->preference->run and debug->Lunching,然后把第一项设置为Always

2、权限问题

Exception in thread “main” java.io.IOException: (null) entry in command string: null chmod 0700 E:\t

解决方法:

将hadoop.dll,并拷贝到c:\windows\system32目录中。再次运行map reduce程序即可。

你可能感兴趣的:(hadoop,java,hadoop,java)