Hadoop yarn调试
2015-08-07 11:17
330 查看
ResourceManager
Update log levelhttp://headnodehost:9014/logLevel
Download log file
Find the log url by the application page
curl -O http://headnodehost:9014/logs/yarn-resourcemanager-HEADNODE0.log
Application Master
Update log levelyarn.app.mapreduce.am.log.level
Similar configuration parameter:am.
dfs.namenode.logging.level
mapreduce.map.log.level
mapreduce.reduce.log.level
Download log file
application is not finished
curl http://workernode24.zampdmphdp.b1.internal.chinacloudapp.cn:30060/node/containerlogs/container_1438609276772_0006_01_000001/wankun/syslog/?start=0 > am.log
application is finished :
yarn application -list usage: yarn logs -applicationId <application ID> [OPTIONS] general options are: -appOwner <Application Owner> AppOwner (assumed to be current user if not specified) -containerId <Container ID> ContainerId (must be specified if node address is specified) -nodeAddress <Node Address> NodeAddress in the format nodename:port (must be specified if container id is specified)
Eg:
yarn logs -applicationId application_1438609276772_0008 -containerId container_1438609276772_0008_01_000001 -nodeAddress workernode19.zampdmphdp.b1.internal.chinacloudapp.cn > success.log
Note
If windows systemsed -i "s/</</g" am.log sed -i "s/>/>/g" am.log sed -i "s/^M//g" am.log
相关文章推荐
- linux sdio card睡眠治疗 sdio card removed解决方案
- Android虚拟机访问tomcat服务器下的文件
- Shell脚本与vi编辑器
- 浅析linux中snapshots, blockcommit,blockpull
- Docker daemon日志的位置
- How to Enable EPEL Repository for CentOS 7.x/6.x/5.x
- 拓扑排序(topological sort)DFS
- modprobe和insmod的区别
- CentOS下更换yum源
- CentOS6.5 heartbeat高可用集群的详解及工作流程
- Linux下安装Mysql
- Linux 安装Git Server
- hadoop 50030,8088,8042端口不能访问
- 怎么建立自己的网站
- shell中变量自增的实现方法
- 如何构建一个完整的angular项目(一)--- 如何按需加载静态资源
- 输入adb shell 时 提示error: more than one device and emulator
- Tomcat性能调优
- Linux下的Nano命令
- 解决Linux下cocos2dx找不到头文件Box2D的问题