Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: The support homepage carousel is not displaying. We are working toward a resolution.

Running Hadoop on Windows error 'java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset'

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

Running Hadoop on Windows error 'java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset'

Last Update:

Jan 22, 2024 9:35:30 PM

Updated By:

Jamie_Gregory

Created date:

Feb 26, 2021 10:00:46 AM

Problem description

While running Hadoop from a Windows host, you get the following error message:

[ERROR] 17:20:52 org.talend.components.adlsgen2.output.AdlsGen2Output- [release] java.io.FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset. -see https://wiki.apache.org/hadoop/WindowsProblems
 

Root cause

On Windows, Hadoop requires native code extensions so that it can integrate with the OS correctly for things like file access semantics and permissions.

 

For more information, see Problems running Hadoop on Windows on the Apache wiki page.

 

Solution

To resolve this issue perform one of the following options:

 
  • Create a new environment variable: HADOOP_HOME and enter the path to the folder, for example:

    HADOOP_HOME=C:\hadoop\bin

     
  • In Studio Job configuration, open the Run > Advanced settings tab. In the JVM Setting section, select the Use specific JVM arguments check box, click the New button, and add a new argument like this:

    Dhadoop.home.dir=C:\hadoop\bin
Labels (1)
Version history
Last update:
‎2024-01-22 09:35 PM
Updated by: