World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#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.xmlindex 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.shindex 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 ]]; dohdfs_ready=$(hdfs dfsadmin -report | grep "Live datanodes" | awk '{print $3}')if [[ ${hdfs_ready} == "(1):" ]]; thenecho "HDFS is ready, retry_times = ${retry_times}"- let "ready=0"+ let "ready=1"breakfisleep 10retry_times=$((retry_times+1))done-if [[ ${ready} -ne 0 ]]; then+if [[ ${ready} -ne 1 ]]; thenecho "HDFS is not ready"ehco "HDFS DataNode log start---------------------------"cat ${HADOOP_HOME}/bin/logs/hadoop-root-datanode-*.logdiff --git a/docs/docker-image-details.md b/docs/docker-image-details.mdindex 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 alYou can use this kind of image to test the catalog of Apache Hive with kerberos enableChangelog+- 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.