Skip to content

Commit d208bb9

Browse files
DSP-15832: Use home dir for Spark JobServer data and logs
1 parent cfbb7b7 commit d208bb9

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

job-server/config/dse.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ spark {
1414

1515
jobserver {
1616
port = 8090
17-
jar-store-rootdir = /tmp/jobserver/jars
17+
jar-store-rootdir = ${HOME}/.spark-jobserver/jars
1818

1919
jobdao = spark.jobserver.io.JobFileDAO
2020

2121
filedao {
22-
rootdir = /tmp/spark-job-server/filedao/data
22+
rootdir = ${HOME}/.spark-jobserver/filedao/data
2323
}
2424
}
2525

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
@@ -24,13 +24,13 @@ spark {
2424
# }
2525

2626
filedao {
27-
rootdir = /tmp/spark-jobserver/filedao/data
27+
rootdir = ${HOME}/.spark-jobserver/filedao/data
2828
}
2929

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

3636
cassandra {
@@ -55,12 +55,12 @@ spark {
5555
jdbc-driver = org.h2.Driver
5656

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

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

0 commit comments

Comments
 (0)