You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Samir Ahmic <ah...@gmail.com> on 2017/08/03 21:04:13 UTC

[DISCUSS] Removing jersey1* dependencies from project and jersey1*jars form lib dir

Hi all,

Recently i have opened https://issues.apache.org/jira/browse/HBASE-18506
and it is clear that is caused by mixing jersey1 and jersey2 jars in
classpath. With https://issues.apache.org/jira/browse/HBASE-12894 we have
introduced jersey2 to project,  and we also  have bunch of transitive
dependencies (mainly from hadoop) on jersey1 which is not happiest
situation since jersey1 and jersey2 under same classpath can case runtime
issues as it was case with rest.
So if nobody objects i would like to remove hbase dependency on jersey1 in
following steps:

   1. Clean code and replace jersey1 constructs with jersey2 versions(there
   should not be much of this)
   2. Add exclusions for transitive jersey1 dependencies in pom.xml
   3. Add exclusions  in hadoop-two-compat.xml to prevent jersey1 jars in
   lib dir

Is there any reason why we can not remove jersey1 from project ? Any
additional concerns ?

Best Regards
Samir

Re: [DISCUSS] Removing jersey1* dependencies from project and jersey1*jars form lib dir

Posted by Samir Ahmic <ah...@gmail.com>.
Ted, stack thanks,

Then let me turn on my cleaning equipment...:). I will make appropriate
JIRAs.

Cheers
Samir

On Fri, Aug 4, 2017 at 8:08 AM, stack <sa...@gmail.com> wrote:

> This sort of cleanup would be.much appreciated.
> Thanks,
> S
>
> On Aug 4, 2017 05:04, "Samir Ahmic" <ah...@gmail.com> wrote:
>
> > Hi all,
> >
> > Recently i have opened https://issues.apache.org/jira/browse/HBASE-18506
> > and it is clear that is caused by mixing jersey1 and jersey2 jars in
> > classpath. With https://issues.apache.org/jira/browse/HBASE-12894 we
> have
> > introduced jersey2 to project,  and we also  have bunch of transitive
> > dependencies (mainly from hadoop) on jersey1 which is not happiest
> > situation since jersey1 and jersey2 under same classpath can case runtime
> > issues as it was case with rest.
> > So if nobody objects i would like to remove hbase dependency on jersey1
> in
> > following steps:
> >
> >    1. Clean code and replace jersey1 constructs with jersey2
> versions(there
> >    should not be much of this)
> >    2. Add exclusions for transitive jersey1 dependencies in pom.xml
> >    3. Add exclusions  in hadoop-two-compat.xml to prevent jersey1 jars in
> >    lib dir
> >
> > Is there any reason why we can not remove jersey1 from project ? Any
> > additional concerns ?
> >
> > Best Regards
> > Samir
> >
>

Re: [DISCUSS] Removing jersey1* dependencies from project and jersey1*jars form lib dir

Posted by stack <sa...@gmail.com>.
This sort of cleanup would be.much appreciated.
Thanks,
S

On Aug 4, 2017 05:04, "Samir Ahmic" <ah...@gmail.com> wrote:

> Hi all,
>
> Recently i have opened https://issues.apache.org/jira/browse/HBASE-18506
> and it is clear that is caused by mixing jersey1 and jersey2 jars in
> classpath. With https://issues.apache.org/jira/browse/HBASE-12894 we have
> introduced jersey2 to project,  and we also  have bunch of transitive
> dependencies (mainly from hadoop) on jersey1 which is not happiest
> situation since jersey1 and jersey2 under same classpath can case runtime
> issues as it was case with rest.
> So if nobody objects i would like to remove hbase dependency on jersey1 in
> following steps:
>
>    1. Clean code and replace jersey1 constructs with jersey2 versions(there
>    should not be much of this)
>    2. Add exclusions for transitive jersey1 dependencies in pom.xml
>    3. Add exclusions  in hadoop-two-compat.xml to prevent jersey1 jars in
>    lib dir
>
> Is there any reason why we can not remove jersey1 from project ? Any
> additional concerns ?
>
> Best Regards
> Samir
>

Re: [DISCUSS] Removing jersey1* dependencies from project and jersey1*jars form lib dir

Posted by Ted Yu <yu...@gmail.com>.
Assuming actions in step #1 can be completed, the approach sounds fine.

On Thu, Aug 3, 2017 at 2:04 PM, Samir Ahmic <ah...@gmail.com> wrote:

> Hi all,
>
> Recently i have opened https://issues.apache.org/jira/browse/HBASE-18506
> and it is clear that is caused by mixing jersey1 and jersey2 jars in
> classpath. With https://issues.apache.org/jira/browse/HBASE-12894 we have
> introduced jersey2 to project,  and we also  have bunch of transitive
> dependencies (mainly from hadoop) on jersey1 which is not happiest
> situation since jersey1 and jersey2 under same classpath can case runtime
> issues as it was case with rest.
> So if nobody objects i would like to remove hbase dependency on jersey1 in
> following steps:
>
>    1. Clean code and replace jersey1 constructs with jersey2 versions(there
>    should not be much of this)
>    2. Add exclusions for transitive jersey1 dependencies in pom.xml
>    3. Add exclusions  in hadoop-two-compat.xml to prevent jersey1 jars in
>    lib dir
>
> Is there any reason why we can not remove jersey1 from project ? Any
> additional concerns ?
>
> Best Regards
> Samir
>