Exemple #1
0
  def start(self, env, rolling_restart=False):
    import params
    env.set_params(params)
    self.configure(env) # FOR SECURITY

    setup_ranger_hive(rolling_upgrade=rolling_restart)
    hive_service( 'hiveserver2', action = 'start', rolling_restart=rolling_restart)
    if rolling_restart:
      hive_server_upgrade.post_upgrade_deregister()
Exemple #2
0
    def start(self, env, upgrade_type=None):
        import params
        env.set_params(params)
        self.configure(env)  # FOR SECURITY

        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.post_upgrade_deregister()
Exemple #3
0
    def start(self, env, rolling_restart=False):
        import params
        env.set_params(params)
        self.configure(env)  # FOR SECURITY

        setup_ranger_hive(rolling_upgrade=rolling_restart)
        hive_service('hiveserver2',
                     action='start',
                     rolling_restart=rolling_restart)
        if rolling_restart:
            hive_server_upgrade.post_upgrade_deregister()