diff --git a/examples/bin/run_example_server.sh b/examples/bin/run_example_server.sh index 51dccf1d78e..5c7b2dbe21d 100755 --- a/examples/bin/run_example_server.sh +++ b/examples/bin/run_example_server.sh @@ -6,6 +6,7 @@ shopt -s expand_aliases trap "exit 1" 1 2 3 15 SCRIPT_DIR=`dirname $0` +MAVEN_DIR="${SCRIPT_DIR}/extensions-repo" if [[ ! -d "${SCRIPT_DIR}/lib" || ! -d "${SCRIPT_DIR}/config" ]]; then echo "This script appears to be running from the source location. It must be run from its deployed location." @@ -36,6 +37,8 @@ fi # start process JAVA_ARGS="-Xmx512m -Duser.timezone=UTC -Dfile.encoding=UTF-8" JAVA_ARGS="${JAVA_ARGS} -Ddruid.realtime.specFile=${SPEC_FILE}" +JAVA_ARGS="${JAVA_ARGS} -Ddruid.extensions.localRepository=${MAVEN_DIR}" +JAVA_ARGS="${JAVA_ARGS} -Ddruid.extensions.remoteRepositories=[]" DRUID_CP=${EXAMPLE_LOC} #For a pull diff --git a/examples/config/_common/common.runtime.properties b/examples/config/_common/common.runtime.properties index 78cc880949d..554b6d93417 100644 --- a/examples/config/_common/common.runtime.properties +++ b/examples/config/_common/common.runtime.properties @@ -18,6 +18,7 @@ # Extensions (no deep storage model is listed - using local fs for deep storage - not recommended for production) # Also, for production to use mysql add, "io.druid.extensions:mysql-metadata-storage" druid.extensions.coordinates=["io.druid.extensions:druid-examples","io.druid.extensions:druid-kafka-eight"] +druid.extensions.localRepository=extensions-repo # Zookeeper druid.zk.service.host=localhost