简体   繁体   English

缺少Hadoop日志文件

[英]Hadoop log files missing

Coming from an older version of Hadoop, I am looking for the user log files (log.index, stderr, stdout, syslog) in Hadoop 2.2.0. 来自较早版本的Hadoop,我正在Hadoop 2.2.0中寻找用户日志文件(log.index,stderr,stdout,syslog)。 I first looked for the web interface, but there is nothing running at port 50030. I then looked HADOOP_HOME_DIR/logs, but I did not see a userlogs dir, nor something with a jobnumber. 我首先查找了Web界面,但端口50030上没有任何运行。然后,我查找了HADOOP_HOME_DIR / logs,但没有看到userlogs目录,也没有看到带有jobnumber的东西。 Nex location I looked was temp dir (/tmp), and found folders that looked like it: 我查看的Nex位置是temp dir(/ tmp),找到了看起来像这样的文件夹:

$ find . -name "job_local1643076800_0001"
./hadoop-tom/mapred/staging/tom1643076800/.staging/job_local1643076800_0001
./hadoop-tom/mapred/local/localRunner/tom/jobcache/job_local1643076800_0001
./hadoop-tom/mapred/local/localRunner/tom/job_local1643076800_0001

In here I found directories in the format I expected: attempt_local1643076800_0001_m_000000_0 But they were empty. 在这里,我找到了预期格式的目录:try_local1643076800_0001_m_000000_0但它们为空。

I also set "export HADOOP_LOG_DIR=/path" , but this does not fill up either. 我还设置了"export HADOOP_LOG_DIR=/path" ,但这也没有填满。 Anything I am missing here? 我在这里想念什么吗? Or something that went wrong when I build hadoop from source? 还是当我从源代码构建Hadoop时出了点问题?

Thanks in advance! 提前致谢!

The user logs should be under folder userlogs under the logs folder. 用户日志应位于logs文件夹下的文件夹userlogs下。 So something like hadoop-2.2.0/logs/userlogs/ . 所以像hadoop-2.2.0/logs/userlogs/ Check the jps command to see if you have the needed processes running - probably not. 检查jps命令以查看是否正在运行所需的进程-可能不是。 If not, check your logs (not the userlogs) for errors and go through your configurations. 如果没有,请检查您的日志(不是用户日志)中的错误并进行配置。

If your processes are not running, I wonder how you managed to run some jobs. 如果您的进程未运行,我想知道您如何设法运行一些作业。 Did your jobs finish nicely? 您的工作顺利完成了吗?

Default mapreduce framework in hadoop 2.2.0 is YARN. hadoop 2.2.0中的默认mapreduce框架是YARN。 50030 port is Jobtracker webUI, In YARN instead of jobtracker it uses Resource manager for whose Webui is accessible at 8088. 50030端口是Jobtracker webUI,在YARN中而不是jobtracker中,它使用资源管理器,其Webui可通过8088访问。

In your case job is being executed as localRunner , which means either from Client side, YARN is not configured properly or YARN services are down. 在您的情况下,作业正在作为localRunner执行,这意味着从客户端,YARN配置不正确或YARN服务关闭。 Validate your configurations. 验证您的配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM