Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#3850] improvement(docker-image): Change Kerberos Hive image to add more principals and key tables (#3851)

Qi Yu671bdd1807db
diff --git a/dev/docker/kerberos-hive/core-site.xml b/dev/docker/kerberos-hive/core-site.xml
index 21b13a486b..3ff3d8cfb6 100644
--- a/dev/docker/kerberos-hive/core-site.xml
+++ b/dev/docker/kerberos-hive/core-site.xml
@@ -45,6 +45,36 @@
<value>*</value>
</property>
+ <property>
+ <name>hadoop.proxyuser.cli_schema.hosts</name>
+ <value>*</value>
+ </property>
+
+ <property>
+ <name>hadoop.proxyuser.cli_schema.groups</name>
+ <value>*</value>
+ </property>
+
+ <property>
+ <name>hadoop.proxyuser.cli_schema.users</name>
+ <value>*</value>
+ </property>
+
+ <property>
+ <name>hadoop.proxyuser.cli_fileset.hosts</name>
+ <value>*</value>
+ </property>
+
+ <property>
+ <name>hadoop.proxyuser.cli_fileset.groups</name>
+ <value>*</value>
+ </property>
+
+ <property>
+ <name>hadoop.proxyuser.cli_fileset.users</name>
+ <value>*</value>
+ </property>
+
<property>
<name>hadoop.proxyuser.hadoop.hosts</name>
<value>*</value>
diff --git a/dev/docker/kerberos-hive/start.sh b/dev/docker/kerberos-hive/start.sh
index 0ff1bda13e..b5326886e6 100644
--- a/dev/docker/kerberos-hive/start.sh
+++ b/dev/docker/kerberos-hive/start.sh
@@ -84,14 +84,14 @@ while [[ ${retry_times} -lt 10 ]]; do
hdfs_ready=$(hdfs dfsadmin -report | grep "Live datanodes" | awk '{print $3}')
if [[ ${hdfs_ready} == "(1):" ]]; then
echo "HDFS is ready, retry_times = ${retry_times}"
- let "ready=0"
+ let "ready=1"
break
fi
sleep 10
retry_times=$((retry_times+1))
done
-if [[ ${ready} -ne 0 ]]; then
+if [[ ${ready} -ne 1 ]]; then
echo "HDFS is not ready"
ehco "HDFS DataNode log start---------------------------"
cat ${HADOOP_HOME}/bin/logs/hadoop-root-datanode-*.log
diff --git a/docs/docker-image-details.md b/docs/docker-image-details.md
index ca2313f018..9f6f45930a 100644
--- a/docs/docker-image-details.md
+++ b/docs/docker-image-details.md
@@ -97,6 +97,10 @@ You can use these kinds of Docker images to facilitate integration testing of al
You can use this kind of image to test the catalog of Apache Hive with kerberos enable
Changelog
+- gravitino-ci-kerberos-hive:0.1.3
+ - Add more proxy users in the core-site.xml file.
+ - fix bugs in the `start.sh` script.
+
- gravitino-ci-kerberos-hive:0.1.2
- Add `${HOSTNAME} >> /root/.ssh/known_hosts` to the startup script.
- Add check for the status of DataNode, if the DataNode is not running or ready within 100s, the container will exit.