ERROR Shell: Failed to locate the winutils binary in the hadoop binary path

來源:互聯網
上載者:User

標籤:style   blog   ar   io   color   sp   for   java   on   

14/12/17 19:18:53 ERROR Shell: Failed to locate the winutils binary in the hadoop binary pathjava.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.    at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:318)    at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:333)    at org.apache.hadoop.util.Shell.<clinit>(Shell.java:326)    at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:76)    at org.apache.hadoop.security.Groups.parseStaticMapping(Groups.java:93)    at org.apache.hadoop.security.Groups.<init>(Groups.java:77)    at org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:240)    at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:255)    at org.apache.hadoop.security.UserGroupInformation.setConfiguration(UserGroupInformation.java:283)    at org.apache.spark.deploy.SparkHadoopUtil.<init>(SparkHadoopUtil.scala:36)    at org.apache.spark.deploy.SparkHadoopUtil$.<init>(SparkHadoopUtil.scala:109)    at org.apache.spark.deploy.SparkHadoopUtil$.<clinit>(SparkHadoopUtil.scala)    at org.apache.spark.SparkContext.<init>(SparkContext.scala:228)    at org.apache.spark.streaming.StreamingContext$.createNewSparkContext(StreamingContext.scala:555)    at org.apache.spark.streaming.StreamingContext.<init>(StreamingContext.scala:75)    at com.hark.Test$.main(Test.scala:28)    at com.hark.Test.main(Test.scala)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:606)    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)14/12/17 19:18:54 INFO AkkaUtils: Connecting to HeartbeatReceiver: akka.tcp://[email protected]:60477/user/HeartbeatReceiver

windows的idea運行時報這個異常

只要在代碼前面添加

val path = new File(".").getCanonicalPath()//File workaround = new File(".");System.getProperties().put("hadoop.home.dir", path);new File("./bin").mkdirs();new File("./bin/winutils.exe").createNewFile();
即可。。

原因:未知。。。

奇葩的問題啊

ERROR Shell: Failed to locate the winutils binary in the hadoop binary path

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.