hbase-unsecure

126 views
Skip to first unread message

Murali Krishna

unread,
Dec 29, 2014, 7:27:07 PM12/29/14
to kundera...@googlegroups.com
In some of the local Hbase deployments, we have zookeeper.znode.parent defined as hbase-unsecure. In the context of that, we need pass to Kundera to talk to zookeeper path addition to zookeeper server and port.

I don't find the current code is not supporting doing that, in other words it is not cascading user defined properties to Hbase Admin.

Can you please advice, do you have any other solutions ?


 com.impetus.client.hbase.schemamanager;


HBaseSchemaManager



 protected boolean initiateClient()

    {

        String message = null;

        for (String host : hosts)

        {

            vaildateHostPort(host, port);


            Configuration hadoopConf = new Configuration();

            hadoopConf.set("hbase.master", host + ":" + port);

            conn = HBasePropertyReader.hsmd.getDataStore() != null ? HBasePropertyReader.hsmd.getDataStore()

                    .getConnection() : null;

            if (conn != null && conn.getProperties() != null)

            {

                String zookeeperHost = conn.getProperties().getProperty("hbase.zookeeper.quorum").trim();

                String zookeeperPort = conn.getProperties().getProperty("hbase.zookeeper.property.clientPort").trim();

                vaildateHostPort(zookeeperHost, zookeeperPort);

                hadoopConf.set("hbase.zookeeper.quorum", zookeeperHost != null ? zookeeperHost : host);

                hadoopConf.set("hbase.zookeeper.property.clientPort", zookeeperPort != null ? zookeeperPort

                        : DEFAULT_ZOOKEEPER_PORT);

            }

            else

            {

                hadoopConf.set("hbase.zookeeper.quorum", host);

                hadoopConf.set("hbase.zookeeper.property.clientPort", DEFAULT_ZOOKEEPER_PORT);

            }

            Configuration conf = HBaseConfiguration.create(hadoopConf);

            try

            {

                admin = new HBaseAdmin(conf);

                return true;

            }



Thanks,
Murali Namburi


Vivek Mishra

unread,
Dec 30, 2014, 12:11:02 AM12/30/14
to kundera...@googlegroups.com
I think it requires a trivial fix at Kundera side.

-Vivek

--
You received this message because you are subscribed to the Google Groups "kundera-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kundera-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages