配置logging conf/log4j.properties

来源:互联网 发布:vue.js 移动端ui框架 编辑:程序博客网 时间:2024/05/19 13:15
mapreduce.jobtracker.jobhistory.location=${HADOOP_LOG_DIR}/history
mapreduce.job.userhistorylocation=${mapreduce.output.fileoutputformat.outputdir}/_logs/history/


通过命令行查看日志:


$ bin/hadoop job -history   output-dir
$ bin/hadoop job -history all output-dir  //更详细的job日志