53675/unzip-files-in-hdfs
To unzip a gzipped (or bzipped) file, I use the following:
hdfs dfs -cat /data/<data.gz> | gzip -d | hdfs dfs -put - /data/
Hello, good morning/afternoon/evening! I know it's over 4 years, but you don't happen to know how to do this with a zip file (no gzip).
I've been trying: hdfs dfs -text {the_zip_path} | unzip -p | hdfs dfs -put - {hdfs_path_to_folder}
I've got it complaining with -cat, I've got it creating a file called - in the folder in HDFS. I'm lost here! Thanks in advance! PS: The zip file it's not negotiable, it's a third-party provided file, and we asked them if we could get gzip, and they said no.
You can try filter using value in ...READ MORE
By default these Hadoop configuration files are ...READ MORE
No, there is no other option to ...READ MORE
Well, it's so easy. Just enter the below ...READ MORE
du command is used for to see ...READ MORE
Hadoop put & appendToFile only reads standard ...READ MORE
You can use dfsadmin which runs a ...READ MORE
hdfs dfsadmin -report This command tells fs ...READ MORE
Hi, You can try this command: hadoop fs -ls ...READ MORE
You can try something like this: ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.