//HADOOP_HOME目录中mkdir input cp etc/hadoop/*.xml input bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-3.2.1.jar grep input output ‘dfs[a-z.]+‘ cat output/*
hadoop-grep案例
原文:https://www.cnblogs.com/abuduri/p/13175000.html