ZEPPELIN-358 use getRelativeDir instead of getString

This commit is contained in:
Minwoo Kang 2015-12-01 17:58:49 +09:00
parent 98b784c108
commit 0046d36079

View file

@ -238,7 +238,7 @@ public class ZeppelinServer extends Application {
} else {
// use packaged WAR
webApp.setWar(warPath.getAbsolutePath());
File warTempDirectory = new File(conf.getString(ConfVars.ZEPPELIN_WAR_TEMPDIR));
File warTempDirectory = new File(conf.getRelativeDir(ConfVars.ZEPPELIN_WAR_TEMPDIR));
warTempDirectory.mkdir();
LOG.info("ZeppelinServer Webapp path: {}", warTempDirectory.getPath());
webApp.setTempDirectory(warTempDirectory);