Search in sources :

Example 1 with KyloUpgrader

use of com.thinkbiganalytics.server.upgrade.KyloUpgrader in project kylo by Teradata.

the class KyloServerApplication method main.

public static void main(String[] args) {
    SLF4JBridgeHandler.install();
    KyloUpgrader upgrader = new KyloUpgrader();
    if (upgrader.isUpgradeRequired()) {
        KyloVersion currentVersion = upgrader.getCurrentVersion();
        log.info("*****  Upgrade required - this may take some time  *****");
        log.info("Beginning upgrade from version {} ...", currentVersion == null ? "unknown" : currentVersion);
        upgrader.upgrade();
        log.info("*****  Upgrading complete  *****");
    } else {
        log.info("Kylo v{} is up to date.  Starting the application.", KyloVersionUtil.getBuildVersion());
    }
    System.setProperty(SpringApplication.BANNER_LOCATION_PROPERTY, "banner.txt");
    SpringApplication.run("classpath:application-context.xml", args);
}
Also used : KyloVersion(com.thinkbiganalytics.KyloVersion) KyloUpgrader(com.thinkbiganalytics.server.upgrade.KyloUpgrader)

Aggregations

KyloVersion (com.thinkbiganalytics.KyloVersion)1 KyloUpgrader (com.thinkbiganalytics.server.upgrade.KyloUpgrader)1