def start(self, env, upgrade_type=None): import params env.set_params(params) self.configure(env) hdfs_binary = self.get_hdfs_binary() if not params.hdfs_tmp_dir or params.hdfs_tmp_dir == None or params.hdfs_tmp_dir.lower( ) == 'null': Logger.error( "WARNING: HDFS tmp dir property (hdfs_tmp_dir) is empty or invalid. Ambari will change permissions for the folder on regular basis." ) namenode(action="start", hdfs_binary=hdfs_binary, upgrade_type=upgrade_type, upgrade_suspended=params.upgrade_suspended, env=env) # after starting NN in an upgrade, touch the marker file - but only do this for certain # upgrade types - not all upgrades actually tell NN about the upgrade (like HOU) if upgrade_type in (constants.UPGRADE_TYPE_ROLLING, constants.UPGRADE_TYPE_NON_ROLLING): # place a file on the system indicating that we've submitting the command that # instructs NN that it is now part of an upgrade namenode_upgrade.create_upgrade_marker()
def start(self, env, upgrade_type=None): import params env.set_params(params) self.configure(env) hdfs_binary = self.get_hdfs_binary() namenode(action="start", hdfs_binary=hdfs_binary, upgrade_type=upgrade_type, upgrade_suspended=params.upgrade_suspended, env=env) # after starting NN in an upgrade, touch the marker file if upgrade_type is not None: # place a file on the system indicating that we've submitting the command that # instructs NN that it is now part of an upgrade namenode_upgrade.create_upgrade_marker()
def start(self, env, upgrade_type=None): import params env.set_params(params) self.configure(env) hdfs_binary = self.get_hdfs_binary() namenode(action="start", hdfs_binary=hdfs_binary, upgrade_type=upgrade_type, upgrade_suspended=params.upgrade_suspended, env=env) # after starting NN in an upgrade, touch the marker file - but only do this for certain # upgrade types - not all upgrades actually tell NN about the upgrade (like HOU) if upgrade_type in (constants.UPGRADE_TYPE_ROLLING, constants.UPGRADE_TYPE_NON_ROLLING): # place a file on the system indicating that we've submitting the command that # instructs NN that it is now part of an upgrade namenode_upgrade.create_upgrade_marker()