diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java index 9e39a2a0929b..5f3932c8b333 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java @@ -758,10 +758,10 @@ private static final class DfsBuilderUtility { Method noLocalWriteMethod = null; if (builderClass != null) { try { - replicateMethod = builderClass.getMethod("noLocalWrite"); + noLocalWriteMethod = builderClass.getMethod("noLocalWrite"); LOG.debug("Using builder API via reflection for DFS file creation."); } catch (NoSuchMethodException e) { - LOG.debug("Could not find noLocalWrite method on builder; will not set replicate when" + LOG.debug("Could not find noLocalWrite method on builder; will not set noLocalWrite when" + " creating output stream", e); } }