def start(self, env, upgrade_type=None): import params env.set_params(params) self.configure(env) if params.security_enabled: # Do the security setup, internally calls do_kinit() self.setup_security() # TODO : We need have conditional [re]start of LLAP once "status check command" for LLAP is ready. # Check status and based on that decide on [re]starting. # Start LLAP before Hive Server Interactive start. status = self._llap_start(env) if not status: # if we couldnt get LLAP in RUNNING or RUNNING_ALL state, stop LLAP process before bailing out. self._llap_stop(env) raise Fail( "Skipping START of Hive Server Interactive since LLAP app couldn't be STARTED." ) # TODO : test the workability of Ranger and Hive2 during upgrade setup_ranger_hive_interactive(upgrade_type=upgrade_type) hive_service_interactive('hiveserver2', action='start', upgrade_type=upgrade_type)
def start(self, env, upgrade_type=None): import params env.set_params(params) install_hive() self.configure(env) if params.security_enabled: # Do the security setup, internally calls do_kinit() self.setup_security() # Check status and based on that decide on [re]starting. # Start LLAP before Hive Server Interactive start. status = self._llap_start(env) if not status: raise Fail( "Skipping START of Hive Server Interactive since LLAP app couldn't be STARTED." ) setup_ranger_hive_interactive(upgrade_type=upgrade_type) hive_service_interactive('hiveserver2', action='start', upgrade_type=upgrade_type)