Use local repository instead of maven central:

- Use local repo in run_example_server.
- Add extensions-repo to common.runtime.properties for the tarball.
This commit is contained in:
Gian Merlino 2015-08-18 17:01:17 -07:00 committed by Xavier Léauté
parent 2093187c91
commit 601cd82987
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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