[ 
https://issues.apache.org/jira/browse/HBASE-4050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Elliott Clark updated HBASE-4050:
---------------------------------

    Attachment: HBASE-4050-0.patch

Here's a patch that add's hadoop compatibility shims.  I needed something to 
prototype and test with so I used my implementation of HBASE-6323 as an example.

hbase-hadoop-compat contains the factory and the interface.  The factory uses 
ResourceFinder from the geronimo project.  It's much more flexible than 
ServiceLoader (allows different locations easily and most importantly it allows 
constructor arguments).  I didn't want to add the whole geronimo project as a 
dep so the code is copied in.  I tried to give as much credit as I could.  I 
can go back to using ServiceLoader if people object to having 

hbase-hadoop1-compat and hbase-hadoop2-compat add the actual implementation of 
the class who's interface is defined in hbase-hadoop-compat.  I don't have a 
hbase-hadoop23-compat

Right now depending upon which profile is building the hbase-server module gets 
one of the above as a dependency.

In addition when building assembly files only contain the 
hbase-hadoop{1,2}-compat directory needed.  It's possible to keep the old 
assembly file the way it was and change the shell scripts to only load the one. 
 But I didn't get to that.

I tested it in place and locally after building tar.gz's on both 
* hadoop 1.0.3
* hadoop 2.0.0-alpha

In place scripts still work though I'm not really sure of why or how.  I need 
to investigate that later.
                
> Update HBase metrics framework to metrics2 framework
> ----------------------------------------------------
>
>                 Key: HBASE-4050
>                 URL: https://issues.apache.org/jira/browse/HBASE-4050
>             Project: HBase
>          Issue Type: New Feature
>          Components: metrics
>    Affects Versions: 0.90.4
>         Environment: Java 6
>            Reporter: Eric Yang
>            Assignee: Alex Baranau
>            Priority: Critical
>             Fix For: 0.96.0
>
>         Attachments: 4050-metrics-v2.patch, 4050-metrics-v3.patch, 
> HBASE-4050-0.patch, HBASE-4050.patch
>
>
> Metrics Framework has been marked deprecated in Hadoop 0.20.203+ and 0.22+, 
> and it might get removed in future Hadoop release.  Hence, HBase needs to 
> revise the dependency of MetricsContext to use Metrics2 framework.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to