Created
May 5, 2019 06:28
-
-
Save tsuyo/50373891efab959769a8ad440b30547c 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
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