Open nashvm opened 2 years ago
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.
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 ps -efww | grep org.apache.hadoop.hdfs.server.namenode.NameNode | grep -v grep
in hdp_log4j_jndi_removal.sh returns true for both the active and standby NNs, so patch_hdfs_tgz.sh script run twice which will be duplicate effort and time consuming.
Ah, this was on HDP? I see that the marker file logic doesn't exist there.
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