You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2014/11/21 13:35:34 UTC

[jira] [Updated] (HBASE-11412) Minimize a number of hbase-client transitive dependencies

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

Sergey Beryozkin updated HBASE-11412:
-------------------------------------
    Fix Version/s: 2.0.0
                   1.0.0
           Status: Patch Available  (was: Open)

Hi, this is the initial attempt to start minimizing the transitive dependencies.
The use case is about using HBase client in the server scope where having the extra dependencies will likely cause the issues. 

For example, this is what we have to do now:
https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=parent/pom.xml;h=87e2002401dc4e8e54925acc5d1f6a4f339d5588;hb=HEAD#l639

and this is not sufficiet, still leaks a lot of other depencies through. The problem there is that if a CXF user would want to use an HBase client inside an OSGI bundle then it would require that user do a lof of manual exclusions...

This is a not a big issue per se but would def help some users. I;d appreciate if the experts could have a look and see if the initial exclusion list is reasonable - the hbase-client tests passed, no problems

Cheers, Sergey 

> Minimize a number of hbase-client transitive dependencies
> ---------------------------------------------------------
>
>                 Key: HBASE-11412
>                 URL: https://issues.apache.org/jira/browse/HBASE-11412
>             Project: HBase
>          Issue Type: Improvement
>          Components: Client
>    Affects Versions: 0.98.3
>            Reporter: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 1.0.0, 2.0.0
>
>
> hbase-client has a number of transitive dependencies not needed for a client mode execution. In my test I've added the following exclusions:
> {code:xml}
> <exclusions>
>                 <exclusion>
>             	   <groupId>com.sun.jersey</groupId>
>             	   <artifactId>jersey-server</artifactId>            	
>             	</exclusion>
>                 <exclusion>
>             	   <groupId>com.sun.jersey</groupId>
>             	   <artifactId>jersey-core</artifactId>            	
>             	</exclusion>
>                 <exclusion>
>             	   <groupId>com.sun.jersey</groupId>
>             	   <artifactId>jersey-json</artifactId>            	
>             	</exclusion>
>                 <exclusion>
>             	   <groupId>com.sun.jersey.contribs</groupId>
>             	   <artifactId>jersey-guice</artifactId>            	
>             	</exclusion>
>                 <exclusion>
>             	   <groupId>com.google.inject</groupId>
>             	   <artifactId>guice</artifactId>            	
>             	</exclusion>
>                 <exclusion>
>             	   <groupId>com.google.inject.extensions</groupId>
>             	   <artifactId>guice-servlet</artifactId>            	
>             	</exclusion>    
>                 <exclusion>
>             	   <groupId>org.mortbay.jetty</groupId>
>             	   <artifactId>jetty</artifactId>            	
>             	</exclusion>
>                 <exclusion>
>             	   <groupId>org.mortbay.jetty</groupId>
>             	   <artifactId>jetty-util</artifactId>            	
>             	</exclusion>
>                 <exclusion>
>             	   <groupId>commons-httpclient</groupId>
>             	   <artifactId>commons-httpclient</artifactId>            	
>             	</exclusion>
>            </exclusions>
> {code}
> Proposal: add related exclusions to some of the dependencies hbase-client depends upon.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)