写入map时出错:/wordcount$map.class(权限被拒绝)

jmo0nnb3  于 2021-06-03  发布在  Hadoop
关注(0)|答案(2)|浏览(754)

我试图在我的hadoop2.7.1上运行wordcount示例,但是在编译wordcount.java文件之后,我得到了这个错误消息。我只在桌面上放置了.java文件

dohp0rv5

dohp0rv51#

请授予wordcount目录的读写权限,然后重试。

kmbjn2e3

kmbjn2e32#

You may get this problem in 2 cases :
  1. Compiling the filename.java file as a non administrator (这意味着您是在sudo模式下编译文件的,或者是在hadoop中以hduser这样的用户身份编译文件)。
    要摆脱此问题,请将用户模式更改为您的用户或当前用户
    .
  2. Permissions are not available for the compiler to write in to the place where the filename.java is available .
    请在属性中启用权限,然后重试
    .

相关问题