Home > other >  Local Java program links ali cloud HDFS error Failed to detect a valid hadoop home directory Java IO
Local Java program links ali cloud HDFS error Failed to detect a valid hadoop home directory Java IO

Time:09-25

The error message below

 SLF4J: Class path contains multiple SLF4J bindings. 
SLF4J: Found binding [in the jar file:/D:/Program % 20 files/apache maven - 3.6.1 track/repository/ch/qos/logback/logback - classic/1.2.3/logback - classic - 1.2.3. Jar!/org/SLF4J/impl/StaticLoggerBinder class]
SLF4J: Found binding [in the jar file:/D:/Program % 20 files/apache maven - 3.6.1 track/repository/org/SLF4J/SLF4J - log4j12 1.7.30/SLF4J - log4j12-1.7.30. Jar!/org/SLF4J/impl/StaticLoggerBinder class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch. Qos. Logback. Classic. Util. ContextSelectorStaticBinder]
14:36:57. 149. [the main] the DEBUG org.. Apache hadoop. Util. Shell - Failed to detect a valid hadoop home directory
Java. IO. FileNotFoundException: HADOOP_HOME and hadoop. Home. The dir are unset.
At org, apache hadoop. Util. Shell. CheckHadoopHomeInner (469) Shell. Java:
At org, apache hadoop. Util. Shell. CheckHadoopHome (440) Shell. Java:
At org, apache hadoop. Util. Shell. & lt; Clinit> (517) Shell. Java:
At org, apache hadoop. Util. StringUtils. & lt; Clinit> (StringUtils. Java: 78)
At org, apache hadoop. Fs. $$Key Cache FileSystem. & lt; init> (3482) FileSystem. Java:
At org, apache hadoop. Fs. $$Key Cache FileSystem. & lt; init> (3477) FileSystem. Java:
At org, apache hadoop. Fs. $Cache FileSystem. Get (3319) FileSystem. Java:
At org, apache hadoop. Fs. FileSystem. Get (479) FileSystem. Java:
At org, apache hadoop. Fs. FileSystem. Get (227) FileSystem. Java:
At com. Doudou. Hadoop. HDFS. HdfsTest. Main (HdfsTest. Java: 18)
14:36:57. 156. [the main] WARN org.. Apache hadoop. Util. Shell - Did not find winutils. Exe: {}
Java. IO. FileNotFoundException: Java. IO. FileNotFoundException: HADOOP_HOME and hadoop. Home. The dir are unset. - see https://wiki.apache.org/hadoop/WindowsProblems
At org, apache hadoop. Util. Shell. FileNotFoundException (549) Shell. Java:
At org, apache hadoop. Util. Shell. GetHadoopHomeDir (570) Shell. Java:
At org, apache hadoop. Util. Shell. GetQualifiedBin (593) Shell. Java:
At org, apache hadoop. Util. Shell. & lt; Clinit> (690) Shell. Java:
At org, apache hadoop. Util. StringUtils. & lt; Clinit> (StringUtils. Java: 78)
At org, apache hadoop. Fs. $$Key Cache FileSystem. & lt; init> (3482) FileSystem. Java:
At org, apache hadoop. Fs. $$Key Cache FileSystem. & lt; init> (3477) FileSystem. Java:
At org, apache hadoop. Fs. $Cache FileSystem. Get (3319) FileSystem. Java:
At org, apache hadoop. Fs. FileSystem. Get (479) FileSystem. Java:
At org, apache hadoop. Fs. FileSystem. Get (227) FileSystem. Java:
At com. Doudou. Hadoop. HDFS. HdfsTest. Main (HdfsTest. Java: 18)
Under Caused by: Java. IO. FileNotFoundException: HADOOP_HOME and hadoop. Home. The dir are unset.
At org, apache hadoop. Util. Shell. CheckHadoopHomeInner (469) Shell. Java:
At org, apache hadoop. Util. Shell. CheckHadoopHome (440) Shell. Java:
At org, apache hadoop. Util. Shell. & lt; Clinit> (517) Shell. Java:
. 7 common frames omitted
14:36:57. 158. [the main] the DEBUG org.. Apache hadoop. Util. Shell - Failed to find winutils. Exe
Java. IO. FileNotFoundException: Java. IO. FileNotFoundException: HADOOP_HOME and hadoop. Home. The dir are unset. - see https://wiki.apache.org/hadoop/WindowsProblems
At org, apache hadoop. Util. Shell. FileNotFoundException (549) Shell. Java:
At org, apache hadoop. Util. Shell. GetHadoopHomeDir (570) Shell. Java:
At org, apache hadoop. Util. Shell. GetQualifiedBin (593) Shell. Java:
At org, apache hadoop. Util. Shell. & lt; Clinit> (690) Shell. Java:
At org, apache hadoop. Util. StringUtils. & lt; Clinit> (StringUtils. Java: 78)
At org, apache hadoop. Fs. $$Key Cache FileSystem. & lt; init> (3482) FileSystem. Java:
At org, apache hadoop. Fs. $$Key Cache FileSystem. & lt; init> (3477) FileSystem. Java:
At org, apache hadoop. Fs. $Cache FileSystem. Get (3319) FileSystem. Java:
At org, apache hadoop. Fs. FileSystem. Get (479) FileSystem. Java:
At org, apache hadoop. Fs. FileSystem. Get (227) FileSystem. Java:
At com. Doudou. Hadoop. HDFS. HdfsTest. Main (HdfsTest. Java: 18)
Under Caused by: Java. IO. FileNotFoundException: HADOOP_HOME and hadoop. Home. The dir are unset.
At org, apache hadoop. Util. Shell. CheckHadoopHomeInner (469) Shell. Java:
At org, apache hadoop. Util. Shell. CheckHadoopHome (440) Shell. Java:
At org, apache hadoop. Util. Shell. & lt; Clinit> (517) Shell. Java:
. 7 common frames omitted




Want to ask you what's the meaning of the error is the local computer is to install hadoop environment? Can you explain why?

CodePudding user response:

Check whether the environment variable configuration, can use the conf. Set set or will put a core - the site resources folder
  • Related