mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
Enables Ozone's Transparent Data Encryption when creating a bucket in the minicluster. Requires `-format` to turn on encryption in an existing minicluster. Tested by running e2e and custom cluster tests with Ozone. Change-Id: Icd82967cdab7b222e5876936f39e5198ba9773ea Reviewed-on: http://gerrit.cloudera.org:8080/18931 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
31 lines
1.1 KiB
Bash
Executable File
31 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
# or more contributor license agreements. See the NOTICE file
|
|
# distributed with this work for additional information
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
# to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance
|
|
# with the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing,
|
|
# software distributed under the License is distributed on an
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
# KIND, either express or implied. See the License for the
|
|
# specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
set -euo pipefail
|
|
. $IMPALA_HOME/bin/report_build_error.sh
|
|
setup_report_build_error
|
|
|
|
# Create encryption keys for HDFS encryption tests. Keys are stored by the KMS.
|
|
EXISTING_KEYS=$(hadoop key list)
|
|
for KEY in $*; do
|
|
if ! grep $KEY <<< $EXISTING_KEYS &>/dev/null; then
|
|
hadoop key create $KEY -f
|
|
fi
|
|
done
|