<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: storm persistent storage to HBase in secure cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/storm-persistent-storage-to-HBase-in-secure-cluster/m-p/119629#M26428</link>
    <description>&lt;P&gt;After following the link &lt;A href="https://issues.apache.org/jira/browse/STORM-1521"&gt;https://issues.apache.org/jira/browse/STORM-1521&lt;/A&gt; i was able to fix the authentication problem i observed!!&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2016 08:28:50 GMT</pubDate>
    <dc:creator>raja_aravapalli</dc:creator>
    <dc:date>2016-04-28T08:28:50Z</dc:date>
    <item>
      <title>storm persistent storage to HBase in secure cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/storm-persistent-storage-to-HBase-in-secure-cluster/m-p/119628#M26427</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had written a custom bolt extending, &lt;STRONG&gt;BaseBasicBolt&lt;/STRONG&gt; &lt;STRONG&gt;NOT &lt;/STRONG&gt;RichBolt, where i wrote my custom code to connect to HBase and write input stream into HBase table.&lt;/P&gt;&lt;P&gt;To do this, i am creating connections to HBase in my prepare method, as below and closing connections in cleanup().&lt;/P&gt;&lt;PRE&gt;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();
    }

}&lt;/PRE&gt;&lt;P&gt;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 &amp;amp; 60tasks, bolt where i am doing hbase connections is failing with authentication issues, like GSS exceptions!!!.&lt;/P&gt;&lt;P&gt;Can some one pls share your knowledge/insight into what gng wrong with my code. Thanks a lot...&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 05:09:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/storm-persistent-storage-to-HBase-in-secure-cluster/m-p/119628#M26427</guid>
      <dc:creator>raja_aravapalli</dc:creator>
      <dc:date>2016-04-28T05:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: storm persistent storage to HBase in secure cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/storm-persistent-storage-to-HBase-in-secure-cluster/m-p/119629#M26428</link>
      <description>&lt;P&gt;After following the link &lt;A href="https://issues.apache.org/jira/browse/STORM-1521"&gt;https://issues.apache.org/jira/browse/STORM-1521&lt;/A&gt; i was able to fix the authentication problem i observed!!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 08:28:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/storm-persistent-storage-to-HBase-in-secure-cluster/m-p/119629#M26428</guid>
      <dc:creator>raja_aravapalli</dc:creator>
      <dc:date>2016-04-28T08:28:50Z</dc:date>
    </item>
  </channel>
</rss>

