hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-2036) Use Configuration instead of HBaseConfiguration
Date Thu, 31 Dec 2009 05:59:29 GMT

    [ https://issues.apache.org/jira/browse/HBASE-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795546#action_12795546
] 

stack commented on HBASE-2036:
------------------------------

Tracking down why TestMergeTool is failing.  Its a messy test particularly in how it does
its setup.  Here is the failure mode:

{code}
Testcase: testMergeTool took 10.931 sec
  Caused an ERROR
null
java.lang.NullPointerException
  at org.apache.hadoop.fs.FileSystem.getDefaultUri(FileSystem.java:111)
  at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:103)
  at org.apache.hadoop.hbase.util.Merge.run(Merge.java:79)
  at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
  at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
  at org.apache.hadoop.hbase.util.TestMergeTool.mergeAndVerify(TestMergeTool.java:174)
  at org.apache.hadoop.hbase.util.TestMergeTool.testMergeTool(TestMergeTool.java:252)
{code}

> Use Configuration instead of HBaseConfiguration 
> ------------------------------------------------
>
>                 Key: HBASE-2036
>                 URL: https://issues.apache.org/jira/browse/HBASE-2036
>             Project: Hadoop HBase
>          Issue Type: Improvement
>            Reporter: Enis Soztutar
>         Attachments: hconf.patch, hconf_v1.patch
>
>
> HBaseConfiguration extends Configuration but does not add any functionality to it. The
only function is hashCode() which really should be refactored into Hadoop Configuration. 
> I think in all the places(especially in the client side)  HBase methods and classes should
accept Configuration rather than HBaseConfiguration. The creation of the configuration with
the right files (hbase-site and hbase-default) should not be encapsulated in a private method,
but in a public static one. 
> The issues has arisen in our nutch+hbase patch for which we include both nutch configuration
and hbase configurations. Moreover people may want to include separate project-specific configuration
files to their configurations without the need to be dependent on the HBaseConfiguration.


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


Mime
View raw message