Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conf/accumulo/2/accumulo.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ tserver.memory.maps.native.enabled=ACCUMULO_USE_NATIVE_MAP
tserver.wal.max.size=512M
tserver.port.search=true
compactor.port.search=true
sserver.port.search=true
sserver.port.search=true
10 changes: 7 additions & 3 deletions plugins/accumulo-encryption.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ fi

accumulo_conf=$ACCUMULO_HOME/conf/accumulo.properties
encrypt_key=$ACCUMULO_HOME/conf/data-encryption.key
openssl rand -out $encrypt_key 32
echo "instance.crypto.opts.key.uri=file://$encrypt_key" >>"$accumulo_conf"
echo "instance.crypto.service=$(jar -tvf "$ACCUMULO_HOME"/lib/accumulo-core-2.*.jar | grep -o 'org.apache.accumulo.core.*AESCryptoService' | tr / . | tail -1)" >>"$accumulo_conf"
openssl rand -out "$encrypt_key" 32
cat >>"$accumulo_conf" <<EOF

# added by the accumulo-encryption plugin
instance.crypto.opts.key.uri=file://$encrypt_key
instance.crypto.service=$(jar -tvf "$ACCUMULO_HOME"/lib/accumulo-core-*.jar | grep -o 'org.apache.accumulo.core.*AESCryptoService' | tr / . | tail -1)
EOF
Loading