-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82787c9
commit 1b025ca
Showing
15 changed files
with
519 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
files/default/hopsworks_templates/rstudio_logging_config_template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[*] | ||
log-level=warn | ||
logger-type=syslog | ||
|
||
[@rserver] | ||
log-level=${conf.logLevel} | ||
logger-type=${conf.loggerType} | ||
max-size-mb=${conf.maxSizeMb} | ||
log-file-include-pid=${conf.includePid} |
5 changes: 5 additions & 0 deletions
5
files/default/hopsworks_templates/rstudio_rserver_config_template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
rsession-which-r=${conf.versionPath} | ||
www-address=${conf.ipAddress} | ||
www-port=${conf.port} | ||
www-root-path=${conf.rootPath} | ||
server-user=${conf.serverUser} |
2 changes: 2 additions & 0 deletions
2
files/default/hopsworks_templates/rstudio_rsession_config_template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
session-timeout-minutes=${conf.sessionTimeoutMinutes} | ||
r-cran-repos=${conf.cranRepo} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
default: | ||
livy.driverCores: ${conf.driverCores} | ||
livy.driverMemory: "${conf.driverMemory}" | ||
livy.numExecutors: ${conf.numExecutors} | ||
livy.executorCores: ${conf.executorCores} | ||
livy.executorMemory: "${conf.executorMemory}" | ||
livy.proxyUser: "${conf.proxyUser}" | ||
livy.queue: "${conf.yarnQueue}" | ||
livy.name: "${conf.livyAppName}" | ||
${conf.sparkConfiguration} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
help() { | ||
echo "" | ||
echo "usage: $0 CONTAINER_ID PROJECT_USER_NAME" | ||
echo "" | ||
exit 1 | ||
} | ||
|
||
|
||
if [ $# -ne 2 ]; then | ||
help | ||
fi | ||
|
||
if [ "$2" != "" ]; then | ||
PROJECT_USER_NAME=$2 | ||
CONTAINER_NAME=${PROJECT_USER_NAME}__rstudio | ||
|
||
echo "Killing input container_name: $CONTAINER_NAME" | ||
docker rm -f "$CONTAINER_NAME" > /dev/null 2>&1 | ||
exit $? | ||
fi | ||
|
||
echo "Killing input container_id: $1" | ||
docker rm -f "$1" > /dev/null 2>&1 | ||
exit $? |
Oops, something went wrong.