def start(self, env, upgrade_type=None): import params env.set_params(params) install_hive() self.configure(env) # FOR SECURITY setup_ranger_hive(upgrade_type=upgrade_type) hive_service('hiveserver2', action='start')
def start(self, env, upgrade_type=None): import params env.set_params(params) install_hive() self.configure(env) if params.init_metastore_schema: create_metastore_schema() # execute without config lock hive_service('metastore', action='start', upgrade_type=upgrade_type) setup_ranger_hive_metastore_service()
def start(self, env, upgrade_type=None): import params env.set_params(params) install_hive() self.configure(env) # FOR SECURITY setup_ranger_hive(upgrade_type=upgrade_type) hive_service('hiveserver2', action='start', upgrade_type=upgrade_type) # only perform this if upgrading and rolling; a non-rolling upgrade doesn't need # to do this since hive is already down if upgrade_type == UPGRADE_TYPE_ROLLING: hive_server_upgrade.deregister()
def start(self, env): import params env.set_params(params) install_hive() refresh_yarn() create_hive_hdfs_dirs() # writing configurations on start required for securtity self.configure(env) if params.init_metastore_schema: create_metastore_schema() # execute without config lock create_hive_metastore_schema( ) # before starting metastore create info schema hive_service('metastore', action='start') # below function call is used for cluster depolyed in cloud env to create ranger hive service in ranger admin. setup_ranger_hive_metastore_service()
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)
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() # 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: 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')
def install(self, env): import params install_hive() self.configure(env)
def configure(self, env): import params env.set_params(params) install_hive() hive(name='client')
def start(self, env, upgrade_type=None): import params env.set_params(params) install_hive() self.configure(env) # FOR SECURITY webhcat_service(action='start', upgrade_type=upgrade_type)
def install(self, env): install_hive()
def configure(self, env): import params env.set_params(params) install_hive() hcat()
def install(self, env): import params self.install_packages(env) install_hive()
def install(self, env): self.install_packages(env) install_hive() self.configure(env)
def install(self, env): self.install_packages(env) install_hive()