Hadoop java.io.IOException: Mkdirs failed to create /some/path

后端 未结 8 1795
无人共我
无人共我 2020-11-28 04:49

When I try to run my Job I am getting the following exception:

Exception in thread \"main\" java.io.IOException: Mkdirs failed to create /some/path
    at or         


        
8条回答
  •  半阙折子戏
    2020-11-28 05:44

    The problem is OSX specific it is due to the fact that by default the filesystem is set to case-insensitive on a Mac (case preserving but case insensitive, which to my opinion is very bad).

    A hack to circumvent this is to create a .dmg disk image with disk utility which is case sensitive and mount this image where you need it (i.e. hadoop.tmp.dir or /tmp) with the following command (as a superuser):

    sudo hdiutil attach -mountpoint /tmp .dmg
    

    I hope it helps.

提交回复
热议问题