You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by cr...@apache.org on 2014/06/13 19:54:51 UTC

git commit: SAMZA-276; set java temp dir in container shell script

Repository: incubator-samza
Updated Branches:
  refs/heads/master 31c64f671 -> f236734b7


SAMZA-276; set java temp dir in container shell script


Project: http://git-wip-us.apache.org/repos/asf/incubator-samza/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-samza/commit/f236734b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-samza/tree/f236734b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-samza/diff/f236734b

Branch: refs/heads/master
Commit: f236734b7a7078e50234e0bb37877fa3de489cba
Parents: 31c64f6
Author: Yan Fang <ya...@gmail.com>
Authored: Fri Jun 13 10:54:41 2014 -0700
Committer: Chris Riccomini <cr...@criccomi-mn.linkedin.biz>
Committed: Fri Jun 13 10:54:41 2014 -0700

----------------------------------------------------------------------
 samza-shell/src/main/bash/run-class.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-samza/blob/f236734b/samza-shell/src/main/bash/run-class.sh
----------------------------------------------------------------------
diff --git a/samza-shell/src/main/bash/run-class.sh b/samza-shell/src/main/bash/run-class.sh
index 5a76793..cc341b7 100755
--- a/samza-shell/src/main/bash/run-class.sh
+++ b/samza-shell/src/main/bash/run-class.sh
@@ -56,8 +56,12 @@ if [ -z "$SAMZA_CONTAINER_NAME" ]; then
   SAMZA_CONTAINER_NAME="undefined-samza-container-name"
 fi
 
+# add usercache directory
+mkdir -p $base_dir/tmp
+JAVA_TEMP_DIR=$base_dir/tmp
+
 if [ -z "$JAVA_OPTS" ]; then
-  COMMON_OPTS="-Xmx768M -XX:+PrintGCDateStamps -Xloggc:$SAMZA_LOG_DIR/gc.log -Dsamza.log.dir=$SAMZA_LOG_DIR -Dsamza.container.name=$SAMZA_CONTAINER_NAME"
+  COMMON_OPTS="-Xmx768M -XX:+PrintGCDateStamps -Xloggc:$SAMZA_LOG_DIR/gc.log -Dsamza.log.dir=$SAMZA_LOG_DIR -Dsamza.container.name=$SAMZA_CONTAINER_NAME -Djava.io.tmpdir=$JAVA_TEMP_DIR"
   GC_LOG_ROTATION_OPTS="-XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10241024"
   JAVA_OPTS="$COMMON_OPTS"
   # Check whether the JVM supports GC Log rotation, and enable it if so.