官术网_书友最值得收藏!

Job history web interface and metrics

In the previous recipe, we enabled history server, and now we will use the Web UI to the explore YARN metrics and job history.

Getting ready

Make sure you have completed the previous recipe and have a History Server running as daemon, as shown here in the list of processes:

Getting ready

How to do it...

  1. Using web browser, connect to the JobHistoryServer Web UI port, which in this case is port 19888 and host IP master1.cyrus.com.
  2. Once connected to the Web UI, the user can see JobHistory and other details as shown here:
    How to do it...
  3. Under the Tools section on the left-most side, the user can see links to view YARN parameters currently in effect, using the link configuration as shown here:
    How to do it...
  4. Another section is metrics, which gives information about JvmMetrics, stats, and so on. The output format is JSON:
    How to do it...
  5. The preceding output can also be viewed from the command line, as shown in the following screenshot:
    How to do it...

How it works...

In Hadoop, each daemon has a built-in web server, which is a jetty server. Each server exposes metrics, which can be captured or explored using the JMX API calls. The JMX interface is very important for writing plugins for health checks or for triggering some events on a condition, as it can be queried simply using a CURL call.

主站蜘蛛池模板: 阿荣旗| 鄄城县| 阜康市| 时尚| 辉南县| 万州区| 炎陵县| 弥渡县| 阿瓦提县| 沈丘县| 江孜县| 广安市| 普陀区| 龙口市| 水城县| 普格县| 边坝县| 河北省| 金湖县| 永吉县| 北票市| 南漳县| 武定县| 石景山区| 东安县| 肇东市| 桐城市| 松江区| 鹰潭市| 亚东县| 宁波市| 蕲春县| 翼城县| 木里| 溧水县| 阿克陶县| 宣威市| 永清县| 梓潼县| 囊谦县| 普安县|