java.io.IOException: HADOOP_HOME or hadoop.home.dir are not set.

cloudera.com | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Eclipse调用Hadoop2.2运行MR程序_Linux编程_Linux公社-Linux系统门户网站

    linuxidc.com | 2 years ago
    java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
  3. 0

    HBase User - Remote java client hang

    nabble.com | 12 months ago
    java.io.IOException: HADOOP_HOME or hadoop.home.dir are not set.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    HADOOP_HOME or hadoop.home.dir are not set.

    at org.apache.hadoop.util.Shell.checkHadoopHome()
  2. Hadoop
    StringUtils.<clinit>
    1. org.apache.hadoop.util.Shell.checkHadoopHome(Shell.java:307)
    2. org.apache.hadoop.util.Shell.<clinit>(Shell.java:332)
    3. org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:79)
    3 frames
  3. hadoop-yarn-api
    YarnConfiguration.<clinit>
    1. org.apache.hadoop.yarn.conf.YarnConfiguration.<clinit>(YarnConfiguration.java:590)
    1 frame
  4. Spark Project YARN Stable API
    YarnSparkHadoopUtil.newConfiguration
    1. org.apache.spark.deploy.yarn.YarnSparkHadoopUtil.newConfiguration(YarnSparkHadoopUtil.scala:62)
    1 frame
  5. Spark
    SparkHadoopUtil.<init>
    1. org.apache.spark.deploy.SparkHadoopUtil.<init>(SparkHadoopUtil.scala:52)
    1 frame
  6. Spark Project YARN Stable API
    YarnSparkHadoopUtil.<init>
    1. org.apache.spark.deploy.yarn.YarnSparkHadoopUtil.<init>(YarnSparkHadoopUtil.scala:47)
    1 frame
  7. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    5. java.lang.Class.newInstance(Class.java:374)
    5 frames