我试图在我的hadoop2.7.1上运行wordcount示例,但是在编译wordcount.java文件之后,我得到了这个错误消息。我只在桌面上放置了.java文件
dohp0rv51#
请授予wordcount目录的读写权限,然后重试。
kmbjn2e32#
You may get this problem in 2 cases :
Compiling the filename.java file as a non administrator
Permissions are not available for the compiler to write in to the place where the filename.java is available
2条答案
按热度按时间dohp0rv51#
请授予wordcount目录的读写权限,然后重试。
kmbjn2e32#
Compiling the filename.java file as a non administrator
(这意味着您是在sudo模式下编译文件的,或者是在hadoop中以hduser这样的用户身份编译文件)。要摆脱此问题,请将用户模式更改为您的用户或当前用户
.
Permissions are not available for the compiler to write in to the place where the filename.java is available
.请在属性中启用权限,然后重试
.