Skip to content

Instantly share code, notes, and snippets.

@roxberry
Created April 30, 2013 16:10
Show Gist options
  • Save roxberry/5489721 to your computer and use it in GitHub Desktop.
Save roxberry/5489721 to your computer and use it in GitHub Desktop.
Hadoop FS grep
hadoop fs -ls albumrelease-tracks/output/ | awk '{print $8}' | \
while read f
do
hadoop fs -cat $f | grep -q MT0002267152 && echo $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment