XiaoMi / minos

Minos is beyond a hadoop deployment system.
Apache License 2.0
522 stars 200 forks source link

访问YARN监控页面出错 #22

Closed haidawyl closed 10 years ago

haidawyl commented 10 years ago

我在访问yarn页面时显示 Server Error (500)

在owl/debug.log里看到错误信息 ERROR 2014-03-13 10:41:07,630 base 24854 140053866374912 Internal Server Error: /monitor/job/3/ Traceback (most recent call last): File "/home/hadoop/minos/build/env/lib/python2.7/site-packages/django/core/handlers/base.py", line 114, in get_response response = wrapped_callback(request, _callback_args, *_callback_kwargs) File "/home/hadoop/minos/owl/monitor/views.py", line 404, in show_job tsdb_metrics = metric_helper.make_metrics_query_for_job(endpoints, job, tasks) File "/home/hadoop/minos/owl/monitor/metric_helper.py", line 132, in make_metrics_query_for_job task_view_config = job_metrics_view_config(job) File "/home/hadoop/minos/owl/monitor/metric_helper.py", line 77, in job_metrics_view_config return metric_view_config.JOB_METRICS_VIEW_CONFIG[service][job] KeyError: 'yarn'

请问这个错误怎么解决?

wuzesheng commented 10 years ago

目前我们用的yarn自己的/metrics下面没有提供metrics, 因此在owl里也没配置,所以会显示500

如果你用的yarn自己的/metrics下面有提供metrics出来的话,可以参考learning_minos.ppt自己配置一些

haidawyl commented 10 years ago

learning_minos.ppt在哪儿?找到了learning_minos.pdf,不过不能正常打开,显示文件已损坏。

wuzesheng commented 10 years ago

git上这个版本pdf确实有点问题,正在修复。你先看一下这个:http://share.csdn.net/slides/1324,最后面有扩展metrics的方法

wuzesheng commented 10 years ago

上传pdf有点问题,你如果急的话,留个邮箱,我直接给你发一份吧。

haidawyl commented 10 years ago

haidawyl@163.com,方便的话麻烦你给我发一份吧

wuzesheng commented 10 years ago

已发。

haidawyl commented 10 years ago

收到,多谢!