From 52ffa68f8bf94131af18fff79a8b44618ad3515c Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Wed, 6 Dec 2017 11:35:54 -0800 Subject: [PATCH] HBASE-15628 Implement an AsyncOutputStream which can work with any FileSystem implementation; ADDENDUM -- Change Log output --- .../io/asyncfs/FanOutOneBlockAsyncDFSOutputHelper.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/asyncfs/FanOutOneBlockAsyncDFSOutputHelper.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/asyncfs/FanOutOneBlockAsyncDFSOutputHelper.java index 61aa97cd087..08e1aae01d0 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/asyncfs/FanOutOneBlockAsyncDFSOutputHelper.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/asyncfs/FanOutOneBlockAsyncDFSOutputHelper.java @@ -409,11 +409,13 @@ public final class FanOutOneBlockAsyncDFSOutputHelper { private static PBHelper createPBHelper() throws NoSuchMethodException { Class helperClass; + String clazzName = "org.apache.hadoop.hdfs.protocolPB.PBHelperClient"; try { - helperClass = Class.forName("org.apache.hadoop.hdfs.protocolPB.PBHelperClient"); + helperClass = Class.forName(clazzName); } catch (ClassNotFoundException e) { - LOG.debug("No PBHelperClient class found, should be hadoop 2.7-", e); helperClass = org.apache.hadoop.hdfs.protocolPB.PBHelper.class; + LOG.debug("" + clazzName + " not found (Hadoop is pre-2.8.0?); using " + + helperClass.toString() + " instead."); } Method convertEBMethod = helperClass.getMethod("convert", ExtendedBlock.class); Method convertTokenMethod = helperClass.getMethod("convert", Token.class);