Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

how to change the NodeManager Java heap size

avatar

how to change the NodeManager Java heap size value , this value cant change from the ambari GUI ( value is static ), how to enable in order to change it

I need to change this parameter according to the solution - https://community.hortonworks.com/content/supportkb/49606/gc-overhead-limit-exceeded.html

we have a problem to start the nodemanager on the worker machine

example from the log on worker machine:

FATAL nodemanager.NodeManager (NodeManager.java:initAndStartNodeManager(549)) - Error starting NodeManager java.lang.OutOfMemoryError: GC overhead limit exceeded at org.fusesource.leveldbjni.internal.NativeIterator.key(NativeIterator.java:171) at org.fusesource.leveldbjni.internal.JniDBIterator.peekNext(JniDBIterator.java:87) at org.apache.hadoop.yarn.server.utils.LeveldbIterator.peekNext(LeveldbIterator.java:137) at org.apache.hadoop.yarn.server.nodemanager.recovery.NMLeveldbStateStoreService.loadContainersState(NMLeveldbStateStoreService.java:169) at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.recover(ContainerManagerImpl.java:262) at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:246) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:291) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:546) at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:594) 2017-09-15 11:19:27,456 INFO util.ExitUtil (ExitUtil.java:halt(147)) - Halt with status -1 Message: HaltException

Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Master Mentor

@uri ben-ari

The NodeManager Heap mentioned in your "capture.jpg" screen shot is Disabled because you are Searching it in the "Filter" remove the search text and select the current "Config" version, Then you will see it enabled And Do not forget to Login As "Admin User"

.

Or else try this:

Ambari UI --> YARN --> Configs --> Advanced 

You will see "NodeManager" bar there expand it and then edit the

"NodeManager Java heap size"

Save the changes and then restart affected components.

View solution in original post

6 REPLIES 6

avatar
Master Mentor

@uri ben-ari

The NodeManager Heap mentioned in your "capture.jpg" screen shot is Disabled because you are Searching it in the "Filter" remove the search text and select the current "Config" version, Then you will see it enabled And Do not forget to Login As "Admin User"

.

Or else try this:

Ambari UI --> YARN --> Configs --> Advanced 

You will see "NodeManager" bar there expand it and then edit the

"NodeManager Java heap size"

Save the changes and then restart affected components.

avatar
Master Mentor

@uri ben-ari

If the button is still disabled to change the NodeManger Heap then please make sure that you have logged in with correct user who has access to change to configuration . (not as Read Only User).

Please see : https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-administration/content/cluster_ro...

avatar

I have access to ambari GUI as admin admin

Michael-Bronson

avatar

is it possible to change it from CLI or API

Michael-Bronson

avatar

just to remined I need to change this value on worker machine

Michael-Bronson

avatar

I succeeded to change it but still nodemanager cant start

Michael-Bronson