Skip to content

Instantly share code, notes, and snippets.

@ragingbal
Last active March 5, 2016 10:57
Show Gist options
  • Save ragingbal/3cc9a08467baaa0b223b to your computer and use it in GitHub Desktop.
Save ragingbal/3cc9a08467baaa0b223b to your computer and use it in GitHub Desktop.
#!/bin/bash
FILES=/usr/local/data/active_users_big/*.json
for f in $FILES
do
echo "Processing $f file..."
hadoop fs -appendToFile $f /user/data/sourcedata/active_users.json
done
@ragingbal
Copy link
Author

Merge small files into 1 big file for HDFS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment