Skip to content

Commit 0b9d55c

Browse files
author
Jacek Lewandowski
authored
Merge pull request #20 from riptano/DSP-15832-dse-2.2
DSP-15832: Use home dir for Spark JobServer data and logs (dse-2.2)
2 parents 0c5b322 + a8e6851 commit 0b9d55c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

job-server/config/dse.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ fi
3434
DEPLOY_HOSTS="localhost"
3535

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

3939
PIDFILE=spark-jobserver.pid
40-
41-
SPARK_CONF_DIR=${SPARK_CONF_DIR:-"$SPARK_HOME/conf"}

job-server/src/main/resources/application.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ spark {
3333
cache-on-upload = true
3434

3535
filedao {
36-
rootdir = /tmp/spark-jobserver/filedao/data
36+
rootdir = ${HOME}/.spark-jobserver/filedao/data
3737
}
3838

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

4545
cassandra {
@@ -64,12 +64,12 @@ spark {
6464
jdbc-driver = org.h2.Driver
6565

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

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

0 commit comments

Comments
 (0)