Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How can I increase JobHistoryServer heap size if I use ambari?

Solved Go to solution

How can I increase JobHistoryServer heap size if I use ambari?

New Contributor

Since I encountered OOME on JobHistoryServer process, I increased HADOOP_JOB_HISTORYSERVER_HEAPSIZE in /usr/hdp/current/hadoop-client/conf/mapred-env.sh. However, it seems dose not work because ambari overwrite the property when I restart JobHistoryServer.

How can I set heap size of JobHistoryServer?

I use following components.

Ambari: 2.1.2

Hadoop: HDP 2.2.6.0-2800

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How can I increase JobHistoryServer heap size if I use ambari?

Ambari automatically overwrites these configurations when the services are restarted, however you can set the JobHistory-Server Heapsize directly through Ambari.

  1. Select MapReduce2 service
  2. Select "Configs" tab
  3. Select "Advanced" tab
  4. The Group "History Server" contains the configuration "jobhistory_heapsize"

573-jobhistoryheap.png

2 REPLIES 2

Re: How can I increase JobHistoryServer heap size if I use ambari?

Ambari automatically overwrites these configurations when the services are restarted, however you can set the JobHistory-Server Heapsize directly through Ambari.

  1. Select MapReduce2 service
  2. Select "Configs" tab
  3. Select "Advanced" tab
  4. The Group "History Server" contains the configuration "jobhistory_heapsize"

573-jobhistoryheap.png

Re: How can I increase JobHistoryServer heap size if I use ambari?

New Contributor

I had overlooked it.

Thank you!

Don't have an account?
Coming from Hortonworks? Activate your account here