Now we need to unzip the downloaded Hadoop package and save it to Cygwin home folder.
- Open Cygwin terminal (Run as Administration)
- Execute the tar command as below to start unpacking the Hadoop package.
tar -xzf hadoop-x.y.z.tar.gz
Here x.y.z will be your Hadoop version.
This process might take some time and after that you see Cygwin command prompt again. There is no success message.
- Execute command ls-l to list the contents of home directory. You would see new folder of hadoop-x.y.z in the directory. Enter command cd hadoop-x.y.zto go to hadoop root folder
Execute ls-l again to see the content in Hadoop. If you get similar results as below image, it means Hadoop is unpacked successfully and all required files are present .