java.io.IOException

Could not locate executable null\bin\winutils.exe in the Hadoop binaries.

Samebug tips1

Download the winutils.exe for your Hadoop version: https://github.com/steveloughran/winutils . Save it to HADOOP_HOME/bin

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web16997

  • Could not locate executable \bin\winutils.exe in the Hadoop binaries.
  • Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
  • Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
  • Stack trace

    • java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries. at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:381) at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:396) at org.apache.hadoop.util.Shell.<clinit>(Shell.java:389) at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:79) at org.apache.hadoop.security.Groups.parseStaticMapping(Groups.java:130) at org.apache.hadoop.security.Groups.<init>(Groups.java:94) at org.apache.hadoop.security.Groups.<init>(Groups.java:74) at org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:303) at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:283) at org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:260) at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:790) at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:760) at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:633) at org.apache.spark.util.Utils$$anonfun$getCurrentUserName$1.apply(Utils.scala:2163) at org.apache.spark.util.Utils$$anonfun$getCurrentUserName$1.apply(Utils.scala:2163) at scala.Option.getOrElse(Option.scala:120) at org.apache.spark.util.Utils$.getCurrentUserName(Utils.scala:2163) at org.apache.spark.SparkContext.<init>(SparkContext.scala:323) at src.main.scala.hive_Test$.main(hive_Test.scala:22) at src.main.scala.hive_Test.main(hive_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:147)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 2 years ago
    Unknown user
    Once, 2 years ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Once, 8 months ago
    19 more bugmates