Skip to content

Commit a8c7b39

Browse files
committed
More updates to get cluster mode working with 1.4.0.
1 parent dd6bcc9 commit a8c7b39

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

pushdown-datasource/build.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ if [ ! -f $DIKECLIENTJAR ]; then
2828
fi
2929
cp $DIKECLIENTJAR pushdown-datasource/lib
3030

31-
# Bring in environment including ${ROOT_DIR} etc.
32-
source ../spark/docker/setup.sh
33-
3431
if [ "$#" -gt 0 ]; then
3532
if [ "$1" == "-d" ]; then
3633
shift
@@ -44,7 +41,7 @@ if [ "$#" -gt 0 ]; then
4441
-v "${ROOT_DIR}/build/.ivy2:${DOCKER_HOME_DIR}/.ivy2" \
4542
-u "${USER_ID}" \
4643
--entrypoint /bin/bash -w /pushdown-datasource/pushdown-datasource\
47-
spark-build-${USER_NAME}
44+
"v${DIKE_VERSION}-spark-build-${USER_NAME}"
4845
fi
4946
else
5047
echo "Building pushdown-datasource"
@@ -58,5 +55,5 @@ else
5855
-v "${ROOT_DIR}/build/.ivy2:${DOCKER_HOME_DIR}/.ivy2" \
5956
-u "${USER_ID}" \
6057
--entrypoint /pushdown-datasource/scripts/build.sh -w /pushdown-datasource/pushdown-datasource \
61-
spark-build-${USER_NAME}
58+
"v${DIKE_VERSION}-spark-build-${USER_NAME}"
6259
fi

spark/docker/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fi
6262
echo "User id is: $USER_ID"
6363
echo "Group id is: $GROUP_ID"
6464

65-
docker build -f Dockerfile --target v${DIKE_VERSION}_builder --build_arg SPARK_VERSION=$SPARK_VERSION -t v${DIKE_VERSION}_spark_build .
65+
docker build -f Dockerfile --target v${DIKE_VERSION}_builder --build-arg SPARK_VERSION=$SPARK_VERSION -t v${DIKE_VERSION}_spark_build .
6666
echo "Done building v${DIKE_VERSION}_spark_build docker"
6767

6868
docker build -f Dockerfile --build-arg SPARK_VERSION=$SPARK_VERSION -t v${DIKE_VERSION}_spark_run .

0 commit comments

Comments
 (0)