I tried to unzip the zip file stored in the Hadoop file system and save it back to the hasoop file system. I tried the following commands, but none of them worked.
hadoop fs -cat /tmp/test.zip|gzip -d|hadoop fs -put - /tmp/ hadoop fs -cat /tmp/test.zip|gzip -d|hadoop fs -put - /tmp hadoop fs -cat /tmp/test.zip|gzip -d|hadoop put - /tmp/ hadoop fs -cat /tmp/test.zip|gzip -d|hadoop put - /tmp
I get errors like gzip: stdin has more than one entry--rest ignored , cat: Unable to write to output stream. , Error: Could not find or load main class put on the terminal when I run these commands. Any help?
Change 1 . I do not have access to the user interface. Thus, only command lines are allowed. The unzip / gzip utilities are installed on my hadoop machine. I am using Hadoop 2.4.0 version Hadoop 2.4.0 .
hadoop
Abhishek
source share