-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'apache:master' into sss
- Loading branch information
Showing
39 changed files
with
239 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,12 +25,26 @@ cp /etc/trino/conf/presto-server.keytab /keytabs/other-presto-server.keytab | |
cp /keytabs/update-location.sh /etc/hadoop-init.d/update-location.sh | ||
/usr/local/hadoop-run.sh & | ||
|
||
sleep 30 | ||
# check healthy hear | ||
echo "Waiting for hadoop to be healthy" | ||
|
||
for i in {1..10}; do | ||
if /usr/local/health.sh; then | ||
echo "Hadoop is healthy" | ||
break | ||
fi | ||
echo "Hadoop is not healthy yet. Retrying in 20 seconds..." | ||
sleep 20 | ||
done | ||
|
||
if [ $i -eq 10 ]; then | ||
echo "Hadoop did not become healthy after 120 attempts. Exiting." | ||
exit 1 | ||
fi | ||
|
||
echo "Init kerberos test data" | ||
kinit -kt /etc/hive/conf/hive.keytab hive/[email protected] | ||
hive -f /usr/local/sql/create_kerberos_hive_table.sql | ||
|
||
sleep 20 | ||
touch /mnt/SUCCESS | ||
|
||
tail -f /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,12 +23,26 @@ mkdir -p /etc/hadoop-init.d/ | |
cp /etc/trino/conf/* /keytabs/ | ||
/usr/local/hadoop-run.sh & | ||
|
||
sleep 30 | ||
# check healthy hear | ||
echo "Waiting for hadoop to be healthy" | ||
|
||
for i in {1..10}; do | ||
if /usr/local/health.sh; then | ||
echo "Hadoop is healthy" | ||
break | ||
fi | ||
echo "Hadoop is not healthy yet. Retrying in 20 seconds..." | ||
sleep 20 | ||
done | ||
|
||
if [ $i -eq 10 ]; then | ||
echo "Hadoop did not become healthy after 120 attempts. Exiting." | ||
exit 1 | ||
fi | ||
|
||
echo "Init kerberos test data" | ||
kinit -kt /etc/hive/conf/hive.keytab hive/[email protected] | ||
hive -f /usr/local/sql/create_kerberos_hive_table.sql | ||
|
||
sleep 20 | ||
touch /mnt/SUCCESS | ||
|
||
tail -f /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,4 @@ if test -d "${HEALTH_D}"; then | |
"${health_script}" &>> /var/log/container-health.log || exit 1 | ||
done | ||
fi | ||
exit 0 |
20 changes: 20 additions & 0 deletions
20
docker/thirdparties/docker-compose/kerberos/health-checks/hive-health-check-2.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env 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. | ||
|
||
kinit -kt /etc/hive/conf/hive.keytab hive/[email protected] | ||
beeline -u "jdbc:hive2://localhost:10000/default;principal=hive/[email protected]" -e "show databases;" |
20 changes: 20 additions & 0 deletions
20
docker/thirdparties/docker-compose/kerberos/health-checks/hive-health-check.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env 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. | ||
|
||
kinit -kt /etc/hive/conf/hive.keytab hive/[email protected] | ||
beeline -u "jdbc:hive2://localhost:10000/default;principal=hive/[email protected]" -e "show databases;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.