Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 04-27-2016 10:05 PM
Hi,
I had written a custom bolt extending, BaseBasicBolt NOT RichBolt, where i wrote my custom code to connect to HBase and write input stream into HBase table.
To do this, i am creating connections to HBase in my prepare method, as below and closing connections in cleanup().
public void prepare(Map stormConf, TopologyContext context) {
try {
fmt = DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
config = HBaseConfiguration.create();
config.set("hadoop.security.authentication", "Kerberos");
config.set("hbase.security.authentication", "kerberos");
config.addResource("hdfs-site.xml");
config.addResource("core-site.xml");
config.addResource("hbase-site.xml");
UserGroupInformation.setConfiguration(config);
UserGroupInformation.loginUserFromKeytab(KEYTAB_PRINC, KEYTAB_PATH);
LOG.info("HBase Cnxn Done.");
connection = ConnectionFactory.createConnection(config);
table = connection.getTable(TableName.valueOf(HBASE_TABLE_NAME));
}catch (Exception e) {
System.out.println("Exception occured during hbase connection preparations" + e.getMessage());
e.printStackTrace();
}
}The issue is, when i am running my storm topology with 1executor and 1task, topology is running fine without any issues, but when i increase the executors/tasks, say 15executors & 60tasks, bolt where i am doing hbase connections is failing with authentication issues, like GSS exceptions!!!.
Can some one pls share your knowledge/insight into what gng wrong with my code. Thanks a lot...
Created 04-27-2016 10:11 PM
Maybe you're running into https://issues.apache.org/jira/browse/STORM-1521 ?
Created 04-27-2016 10:11 PM
Maybe you're running into https://issues.apache.org/jira/browse/STORM-1521 ?
Created 04-27-2016 10:28 PM
Can you please me the git link for what changes have been done in that issue, to fix it. I could n't locate the exact chagnes from the link you shared. @Josh Elser. Thanks a lot.
Created 04-28-2016 01:26 AM
Thanks a lot @Josh Elser. That solved my issue. Thanks very much
Created 04-28-2016 01:28 AM
After following the link https://issues.apache.org/jira/browse/STORM-1521 i was able to fix the authentication problem i observed!!