Sunday, November 9, 2014

How to Remote Debug Standalone Hadoop


  When you run your map reduce applications you may have hiccups here and there and may need to have a look inside. If you need to remote debug rather going through logs and figuring out what went wrong following is the procedure.

I am using Intellij Idea as the IDE but for other IDE's process is similar.

1) In Intellij Idea go to Run > Edit Configuration and then click on "+" . And then add Remote for "Remote Debugging"



2) You will have following window after clicking on Remote. You can change the port you are using for remote debugging in this panel.



3) Open your Hadoop Root folder and navigate to etc/hadoop-env.sh in your editor. At the bottom of the file add the following line. (Make sure to have the port you given for IDE configuration as the address)

export HADOOP_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"


Now you can start hadoop in standalone mode and it will wait until you attach your IDE to debug process to resume.


46 comments:

  1. I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.
    Regards,
    Python Training in Chennai|Python Taining|Python Training Institutes in Chennai

    ReplyDelete
  2. You have furnished a worthable content in here. I find this article useful to read and share. I have already bookmarked your content for future updates. Thanks for sharing.


    Android training chennai | Selenium training chennai | software testing training in chennai

    ReplyDelete
  3. This is very informative post with lots of amazing applications visit for more info telephone applications

    ReplyDelete
  4. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Android training in Chennai | Android course in Chennai

    ReplyDelete
  5. First of all thank you sharing this informative post to us.. i got more new and useful information about hadoop which useful to improve my hadoop knowledge ..

    hadoop training institute in chennai | big data training institute in chennai

    ReplyDelete
  6. Informative post about hadoop, i am looking forward for realtime hadoop online training institute.

    ReplyDelete
  7. يسعدنا و أن نقدم لكم شركة الحورس لتركيب طارد الحمام والطيور بالرياض شركة ممتازة جداً و ذات خبرات فائقة فى مكافحة الطيور و الحمام و عمل و تنفيذ تلك الطوارد المعدنية على أمثل وجه فهى تعمل على طرد الطيور و هربها ليس قتلها لان معظمها تكون للزينة و التربية فتواصلوا معاها لكى تخلصك من جميع الروائح والفضلات التى تتركها عند وجودها على المبنى فوداعاً لتواجد الطيور على النوافذ والاسوار الخارجية للمنزل .
    شركة تركيب طارد حمام بالرياض

    ReplyDelete
  8. Good job! Fruitful article. I like this very much. It is very useful for my research. It shows your interest in this topic very well. I hope you will post some more information about the software. Please keep sharing!!
    Hadoop Training in Chennai
    Big Data Training in Chennai
    Blue Prism Training in Chennai
    CCNA Course in Chennai
    Cloud Computing Training in Chennai
    Data Science Course in Chennai
    Big Data Training in Chennai Annanagar
    Hadoop Training in Velachery

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. شركة تنظيف بالرياض الفيلا الجديده ؛ من خلال تنظيف و غسيل الموكيت و السجاد و الكليم و إزالة بقع الطعام منها أو التخلص من الاتربه و الغبار في وقت قياسي جدا ، كما خدمة الغسيل شقق فلل مجالس موكيت كنب مساجد خزانات منازل غسيل شقق
    غسيل فرشات غسيل فلل

    شركة تنظيف مجالس
    شركة تنظيف بالرياض توفير كافه الادوات والمعدات اللازمه في عمليه النظافة لحصول العميل علي منزل نظيف خالي من اي اوساخ بعمالة مدربة باسعار مميزة نظافة شقق موكيت سجاد كنب ستائر فلل منازل مجالس واجهات شقق مجالس كنب سجاد خزانات
    تنظيف فلل
    شركة تنظيف خزانات
    شركة تنظيف فلل ومنازل وشقق
    تنظيف مجالس فرشات ستائر كنب بالرياض

    تقدم خدمات
    تعقيم منازل
    نظافه عامه وخدمات المنزلى
    مكافحة حشرات

    حلى بلاط تلميع زوجتك وتلميع اثاث
    مكيفات فك وتركيب مكيفات
    شركة غسيل خزانات
    تعقيم شامل للمنزل
    شركة تنظيف بحائل
    شركة تنظيف بالرياض

    تهتم بتنظيف شقق فلل خيام استراحات

    تنظيف مكيفات كنب سجاد

    مجالس فرشات مكافحة حشرات

    تنظيف عزل خزانات

    تعقيم فلل مكاتب شركات جلي بلاط سيراميك

    بارخص الاسعار

    ReplyDelete
  11. People working on cyberattacks are more knowledgeable as compared to an average IT professional. Gone are the days where amateur hackers were attacking our systems. Cybersecurity Engineer Career Overview

    ReplyDelete
  12. Great information, thank you for the share. Your blog helps me knowing about Hadoop technology.
    Digital marketing courses in Nashik

    ReplyDelete