示例#1
0
    def pre_rolling_restart(self, env):
        """
    Performs the tasks surrounding the Oozie startup when a rolling upgrade
    is in progress. This includes backing up the configuration, updating
    the database, preparing the WAR, and installing the sharelib in HDFS.
    :param env:
    :return:
    """
        import params
        env.set_params(params)

        # this function should not execute if the version can't be determined or
        # is not at least HDP 2.2.0.0
        if not params.version or compare_versions(
                format_hdp_stack_version(params.version), '2.2.0.0') < 0:
            return

        Logger.info("Executing Oozie Server Rolling Upgrade pre-restart")

        OozieUpgrade.backup_configuration()

        conf_select.select(params.stack_name, "oozie", params.version)
        hdp_select.select("oozie-server", params.version)

        OozieUpgrade.restore_configuration()
        OozieUpgrade.prepare_libext_directory()
        OozieUpgrade.prepare_warfile()
示例#2
0
  def start(self, env, upgrade_type=None):
    import params
    env.set_params(params)

    self.configure(env)
    # preparing the WAR file must run after configure since configure writes out
    # oozie-env.sh which is needed to have the right environment directories setup!
    if upgrade_type is not None:
      OozieUpgrade.prepare_warfile()
    
    oozie_service(action='start', upgrade_type=upgrade_type)
  def start(self, env, upgrade_type=None):
    import params
    env.set_params(params)

    self.configure(env)

    # preparing the WAR file must run after configure since configure writes out
    # oozie-env.sh which is needed to have the right environment directories setup!
    if upgrade_type is not None:
      OozieUpgrade.prepare_warfile()

    oozie_service(action='start', upgrade_type=upgrade_type)
  def start(self, env, rolling_restart=False):
    import params
    env.set_params(params)

    self.configure(env)

    # preparing the WAR file must run after configure since configure writes out
    # oozie-env.sh which is needed to have the right environment directories setup!
    if rolling_restart is True:
      OozieUpgrade.prepare_warfile()

    oozie_service(action='start', rolling_restart=rolling_restart)
示例#5
0
    def start(self, env, rolling_restart=False):
        import params
        env.set_params(params)

        self.configure(env)

        # preparing the WAR file must run after configure since configure writes out
        # oozie-env.sh which is needed to have the right environment directories setup!
        if rolling_restart is True:
            OozieUpgrade.prepare_warfile()

        oozie_service(action='start', rolling_restart=rolling_restart)