07-天亮大数据系列教程之streaming运行流程与shell实现wordcount
发布时间:2020-12-15 09:14:45 所属栏目:安全 来源:网络整理
导读:目录 1、streaming运行流程 2、streaming任务提交与shell实现wordcount 3、常用参数支持 详情 1、streaming运行流程 Java标准版运行流程 streaming运行流程 在worker处存在差异,通过stdin/stdout将PipeMapper和StreamingMapper打通 2、streaming任务提交与s
目录
通用模板:yarn jar streaming_jar_path.jar [genericOptions] [streamingOptions]
细化模板 :yarn jar streaming_jar_path.jar
-D configKey =configValue -input inputDirs -output outputDirs -mapper scriptMapper -reducer scriptReducer -file uploadFile
yarn jar /usr/hdp/2.4.3.0-227/hadoop-mapreduce/hadoop-streaming.jar
-Dmapred.output.compress=false -Dmapred.output.compression.codec=org.apache.hadoop.io.compress.GzipCodec -Dmapred.reduce.tasks=1 -input /tmp/tianliangedu/input -output /tmp/tianliangedu/output73 -mapper "sh mapper_shell.sh" -reducer "sh reducer_shell.sh" -file mapper_shell.sh -file reducer_shell.sh
3、常用参数支持
yarn jar /usr/hdp/2.4.3.0-227/hadoop-mapreduce/hadoop-streaming.jar
-files mapper_shell.sh,reducer_shell.sh -Dmapred.output.compress=false -Dmapred.output.compression.codec=org.apache.hadoop.io.compress.GzipCodec -Dmapred.reduce.tasks=1 -Dstream.map.output.field.separator=001 -input /tmp/tianliangedu/input -output /tmp/tianliangedu/output76 -mapper "sh mapper_shell.sh" -reducer "sh reducer_shell.sh"
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容