This is an automated email from the ASF dual-hosted git repository.

mwalch pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/fluo-uno.git


The following commit(s) were added to refs/heads/master by this push:
     new 5d4363e  Fixed bug with Accumulo encrypt (#202)
5d4363e is described below

commit 5d4363ec5cc14f48da02a54282faf14077c01234
Author: Mike Walch <[email protected]>
AuthorDate: Thu Oct 4 14:18:26 2018 -0400

    Fixed bug with Accumulo encrypt (#202)
    
    * accumulo.properties needs to contain correct key location
---
 bin/impl/setup-accumulo.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/impl/setup-accumulo.sh b/bin/impl/setup-accumulo.sh
index ecbc5ac..2911ff2 100755
--- a/bin/impl/setup-accumulo.sh
+++ b/bin/impl/setup-accumulo.sh
@@ -59,9 +59,10 @@ else
   $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_CRYPTO" == "true" ]]; then
-    openssl rand -out $ACCUMULO_HOME/testkeyfile.key 32
+    encrypt_key=$ACCUMULO_HOME/conf/data-encryption.key
+    openssl rand -out $encrypt_key 32
     echo "instance.crypto.opts.key.provider=uri" >> "$accumulo_conf"
-    echo 
"instance.crypto.opts.key.location=file://$ACCUMULO_HOME/conf/data-encryption.key"
 >> "$accumulo_conf"
+    echo "instance.crypto.opts.key.location=file://$encrypt_key" >> 
"$accumulo_conf"
     echo 
"instance.crypto.service=org.apache.accumulo.core.security.crypto.impl.AESCryptoService"
 >> "$accumulo_conf"
   fi
 fi

Reply via email to