Skip to content

Commit

Permalink
Add javahome for web-search
Browse files Browse the repository at this point in the history
  • Loading branch information
xusine committed Sep 14, 2022
1 parent efc9401 commit c0867c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions benchmarks/web-search/index/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which javac))))
export SOLR_JAVA_HOME=$JAVA_HOME

$SOLR_HOME/bin/solr start -force

$SOLR_HOME/bin/solr create -c nutch -d nutch -force
Expand Down
2 changes: 2 additions & 0 deletions benchmarks/web-search/server/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export SERVER_HEAP_SIZE=$1 &&
export NUM_SERVERS=$2

#Prepare Solr
export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which javac))))
export SOLR_JAVA_HOME=$JAVA_HOME
$SOLR_HOME/bin/solr start -force -cloud -p $SOLR_PORT -s $SOLR_CORE_DIR -m $SERVER_HEAP_SIZE
$SOLR_HOME/bin/solr status
$SOLR_HOME/bin/solr create_collection -force -c cloudsuite_web_search -d cloudsuite_web_search -shards $NUM_SERVERS -p $SOLR_PORT
Expand Down

0 comments on commit c0867c8

Please sign in to comment.