HBASE-15628 Implement an AsyncOutputStream which can work with any FileSystem implementation; ADDENDUM -- Change Log output

This commit is contained in:
Michael Stack 2017-12-06 11:35:54 -08:00
parent b2f9b7bc19
commit 52ffa68f8b
No known key found for this signature in database
GPG Key ID: 9816C7FC8ACC93D2
1 changed files with 4 additions and 2 deletions

View File

@ -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);