コード例 #1
0
    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')
コード例 #2
0
 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()
コード例 #3
0
ファイル: hive_server.py プロジェクト: tsingfu/bigdata
    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()
コード例 #4
0
ファイル: hive_metastore.py プロジェクト: xiaomatech/dataops
    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()
コード例 #5
0
    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)
コード例 #6
0
    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')
コード例 #7
0
 def install(self, env):
     import params
     install_hive()
     self.configure(env)
コード例 #8
0
 def configure(self, env):
     import params
     env.set_params(params)
     install_hive()
     hive(name='client')
コード例 #9
0
ファイル: webhcat_server.py プロジェクト: tsingfu/bigdata
 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)
コード例 #10
0
ファイル: webhcat_server.py プロジェクト: tsingfu/bigdata
 def install(self, env):
     install_hive()
コード例 #11
0
ファイル: hcat_client.py プロジェクト: tsingfu/bigdata
 def configure(self, env):
     import params
     env.set_params(params)
     install_hive()
     hcat()
コード例 #12
0
ファイル: hive_metastore.py プロジェクト: xiaomatech/dataops
 def install(self, env):
     import params
     self.install_packages(env)
     install_hive()
コード例 #13
0
 def install(self, env):
     self.install_packages(env)
     install_hive()
     self.configure(env)
コード例 #14
0
 def install(self, env):
     self.install_packages(env)
     install_hive()