if (hbaseConfig.isSecure()) {
UserGroupInformation.loginUserFromKeytab(
hbaseConfig.getAuthString(), hbaseConfig.getKeytabFileName());
logger.info("Logged into Hbase with User: " + UserGroupInformation.getLoginUser());
}
<BUG>}
}
return configuration;
}</BUG>
public static void createTable(final HbaseConfig hbaseConfig, final String tableName) throws IOException {

if (hbaseConfig.isSecure()) {
UserGroupInformation.loginUserFromKeytab(
hbaseConfig.getAuthString(), hbaseConfig.getKeytabFileName());
logger.info("Logged into Hbase with User: " + UserGroupInformation.getLoginUser());
}
}
return configuration;
}
public static boolean isValidFile(String fileName) {
return fileName != null && !fileName.trim().isEmpty() &&
new File(fileName).exists();
}
public static void createTable(final HbaseConfig hbaseConfig, final String tableName) throws IOException {
