Exemple #1
0
    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.
        # TODO, why does LLAP have to be started before Hive Server Interactive???
        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(upgrade_type=upgrade_type)
        hive_service_interactive('hiveserver2',
                                 action='start',
                                 upgrade_type=upgrade_type)
Exemple #2
0
    def stop(self, env, upgrade_type=None):
        import params
        env.set_params(params)

        if params.security_enabled:
            self.do_kinit()

        # Stop Hive Interactive Server first
        hive_service_interactive('hiveserver2', action='stop')

        self._llap_stop(env)
    def stop(self, env, upgrade_type=None):
      import params
      env.set_params(params)

      if params.security_enabled:
        self.do_kinit()

      # Stop Hive Interactive Server first
      hive_service_interactive('hiveserver2', action='stop')

      if not params.is_restart_command:
        self._llap_stop(env)
      else:
        Logger.info("LLAP stop is skipped as its a restart command")
Exemple #4
0
    def stop(self, env, upgrade_type=None):
        import params
        env.set_params(params)

        if params.security_enabled:
            self.do_kinit()

        # TODO, why must Hive Server Interactive be stopped before LLAP???

        # Stop Hive Interactive Server first
        # TODO : Upgrade check comes here.
        hive_service_interactive('hiveserver2', action='stop')

        self._llap_stop(env)
Exemple #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)
    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.
      # TODO, why does LLAP have to be started before Hive Server Interactive???
      status = self._llap_start(env)
      if status:
        # TODO : test the workability of Ranger and Hive2 during upgrade
        # setup_ranger_hive(upgrade_type=upgrade_type)

        hive_service_interactive('hiveserver2', action='start', upgrade_type=upgrade_type)
      else:
        Logger.info("Skipping start of Hive Server Interactive due to LLAP start issue.")
        raise Exception("Problem starting HiveServer2")