Last active
March 5, 2016 10:57
-
-
Save ragingbal/3cc9a08467baaa0b223b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Merge small files into 1 big file for HDFS.