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 |