You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "stack (JIRA)" <ji...@apache.org> on 2008/01/12 00:56:34 UTC

[jira] Commented: (HADOOP-2578) HBaseConfiguration(Configuration c) constructor shouldn't overwrite passed conf with defaults

    [ https://issues.apache.org/jira/browse/HADOOP-2578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558167#action_12558167 ] 

stack commented on HADOOP-2578:
-------------------------------

Would adding a test that checked that c.getResource("hbase-default.xml") and c.getResource("hbase-site.xml") were non-null in HBaseConfiguration(Configuration c) work?

> HBaseConfiguration(Configuration c) constructor shouldn't overwrite passed conf with defaults
> ---------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-2578
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2578
>             Project: Hadoop
>          Issue Type: Bug
>          Components: contrib/hbase
>            Reporter: Thomas Garner
>
> While testing out mapreduce with hbase, in the map portion of a task, the map would try to connect to an hbase master at localhost/127.0.0.1.  The config passed to the hbaseconfiguration contained the necessary hbase configuration information, but I assume was being overwritten by the defaults in the config files during addResource, as commenting out addHbaseResources in the constructor fixed the symptom.  I would expect the configs to be layered on top of each other, e.g. default, then site, then the config passed as a parameter.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.