int sleepTimeSeconds = Integer.parseInt(sleepTime);
LOG.info("Script complete but sleeping for " + sleepTimeSeconds
+ " seconds to keep the HiveStats REST server running. Hit ctrl-c to exit.");
Thread.sleep(sleepTimeSeconds * 1000L);
reporter.stopServer();
}
catch (NumberFormatException e) {
LOG.warn(POST_SCRIPT_SLEEP_SECS_PARAM + " param is not a valid number, not sleeping: "
+ sleepTime);