mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
ZEPPELIN-358 add jetty temporary directory
This commit is contained in:
parent
757605de1f
commit
98b784c108
2 changed files with 7 additions and 6 deletions
|
|
@ -19,14 +19,12 @@ package org.apache.zeppelin.server;
|
|||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.util.EnumSet;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.servlet.DispatcherType;
|
||||
import javax.servlet.Servlet;
|
||||
import javax.ws.rs.core.Application;
|
||||
|
||||
import org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet;
|
||||
|
|
@ -240,6 +238,10 @@ public class ZeppelinServer extends Application {
|
|||
} else {
|
||||
// use packaged WAR
|
||||
webApp.setWar(warPath.getAbsolutePath());
|
||||
File warTempDirectory = new File(conf.getString(ConfVars.ZEPPELIN_WAR_TEMPDIR));
|
||||
warTempDirectory.mkdir();
|
||||
LOG.info("ZeppelinServer Webapp path: {}", warTempDirectory.getPath());
|
||||
webApp.setTempDirectory(warTempDirectory);
|
||||
}
|
||||
// Explicit bind to root
|
||||
webApp.addServlet(
|
||||
|
|
|
|||
|
|
@ -23,12 +23,10 @@ import java.util.*;
|
|||
import org.apache.commons.configuration.ConfigurationException;
|
||||
import org.apache.commons.configuration.XMLConfiguration;
|
||||
import org.apache.commons.configuration.tree.ConfigurationNode;
|
||||
import org.apache.zeppelin.notebook.repo.S3NotebookRepo;
|
||||
import org.apache.zeppelin.notebook.repo.VFSNotebookRepo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
||||
/**
|
||||
* Zeppelin configuration.
|
||||
*
|
||||
|
|
@ -326,11 +324,11 @@ public class ZeppelinConfiguration extends XMLConfiguration {
|
|||
public String getNotebookDir() {
|
||||
return getString(ConfVars.ZEPPELIN_NOTEBOOK_DIR);
|
||||
}
|
||||
|
||||
|
||||
public String getUser() {
|
||||
return getString(ConfVars.ZEPPELIN_NOTEBOOK_S3_USER);
|
||||
}
|
||||
|
||||
|
||||
public String getBucketName() {
|
||||
return getString(ConfVars.ZEPPELIN_NOTEBOOK_S3_BUCKET);
|
||||
}
|
||||
|
|
@ -398,6 +396,7 @@ public class ZeppelinConfiguration extends XMLConfiguration {
|
|||
ZEPPELIN_SSL_TRUSTSTORE_TYPE("zeppelin.ssl.truststore.type", null),
|
||||
ZEPPELIN_SSL_TRUSTSTORE_PASSWORD("zeppelin.ssl.truststore.password", null),
|
||||
ZEPPELIN_WAR("zeppelin.war", "../zeppelin-web/dist"),
|
||||
ZEPPELIN_WAR_TEMPDIR("zeppelin.war.tempdir", "webapps"),
|
||||
ZEPPELIN_INTERPRETERS("zeppelin.interpreters", "org.apache.zeppelin.spark.SparkInterpreter,"
|
||||
+ "org.apache.zeppelin.spark.PySparkInterpreter,"
|
||||
+ "org.apache.zeppelin.spark.SparkSqlInterpreter,"
|
||||
|
|
|
|||
Loading…
Reference in a new issue