Skip to content
Permalink
Browse files
Fix #240 Add ZK lib dir to Accumulo class path (#242)
Add ZooKeeper 3.5.7's lib directory to Accumulo 2.0.0's class path in
conf/accumulo-env.sh
  • Loading branch information
ctubbsii committed Mar 18, 2020
1 parent 045201f commit cf330f86a629dd284d66374205e861182111645e
Showing 1 changed file with 3 additions and 0 deletions.
@@ -59,6 +59,9 @@ else
$SED "s#instance[.]zookeepers=localhost:2181#instance.zookeepers=$UNO_HOST:2181#" "$conf"/accumulo-client.properties
$SED "s#auth[.]principal=#auth.principal=$ACCUMULO_USER#" "$conf"/accumulo-client.properties
$SED "s#auth[.]token=#auth.token=$ACCUMULO_PASSWORD#" "$conf"/accumulo-client.properties
if [[ $ACCUMULO_VERSION =~ ^2\.0\.0.*$ ]]; then
$SED 's#:[$][{]ZOOKEEPER_HOME[}]/[*]:#:${ZOOKEEPER_HOME}/*:${ZOOKEEPER_HOME}/lib/*:#' "$conf"/accumulo-env.sh
fi
fi
$SED "s#localhost#$UNO_HOST#" "$conf/masters" "$conf/monitor" "$conf/gc"
$SED "s#export ZOOKEEPER_HOME=[^ ]*#export ZOOKEEPER_HOME=$ZOOKEEPER_HOME#" "$conf"/accumulo-env.sh

0 comments on commit cf330f8

Please sign in to comment.