Created on 11-18-2018 05:45 PM - edited 08-17-2019 05:05 PM
hi all
as all know each value in ambari have MAX value
example
lets take for example the - NameNode Java heap size
in ambari we can see that max value is 15.5G
while the current value is 9.75
we want to create REST API that will set the value to the max - 15.5G
is it possible ? by API ?
or other solution ?
note - the value - 15.5G is unknown value , the target of the quastion is to set the MAX value , without to know the value
Created 11-18-2018 11:13 PM
The Max limit should be (RAM on NameNode - 500MB) i guess because Operating System processes also need some amount of RAM memory.
Do you have 16 GB RAM on your NameNode host?
Please check the NameNode "Hosts/total_mem" (Total Memory). You can assign NameNode heap not maore than that ideally even if the configuration file can have higher value.
# curl -H "X-Requested-By: ambari" -u admin:admin -X GET "http://newhwx1.example.com:8080/api/v1/clusters/NewCluster/hosts?fields=Hosts/rack_info,Hosts/host_name,Hosts/maintenance_state,Hosts/public_host_name,Hosts/total_mem"
.
Created 11-18-2018 11:13 PM
The Max limit should be (RAM on NameNode - 500MB) i guess because Operating System processes also need some amount of RAM memory.
Do you have 16 GB RAM on your NameNode host?
Please check the NameNode "Hosts/total_mem" (Total Memory). You can assign NameNode heap not maore than that ideally even if the configuration file can have higher value.
# curl -H "X-Requested-By: ambari" -u admin:admin -X GET "http://newhwx1.example.com:8080/api/v1/clusters/NewCluster/hosts?fields=Hosts/rack_info,Hosts/host_name,Hosts/maintenance_state,Hosts/public_host_name,Hosts/total_mem"
.
Created 11-18-2018 11:22 PM
@Jay , first thank you , actually what we want is the value of the MAX BAR ( as displayed 15.508 ) , is it posible to get this value by REST API , ?
Created 11-19-2018 12:59 AM
UI uses Java Script to parse and process the bar values. I am afraid that using API call we can not get those values calculations.
Mostly the recommendations comes from the "stack_advisor.py" script as following:
.
Created 11-18-2018 11:23 PM
@Jay as you know some parameters in ambari have scroll bar ( with max bar value ) , what we want is to know the MAX of the BAR by REST API
Created on 11-18-2018 11:27 PM - edited 08-17-2019 05:05 PM
Jay another example . you can see that BAR ended on - 32
so can we create some API that will give this value ( 32 ) ?