diff --git a/conf/log4j2.xml b/conf/log4j2.xml
index 63dbeba3cc7..bec37e6da0e 100644
--- a/conf/log4j2.xml
+++ b/conf/log4j2.xml
@@ -54,7 +54,8 @@
-
+
diff --git a/dev-support/hbase_nightly_pseudo-distributed-test.sh b/dev-support/hbase_nightly_pseudo-distributed-test.sh
index cc46336060b..5241206df11 100755
--- a/dev-support/hbase_nightly_pseudo-distributed-test.sh
+++ b/dev-support/hbase_nightly_pseudo-distributed-test.sh
@@ -198,23 +198,23 @@ 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.xml" ]; then
+ cp "${component_install}/conf/log4j2.xml" "${working_dir}/hbase-conf/log4j2.xml"
else
- cat >"${working_dir}/hbase-conf/log4j.properties" <"${working_dir}/hbase-conf/log4j2.xml" <
+
+
+
+
+
+
+
+
+
+
+
+
EOF
fi
@@ -307,7 +307,11 @@ fi
if [ "${hadoop_version%.*.*}" -gt 2 ]; then
echo "Verifying configs"
- "${hadoop_exec}" --config "${working_dir}/hbase-conf/" conftest
+ hadoop_conf_files=""
+ for f in "${working_dir}"/hbase-conf/*-site.xml; do
+ hadoop_conf_files="$hadoop_conf_files -conffile $f"
+ done
+ "${hadoop_exec}" --config "${working_dir}/hbase-conf/" conftest $hadoop_conf_files
fi
if [ -n "${clean}" ]; then