Getting stack trace/Heap dump of a process in EMR

In latest EMR AMI’s , Different Applications like Hive and Hadoop are installed with corresponding Unix USERS.

Example : Hive-server2 process in run with hive user.

To check the stack trace or heap dump of this process , you need to specify corresponding user who spawned this process.

You can use the following commands:

 

 

1

sudo -u hive jstack 74522

or

 

 

1

sudo -u hive jmap -dump:format=b,file=/var/log/hive/user/hive/heap.dump 74522

發佈了127 篇原創文章 · 獲贊 76 · 訪問量 45萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章