-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDP: We added code to run the patch on the active name node only. #25
Comments
Thanks for the suggestion. We will look into this. Note that there is already code which ensures via a marker file that even when the HDFS phase runs on multiple hosts, only one will modify the HDFS contents. |
But this command |
Ah, this was on HDP? I see that the marker file logic doesn't exist there. |
Yes |
@jtran-cloudera Any update on fixing this? |
We run the patch with ansible on all machines.
Added code in patch_hdfs_tgz.sh:
kinit -kt $keytab $principal # under this line.
hdfs haadmin -getAllServiceState | grep active | grep
hostname
active_nn=$?
if [ $active_nn -eq 1 ]
exit 0
fi
The text was updated successfully, but these errors were encountered: