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" <