From 8640453d706106c27ea4ad193f6bc7f932b0602d Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Mon, 21 Mar 2022 10:02:00 +0800 Subject: [PATCH] HBASE-26870 Log4j2 integration is incorrect in nighly's client integration test (#4250) Signed-off-by: Sean Busbey --- .../hbase_nightly_pseudo-distributed-test.sh | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/dev-support/hbase_nightly_pseudo-distributed-test.sh b/dev-support/hbase_nightly_pseudo-distributed-test.sh index 4ad431c69fa..bf5051267be 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/log4j.properties" ]; then - cp "${component_install}/conf/log4j.properties" "${working_dir}/hbase-conf/log4j.properties" +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/log4j.properties" <"${working_dir}/hbase-conf/log4j2.properties" <