You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "jo sung jun (JIRA)" <ji...@apache.org> on 2011/01/07 01:12:45 UTC

[jira] Created: (HBASE-3427) HBaseConfiguration problem ( config file location )

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.


[jira] [Resolved] (HBASE-3427) HBaseConfiguration problem ( config file location )

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack resolved HBASE-3427.
--------------------------

    Resolution: Won't Fix

Pertains to indexed hbase, no longer relevant to hbase core.

> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira