Skip to content

Commit

Permalink
Use local repository instead of maven central:
Browse files Browse the repository at this point in the history
- Use local repo in run_example_server.
- Add extensions-repo to common.runtime.properties for the tarball.
  • Loading branch information
gianm authored and xvrl committed Aug 19, 2015
1 parent 2093187 commit 601cd82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/bin/run_example_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/config/_common/common.runtime.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 601cd82

Please sign in to comment.