{"id":60517,"date":"2024-02-29T11:07:47","date_gmt":"2024-02-29T05:37:47","guid":{"rendered":"https:\/\/www.tothenew.com\/blog\/?p=60517"},"modified":"2024-03-01T11:13:32","modified_gmt":"2024-03-01T05:43:32","slug":"hadoop-monitoring-with-datadog","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/hadoop-monitoring-with-datadog\/","title":{"rendered":"Hadoop monitoring with Datadog"},"content":{"rendered":"<p><strong>\u00a0<\/strong>Recently, I integrated the monitoring of Hadoop with Datadog. The main aim of the monitoring is to monitor the cluster to check whether it has been running fine and to check other services of Hadoop like the health of the node manager, the health of disk space, etc.<\/p>\n<p>Datadog is a tool that allows you to monitor cloud infrastructure, Windows and Linux hosts, system processes, serverless functions, and cloud-based applications. It can be used to visualize data, explore metrics, manage logs, and perform various other tasks.<\/p>\n<h2>What types of monitoring can be done?<\/h2>\n<p>Datadog is great for businesses that need:<\/p>\n<ol>\n<li>Cloud monitoring<\/li>\n<li>Server performance monitoring service<\/li>\n<li>Server monitoring tools<\/li>\n<li>Server usage analytics<\/li>\n<li>80+ turn-key integrations for data aggregation<\/li>\n<li>Alert notifications via e-mail and PagerDuty<\/li>\n<li>Full API access<\/li>\n<li>Overlay metrics and events across disparate sources<\/li>\n<li>An easy way to compute rates, ratios, averages, or integrals<\/li>\n<li>Sampling intervals of 10 seconds<\/li>\n<li>Tools for team collaboration<\/li>\n<\/ol>\n<h2>Getting started<\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-60508 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/7DEC310A-DE90-4622-ADF3-BCE797C142E1-1024x735.jpeg\" alt=\"\" width=\"625\" height=\"449\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/7DEC310A-DE90-4622-ADF3-BCE797C142E1-1024x735.jpeg 1024w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/7DEC310A-DE90-4622-ADF3-BCE797C142E1-300x215.jpeg 300w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/7DEC310A-DE90-4622-ADF3-BCE797C142E1-768x551.jpeg 768w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/7DEC310A-DE90-4622-ADF3-BCE797C142E1-1536x1103.jpeg 1536w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/7DEC310A-DE90-4622-ADF3-BCE797C142E1-624x448.jpeg 624w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/7DEC310A-DE90-4622-ADF3-BCE797C142E1.jpeg 1908w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/p>\n<h2>DataDog Integrated With Hadoop<\/h2>\n<p>The first thing needed is to install the DataDog agent on the host to enable the data dog services \u2013<\/p>\n<p>Run the below command on your host and pass the DD API key \u2013<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-60509 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-1-1024x88.jpg\" alt=\"\" width=\"625\" height=\"54\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-1-1024x88.jpg 1024w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-1-300x26.jpg 300w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-1-768x66.jpg 768w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-1-1536x133.jpg 1536w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-1-2048x177.jpg 2048w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-1-624x54.jpg 624w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/p>\n<h3>Configure the Agent<\/h3>\n<p>We will need to create Agent configuration files for our Hadoop. In datadog agent directory, we will find template configuration files for the NameNode, DataNodes, MapReduce, and YARN, which services are running on their default ports (50075 for DataNodes, 50070 for NameNode, 8088 for the ResourceManage)<\/p>\n<p>Under Conf.d directory in the datadog agent directory, we can find multiple directories of the services we want to Monitor.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-60510 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-2.jpg\" alt=\"\" width=\"904\" height=\"182\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-2.jpg 904w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-2-300x60.jpg 300w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-2-768x155.jpg 768w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-2-624x126.jpg 624w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/p>\n<p>For Moniting Name Node go to Namenode directory and try to cp the conf example file to conf.yaml file \u2013<\/p>\n<p><strong>cp hdfs_namenode.yaml.example hdfs_namenode.yaml<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-60511 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-3.jpg\" alt=\"\" width=\"900\" height=\"28\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-3.jpg 900w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-3-300x9.jpg 300w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-3-768x24.jpg 768w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-3-624x19.jpg 624w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>Change the conf.yaml file and pass the hdfs_namenode_jmx_uri \u2013 as of your Name Node URL<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-60512 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-4.jpg\" alt=\"\" width=\"904\" height=\"136\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-4.jpg 904w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-4-300x45.jpg 300w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-4-768x116.jpg 768w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-4-624x94.jpg 624w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/p>\n<p>Once it&#8217;s done, Restart the datadog agent and post it to check the status.<\/p>\n<pre><strong>sudo service datadog-agent restart<\/strong><\/pre>\n<pre><strong>sudo service datadog-agent status<\/strong><\/pre>\n<p>You will see the metrics of the Name node below \u2013<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-60513 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-5.jpg\" alt=\"\" width=\"904\" height=\"410\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-5.jpg 904w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-5-300x136.jpg 300w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-5-768x348.jpg 768w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-5-624x283.jpg 624w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/p>\n<p>In the same way, we can monitor yarn and other services and can see the Yarn Metrics below \u2013<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-60514 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-6.jpg\" alt=\"\" width=\"904\" height=\"506\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-6.jpg 904w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-6-300x168.jpg 300w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-6-768x430.jpg 768w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-6-624x349.jpg 624w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-60515 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-7.jpg\" alt=\"\" width=\"904\" height=\"386\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-7.jpg 904w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-7-300x128.jpg 300w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-7-768x328.jpg 768w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-7-624x266.jpg 624w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/p>\n<p>We can also create Monitors for all the metrics that we want by just going to data dog and going to the Monitor putting the details of the metrics, and enabling the alerts \u2013<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-60516 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-8.jpg\" alt=\"\" width=\"904\" height=\"532\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-8.jpg 904w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-8-300x177.jpg 300w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-8-768x452.jpg 768w, \/blog\/wp-ttn-blog\/uploads\/2024\/02\/Picture-8-624x367.jpg 624w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>Monitoring Hadoop with Datadog is a powerful solution for organizations that want to gain deeper insights into their big data infrastructure and ensure its optimal performance. Datadog provides a comprehensive set of tools and features such as Comprehensive Visibility, Alerting and Notifications, Resource Optimization, Historical Data Analysis, Reduced Downtime, and Improved Performance.<\/p>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>\u00a0Recently, I integrated the monitoring of Hadoop with Datadog. The main aim of the monitoring is to monitor the cluster to check whether it has been running fine and to check other services of Hadoop like the health of the node manager, the health of disk space, etc. Datadog is a tool that allows you [&hellip;]<\/p>\n","protected":false},"author":1731,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":18},"categories":[4831],"tags":[5684],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/60517"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/1731"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=60517"}],"version-history":[{"count":2,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/60517\/revisions"}],"predecessor-version":[{"id":60566,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/60517\/revisions\/60566"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=60517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=60517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=60517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}