java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries. spark Eclipse on windows 7

前端 未结 12 770
名媛妹妹
名媛妹妹 2020-11-28 02:49

I\'m not able to run a simple spark job in Scala IDE (Maven spark project) installed on Windows 7

Spark core dependency has be

12条回答
  •  忘掉有多难
    2020-11-28 03:45

    I got the same problem while running unit tests. I found this workaround solution:

    The following workaround allows to get rid of this message:

        File workaround = new File(".");
        System.getProperties().put("hadoop.home.dir", workaround.getAbsolutePath());
        new File("./bin").mkdirs();
        new File("./bin/winutils.exe").createNewFile();
    

    from: https://issues.cloudera.org/browse/DISTRO-544

提交回复
热议问题