Download the version of the hadoop folder you want (say, if you install spark on Windows, and then the version of hadoop your spark was created for) from this link in zip format.
Unzip the zip to the desired directory. You need to have a directory in the form of hadoop\bin (explicitly create such a directory structure of hadoop\bin if you want) with bin containing all the files contained in the bin folder of the downloaded hadoop. This will contain many files such as hdfs.dll, hadoop.dll, etc. In addition to winutil.exe.
Now create the HADOOP_HOME environment HADOOP_HOME and set it to <path-to-hadoop-folder>\hadoop . Then add ;%HADOOP_HOME%\bin; PATH environment PATH .
Open the "new command line" and try the command again.
Mahesha999 Mar 21 '18 at 9:34 2018-03-21 09:34
source share