Skip to content

Instantly share code, notes, and snippets.

@tsuyo
Created May 5, 2019 06:28
Show Gist options
  • Save tsuyo/50373891efab959769a8ad440b30547c to your computer and use it in GitHub Desktop.
Save tsuyo/50373891efab959769a8ad440b30547c to your computer and use it in GitHub Desktop.
hdfs dfs -mkdir input
hdfs dfs -put ${HADOOP_HOME}/etc/hadoop/*.xml input
hadoop jar ${HADOOP_HOME}/share/hadoop/mapreduce/hadoop-mapreduce-examples-*.jar grep input output 'dfs[a-z.]+'
hdfs dfs -cat output/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment