During the hadoop installation on ubuntu vm, when I execute "tar -xvzf hadoop-2.6.5.tar.gz" on the terminal window, I get the error:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
If you are getting this error, that means the downloaded package is corrupted or doesn't have proper permission.
Please download the package again and while the file is in home folder. Run the same command.
Hope this helps.