Skip to content

Commit

Permalink
Merge pull request #18 from riptano/DSP-15832-dse
Browse files Browse the repository at this point in the history
DSP-15832: Use home dir for Spark JobServer data and logs
  • Loading branch information
jacek-lewandowski authored May 11, 2018
2 parents 9ce8b09 + 183e3dc commit 958a676
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions job-server/config/dse.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ spark {

jobserver {
port = 8090
jar-store-rootdir = /tmp/jobserver/jars
jar-store-rootdir = ${HOME}/.spark-jobserver/jars

jobdao = spark.jobserver.io.JobFileDAO

filedao {
rootdir = /tmp/spark-job-server/filedao/data
rootdir = ${HOME}/.spark-jobserver/filedao/data
}
}

Expand Down
4 changes: 1 addition & 3 deletions job-server/config/dse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ fi
DEPLOY_HOSTS="localhost"

INSTALL_DIR="$DSE_COMPONENTS_ROOT/spark/spark-jobserver"
LOG_DIR=/var/log/spark/job-server
LOG_DIR="${LOG_DIR:-"$HOME/.spark-jobserver"}"

PIDFILE=spark-jobserver.pid

SPARK_CONF_DIR=${SPARK_CONF_DIR:-"$SPARK_HOME/conf"}
8 changes: 4 additions & 4 deletions job-server/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ spark {
# }

filedao {
rootdir = /tmp/spark-jobserver/filedao/data
rootdir = ${HOME}/.spark-jobserver/filedao/data
}

datadao {
# storage directory for files that are uploaded to the server
# via POST/data commands
rootdir = /tmp/spark-jobserver/upload
rootdir = ${HOME}/.spark-jobserver/upload
}

# To load up job jars on startup, place them here,
Expand All @@ -45,12 +45,12 @@ spark {
jdbc-driver = org.h2.Driver

# Directory where default H2 driver stores its data. Only needed for H2.
rootdir = /tmp/spark-jobserver/sqldao/data
rootdir = ${HOME}/.spark-jobserver/sqldao/data

# Full JDBC URL / init string, along with username and password. Sorry, needs to match above.
# Substitutions may be used to launch job-server, but leave it out here in the default or tests won't pass
jdbc {
url = "jdbc:h2:file:/tmp/spark-jobserver/sqldao/data/h2-db"
url = "jdbc:h2:file:"${HOME}"/.spark-jobserver/sqldao/data/h2-db"
user = ""
password = ""
}
Expand Down

0 comments on commit 958a676

Please sign in to comment.