辅助类Tool和ToolRunner的用法

OptionDescription
-D property=valueSets the given Hadoop configuration property to the given value. Overrides any default or site properties in the configuration and any properties set via the -conf option
-conf fi Iename...Adds the given files to the list of resources in the configuration. This is a convenient way to set site properties or to set a number of properties at once.

案例1:提交作业

yarn jar t1_test-1.0-SNAPSHOT.jar com.briup.MR.MaxWeather -D input=/user/hdfs/weather.txt -D output=/user/hdfs/weather_result

最后修改: 2023年12月28日 星期四 15:15