Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data source params #1

Open
GoogleCodeExporter opened this issue Aug 3, 2015 · 1 comment
Open

Data source params #1

GoogleCodeExporter opened this issue Aug 3, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

We should have a configuration for the DataSouce like the JdbcDataSource.

Original issue reported on code.google.com by [email protected] on 2 Dec 2011 at 3:43

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 19 Jun 2012 at 9:49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant