Support Questions

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

ambari parameters - Ambari’s NameNode restart timeout parameter

avatar

we intend to perform ambari upgrade to 2.6.1

so we read the hortonworks doc - https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.3/bk_ambari-upgrade/content/preparing_to_upgr...

and about the: ( from the doc )

For Large Clusters

"In a large cluster, starting the NameNode can take a long time. To ensure the Ambari requests to start the NameNode do not timeout during the upgrade, you should configure Ambari’s NameNode restart timeout parameter. To do this, add ten percent to the normal amount of time in seconds it takes to start your NameNode when restarted. That value should be used to set the upgrade.parameter.nn-restart.timeout in /etc/ambari-server/conf/ambari.properties on the Ambari Server host. Then, restart Ambari Server before beginning the upgrade."

we try to find the "ambari’s NameNode restart timeout parameter

from the file: /etc/ambari-server/conf/ambari.properties ( on ambari server machine )

but this parameters isn't exists


first question - what is the exactly name of this parameters?

second question - what is the amount of the workers in the cluster to set this parameters in the - ambari.properties ?

grep timeout  /etc/ambari-server/conf/ambari.properties
agent.package.install.task.timeout=1800
agent.task.timeout=900
server.http.session.inactive_timeout=1800
server.task.timeout=1200
user.inactivity.timeout.default=0
user.inactivity.timeout.role.readonly.default=0
views.ambari.request.connect.timeout.millis=30000
views.ambari.request.read.timeout.millis=45000
views.request.connect.timeout.millis=5000
views.request.read.timeout.millis=10000
Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Master Mentor
6 REPLIES 6

avatar
Master Mentor

avatar

I am not sure about this parameter , but what we need is the parameter from the doc - https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.1.3/bk_ambari-upgrade/content/preparing_to_upgr... the parameter that called - Ambari’s NameNode restart timeout parameter , if you think the doc talk about the parameter - upgrade.parameter.nn-restart.timeout then just confirm that so we can continue

Michael-Bronson

avatar
Master Mentor

@Michael Bronson

This property is not there by default inside the ambari.properties. Can you please try adding it as per the doc:

That value should be used to set the upgrade.parameter.nn-restart.timeout in /etc/ambari-server/conf/ambari.properties on the Ambari Server host.  (followed by ambari server restart)<br>

avatar

ok I will add it but what is the value according to the cluster size ? , I mean the doc talk about to set this parameters in case we need to upgrade very large cluster system , so in that case what is the defintion of large cluster? - 10 workers? 20 workers 50 workers , and what is the value regarding that ?

Michael-Bronson

avatar
Master Mentor

@Michael Bronson

EDIT: In Large clusters the NameNode startup can cause delay. This is because it might take long time to collect the block information's from the DataNodes and update the BP information (assuming thart in large clusters the data is also too high) . So you will need to set the value for this parameter based on the observations of your NameNode startup time. The value of this parameter can vary based on the amount of data that you have on your cluster and the Size of your cluster. There is no standard formula to decide the exact value as the NameNode startyup can be slow due to many other reasons as well like less memory (slow network/IO ..etc)

Suppose normally if your Active NameNode startup takes 30 Minutes then set the value of this parameter to slightly greater than 30 Minutes (like 35 Minutes) this will help in avoiding the timeout.

avatar
Contributor