This is an automated email from the ASF dual-hosted git repository.

stigahuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git


The following commit(s) were added to refs/heads/master by this push:
     new 1ecc43f8c IMPALA-13169: Specify cluster id before starting HiveServer2
1ecc43f8c is described below

commit 1ecc43f8c2171475950c37682973b8cd660bfd0c
Author: Fang-Yu Rao <[email protected]>
AuthorDate: Wed Jun 19 16:29:10 2024 -0700

    IMPALA-13169: Specify cluster id before starting HiveServer2
    
    After HIVE-28324, in order to start HiveServer2, it is required that
    the cluster id has to be passed to HiveServer2, either via the
    environment variable 'HIVE_CLUSTER_ID', or the command line Java
    property 'hive.cluster.id'. This patch exports HIVE_CLUSTER_ID before
    starting HiveServer2.
    
    Testing:
     - Manually verified that a HiveServer2 including HIVE-28324 could be
       started after this patch.
     - Verified that this patch passed the core tests.
    
    Change-Id: I9d07ec01a04f8123b7ccca676ce744ac485f167c
    Reviewed-on: http://gerrit.cloudera.org:8080/21540
    Tested-by: Impala Public Jenkins <[email protected]>
    Reviewed-by: Quanlong Huang <[email protected]>
---
 testdata/bin/run-hive-server.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testdata/bin/run-hive-server.sh b/testdata/bin/run-hive-server.sh
index b824be7e6..9da4fd015 100755
--- a/testdata/bin/run-hive-server.sh
+++ b/testdata/bin/run-hive-server.sh
@@ -189,6 +189,7 @@ fi
 
 export HIVESERVER2_HADOOP_OPTS="-Xdebug 
-Xrunjdwp:transport=dt_socket,server=y,\
 suspend=n,address=30020"
+export HIVE_CLUSTER_ID="hive-test-cluster"
 if [[ ${START_HIVESERVER} -eq 1 && -z $HS2_PID ]]; then
   # Starts a HiveServer2 instance on the port specified by the 
HIVE_SERVER2_THRIFT_PORT
   # environment variable. HADOOP_HEAPSIZE should be set to at least 2048 to 
avoid OOM

Reply via email to