tanishq-chugh commented on code in PR #5404:
URL: https://github.com/apache/hive/pull/5404#discussion_r2059904025
##########
Jenkinsfile:
##########
@@ -290,12 +291,14 @@ fi
stage('init-metastore') {
withEnv(["dbType=$dbType"]) {
sh '''#!/bin/bash -e
+ sw java 17 && . /etc/profile.d/java.sh
set -x
echo 127.0.0.1 dev_$dbType | sudo tee -a /etc/hosts
. /etc/profile.d/confs.sh
sw hive-dev $PWD
export DOCKER_NETWORK=host
export DBNAME=metastore
+export HADOOP_CLIENT_OPTS="--add-opens java.base/java.net=ALL-UNNAMED"
Review Comment:
Hi @ayushtkn
These specific arguments are required at the time of metastore
initialization. This has been added to JenkinsFile as the init-metastore pod's
environment has been specified right here in the JekinsFile, we don't see the
environment for the same being set up using any other script/env files.
```
stage('init-metastore') {
withEnv(["dbType=$dbType"]) {
sh '''#!/bin/bash -e
sw java 17 && . /etc/profile.d/java.sh
set -x
echo 127.0.0.1 dev_$dbType | sudo tee -a /etc/hosts
. /etc/profile.d/confs.sh
sw hive-dev $PWD
export DOCKER_NETWORK=host
export DBNAME=metastore
export HADOOP_CLIENT_OPTS="--add-opens java.base/java.net=ALL-UNNAMED"
reinit_metastore $dbType
time docker rm -f dev_$dbType || true
'''
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]