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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

There's probably a problem with your dependencies, check if you used "hadoop-yarn-common". Also check if you have the right version of hadoop for the version of mapreduce that you're using.

Solutions on the web

via Stack Overflow by jgp
, 1 year ago
via apache.org by Unknown author, 1 year ago
HADOOP_HOME or hadoop.home.dir are not set.
via samza-dev by Job-Selina Wu, 1 year ago
HADOOP_HOME or hadoop.home.dir are not set*.
via apache.org by Unknown author, 1 year ago
HADOOP_HOME or hadoop.home.dir are not set.
via apache.org by Unknown author, 1 year ago
HADOOP_HOME or hadoop.home.dir are not set.
java.io.IOException: HADOOP_HOME or hadoop.home.dir are not set.
at org.apache.hadoop.util.Shell.checkHadoopHome(Shell.java:225)
at org.apache.hadoop.util.Shell.(Shell.java:250)
at org.apache.hadoop.util.StringUtils.(StringUtils.java:76)
at org.apache.spark.sql.execution.datasources.json.JSONRelation.org$apache$spark$sql$execution$datasources$json$JSONRelation$$createBaseRdd(JSONRelation.scala:98)
at org.apache.spark.sql.execution.datasources.json.JSONRelation$$anonfun$4$$anonfun$apply$1.apply(JSONRelation.scala:115)
at org.apache.spark.sql.execution.datasources.json.JSONRelation$$anonfun$4$$anonfun$apply$1.apply(JSONRelation.scala:115)
at scala.Option.getOrElse(Option.scala:120)
at org.apache.spark.sql.execution.datasources.json.JSONRelation$$anonfun$4.apply(JSONRelation.scala:115)
at org.apache.spark.sql.execution.datasources.json.JSONRelation$$anonfun$4.apply(JSONRelation.scala:109)
at scala.Option.getOrElse(Option.scala:120)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
8 times, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
10 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.