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

zhangduo pushed a commit to branch HBASE-29930-branch-2.5
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/HBASE-29930-branch-2.5 by this 
push:
     new 74288499fd1 fix
74288499fd1 is described below

commit 74288499fd1982b70a0193ebbaa0d66ce7487b2a
Author: Duo Zhang <[email protected]>
AuthorDate: Tue Mar 3 09:44:56 2026 +0800

    fix
---
 dev-support/integration-test/pseudo-distributed-test.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dev-support/integration-test/pseudo-distributed-test.sh 
b/dev-support/integration-test/pseudo-distributed-test.sh
index ea0ef6d30d6..d9da9a38ef0 100755
--- a/dev-support/integration-test/pseudo-distributed-test.sh
+++ b/dev-support/integration-test/pseudo-distributed-test.sh
@@ -326,6 +326,14 @@ echo "Listing HDFS contents"
 redirect_and_run "${working_dir}/hadoop_cluster_smoke" \
     "${hadoop_exec}" --config "${working_dir}/hbase-conf/" fs -ls -R /
 
+if [ "${hadoop_version%.*.*}" -gt 2 ]; then
+  # for now, all hbase branches are compiled with hadoop 3.4.x when using 
hadoop-3.0 profile, where
+  # the protobuf library has been shaded and relocated, so we always need to 
use ProtobufRpcEngine2
+  # at hbase side, even if the hadoop server side uses ProtobufRpcEngine, so 
here we will remove the
+  # config value to let the hadoop code pick the right rpc engine
+  sed -i "/<property>.*ProtobufRpcEngine.*<\/property>/d" 
"${working_dir}/hbase-conf/core-site.xml"
+fi
+
 echo "Starting up HBase"
 HBASE_CONF_DIR="${working_dir}/hbase-conf/" HBASE_LOG_DIR="${working_dir}" 
"${component_install}/bin/start-hbase.sh"
 

Reply via email to