File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
resource-managers/kubernetes/docker/src/main/dockerfiles/spark Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,10 @@ set -ex
22
22
# Check whether there is a passwd entry for the container UID
23
23
myuid=$( id -u)
24
24
mygid=$( id -g)
25
+ # turn off -e for getent because it will return error code in anonymous uid case
26
+ set +e
25
27
uidentry=$( getent passwd $myuid )
28
+ set -e
26
29
27
30
# If there is no passwd entry for the container UID, attempt to create one
28
31
if [ -z " $uidentry " ] ; then
41
44
shift 1
42
45
43
46
SPARK_CLASSPATH=" $SPARK_CLASSPATH :${SPARK_HOME} /jars/*"
44
- env | grep SPARK_JAVA_OPT_ | sed ' s/[^=]*=\(.*\)/\1/g' > /tmp/java_opts.txt
47
+ env | grep SPARK_JAVA_OPT_ | sort -t_ -k4 -n | sed ' s/[^=]*=\(.*\)/\1/g' > /tmp/java_opts.txt
45
48
readarray -t SPARK_JAVA_OPTS < /tmp/java_opts.txt
46
49
if [ -n " $SPARK_MOUNTED_CLASSPATH " ]; then
47
50
SPARK_CLASSPATH=" $SPARK_CLASSPATH :$SPARK_MOUNTED_CLASSPATH "
You can’t perform that action at this time.
0 commit comments