Beispiel #1
0
 def restoreConfig(cls, services=['metastore', 'hiveserver2'], restoreTez=False, waitForPortToOpen=True):
     resetVersion = cls.getStartingAmbariServiceConfigVersion()
     logger.info("Restoring Service Config Version to: %s" % resetVersion)
     Ambari.resetConfig(cls._ambariServiceName, resetVersion)
     if restoreTez and not cls.isHive2():
         Ambari.resetConfig(cls._ambariTezServiceName, cls._ambariTezServiceConfigVersion)
     cls._modifiedConfigs.clear()
     cls._hiveServer2Port = None
     if len(services) > 0:
         cls.restartServices(services=services, waitForPortToOpen=waitForPortToOpen)
Beispiel #2
0
 def restoreConfig(cls):
     resetVersion = cls.getStartingAmbariServiceConfigVersion()
     logger.info("Restoring Service Config Version to: %s" % resetVersion)
     Ambari.resetConfig(cls._ambariServiceName, resetVersion)
     Ambari.restart_services_with_stale_configs()