From e7acff1728509b90603bf4a6928c633546a74948 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Sun, 20 Mar 2022 21:07:17 +0800 Subject: [PATCH] HBASE-26870 Log4j2 integration is incorrect in nighly's client integration test --- .../hbase_nightly_pseudo-distributed-test.sh | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/dev-support/hbase_nightly_pseudo-distributed-test.sh b/dev-support/hbase_nightly_pseudo-distributed-test.sh index 5241206df11f..1267a85a71ad 100755 --- a/dev-support/hbase_nightly_pseudo-distributed-test.sh +++ b/dev-support/hbase_nightly_pseudo-distributed-test.sh @@ -198,23 +198,21 @@ echo "Writing out configuration for HBase." rm -rf "${working_dir}/hbase-conf" mkdir "${working_dir}/hbase-conf" -if [ -f "${component_install}/conf/log4j2.xml" ]; then - cp "${component_install}/conf/log4j2.xml" "${working_dir}/hbase-conf/log4j2.xml" +if [ -f "${component_install}/conf/log4j2.properties" ]; then + cp "${component_install}/conf/log4j2.properties" "${working_dir}/hbase-conf/log4j2.properties" else - cat >"${working_dir}/hbase-conf/log4j2.xml" < - - - - - - - - - - - - + cat >"${working_dir}/hbase-conf/log4j2.properties" <