HBaseConfiguration problem ( config file location )
---------------------------------------------------
Key: HBASE-3427
URL: https://issues.apache.org/jira/browse/HBASE-3427
Project: HBase
Issue Type: Bug
Components: client
Affects Versions: 0.20.6
Environment: ubuntu , windows 7
Reporter: jo sung jun
Is this a bug ?
example> hbase-site.xml is in conf/hbase-site.xml
so I wrote below.
HBaseConfiguration config = new HBaseConfiguration();
config.addResource(HBaseClient.class.getResource("/conf/hbase-default.xml"));
config.addResource(HBaseClient.class.getResource("/conf/hbase-site.xml"));
config.set("hbase.zookeeper.quorum", "192.168.0.203");
config.set("hbase.zookeeper.property.clientPort", "2181");
but, when I use IndexedTable, cannot create table(almost locking) because
IndexedTableAdmin.reIndexTable
IndexedTableAdmin.java
private void reIndexTable(byte[] baseTableName, IndexSpecification indexSpec)
throws IOException {
HTable baseTable = new HTable(baseTableName);
.. ..
}
We should use HTable(String, HBaseConfiguration), I think.
because of that, I moved the config files to src/ not src/conf/ ***.xml
This is so confused. we should explain this more in java doc. or would be
fixing it
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.