stderr
运行 map-reduce 作业时记录以下内容:
root@dbpc42:/tmp/mesos/slaves/20141201-225046-698725789-5050-19765-S24/frameworks/20141201-225046-698725789-5050-19765-0016/executors/executor_Task_Tracker_2/runs/latest# ls
hadoop-2.5.0-cdh5.2.0 hadoop-2.5.0-cdh5.2.0.tgz stderr stdout
内容stderr
:
警告:在将 InitGoogleLogging() 写入 STDERR I1202 19:41:40.323521 7223 fetcher.cpp:76] 之前记录日志正在获取 URI 'hdfs://dbpc41:9000/hadoop-2.5.0-cdh5.2.0.tgz' I1202 19: 41:40.323685 7223 fetcher.cpp:105] 将资源从 'hdfs://dbpc41:9000/hadoop-2.5.0-cdh5.2.0.tgz' 下载到 '/tmp/mesos/slaves/20141201-225046-698725789-5050 -19765-S24/frameworks/20141201-225046-698725789-5050-19765-0016/executors/executor_Task_Tracker_0/runs/59c9a5ac-c376-4e9e-b9b7-63a24ae84dcd/hadoop-2.5.0-cdh5.2.0.tg
I1202 19:41:48.779220 7223 fetcher.cpp:64] 提取资源 '/tmp/mesos/slaves/20141201-225046-698725789-5050-19765-S24/frameworks/20141201-225046-6981976789-16/slaves/executor- /executor_Task_Tracker_0/runs/59c9a5ac-c376-4e9e-b9b7-63a24ae84dcd/hadoop-2.5.0-cdh5.2.0.tgz'进入'/tmp/mesos/slaves/20141201-225046-698725789-5050-19765-S24/frameworks/ 20141201-225046-698725789-5050-19765-0016/executors/executor_Task_Tracker_0/runs/59c9a5ac-c376-4e9e-b9b7-63a24ae84dcd'
sh: 1: cd: 不能 cd 到 hadoop-2.5.0-cdh5.2.0
sh: 1: ./bin/hadoop: 未找到
stdout
是空的。
有趣的是,当我在主节点运行的同一节点上运行从节点时,问题不会出现并且任务成功完成。只有远程从站会引入这个问题。可能是什么问题呢?