abinandaravz / hbase-solr-dataimport

Automatically exported from code.google.com/p/hbase-solr-dataimport
0 stars 0 forks source link

Data source params #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We should have a configuration for the DataSouce like the JdbcDataSource.

Original issue reported on code.google.com by gm.tagli...@gmail.com on 2 Dec 2011 at 3:43

GoogleCodeExporter commented 9 years ago
I had to change the code to pick zookeeper client port from configuration. 
AND replace HBaseConfiguration instantiation to simple Configuration instance.

I was getting a bunch of exceptions without these 2 changes.
Config ---
<dataSource type="HbaseDataSource" name="HBase" host="10.77.33.190" 
port="2181"/>
Code ---
        String port = arg1.getProperty("port");
        Configuration config = new Configuration();
        config.set(HConstants.ZOOKEEPER_QUORUM, host);
        config.set("hbase.zookeeper.property.clientPort", port);        
        tablePool = new HTablePool(config, poolMaxSize);

Original comment by Priyadar...@gmail.com on 19 Jun 2012 at 9:49