You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Andrew Purtell <ap...@apache.org> on 2013/02/22 19:03:58 UTC
Overriding Hadoop 2 version on the command line
It doesn't seem possible to override hadoop-two.version on the maven
command line, e.g.
mvn -Dhadoop.profile=2.0 -Dhadoop-two.version=2.0.4-SNAPSHOT
-Dhadoop.version=2.0.4-SNAPSHOT ...
doesn't actually select 2.0.4-SNAPSHOT, I have to edit the POM by hand.
Looking at the POM, I don't see why this wouldn't work. Perhaps someone
with stronger Maven-foo than I can point out the error of my ways?
--
Best regards,
- Andy
Problems worthy of attack prove their worth by hitting back. - Piet Hein
(via Tom White)
Re: Overriding Hadoop 2 version on the command line
Posted by Andrew Purtell <ap...@apache.org>.
Yes, I have a local install. But hey! dependency:tree ... learned something
new today, thanks so much Nick.
On Fri, Feb 22, 2013 at 11:32 AM, Nick Dimiduk <nd...@gmail.com> wrote:
> This incantation appears to work for me. Presumably you have a local
> install of 2.0.4-SNAPSHOT? Are you sure that version permutation is what
> you intend?
>
> -n
>
> $ mvn dependency:tree -Dhadoop.profile=2.0 -Dhadoop-two.version=2.0.3-alpha
> | grep hadoop-common
> [INFO] | +- org.apache.hadoop:hadoop-common:jar:2.0.3-alpha:compile
> [INFO] | +- org.apache.hadoop:hadoop-common:jar:2.0.3-alpha:compile
> [INFO] | | +- org.apache.hadoop:hadoop-common:jar:2.0.3-alpha:compile
> [INFO] +- org.apache.hadoop:hadoop-common:jar:2.0.3-alpha:compile
> [INFO] | +-
> org.apache.hadoop:hadoop-common:test-jar:tests:2.0.3-alpha:compile
>
> On Fri, Feb 22, 2013 at 10:03 AM, Andrew Purtell <apurtell@apache.org
> >wrote:
>
> > It doesn't seem possible to override hadoop-two.version on the maven
> > command line, e.g.
> >
> > mvn -Dhadoop.profile=2.0 -Dhadoop-two.version=2.0.4-SNAPSHOT
> > -Dhadoop.version=2.0.4-SNAPSHOT ...
> >
> > doesn't actually select 2.0.4-SNAPSHOT, I have to edit the POM by hand.
> > Looking at the POM, I don't see why this wouldn't work. Perhaps someone
> > with stronger Maven-foo than I can point out the error of my ways?
> >
> > --
> > Best regards,
> >
> > - Andy
> >
> > Problems worthy of attack prove their worth by hitting back. - Piet Hein
> > (via Tom White)
> >
>
--
Best regards,
- Andy
Problems worthy of attack prove their worth by hitting back. - Piet Hein
(via Tom White)
Re: Overriding Hadoop 2 version on the command line
Posted by Nick Dimiduk <nd...@gmail.com>.
This incantation appears to work for me. Presumably you have a local
install of 2.0.4-SNAPSHOT? Are you sure that version permutation is what
you intend?
-n
$ mvn dependency:tree -Dhadoop.profile=2.0 -Dhadoop-two.version=2.0.3-alpha
| grep hadoop-common
[INFO] | +- org.apache.hadoop:hadoop-common:jar:2.0.3-alpha:compile
[INFO] | +- org.apache.hadoop:hadoop-common:jar:2.0.3-alpha:compile
[INFO] | | +- org.apache.hadoop:hadoop-common:jar:2.0.3-alpha:compile
[INFO] +- org.apache.hadoop:hadoop-common:jar:2.0.3-alpha:compile
[INFO] | +-
org.apache.hadoop:hadoop-common:test-jar:tests:2.0.3-alpha:compile
On Fri, Feb 22, 2013 at 10:03 AM, Andrew Purtell <ap...@apache.org>wrote:
> It doesn't seem possible to override hadoop-two.version on the maven
> command line, e.g.
>
> mvn -Dhadoop.profile=2.0 -Dhadoop-two.version=2.0.4-SNAPSHOT
> -Dhadoop.version=2.0.4-SNAPSHOT ...
>
> doesn't actually select 2.0.4-SNAPSHOT, I have to edit the POM by hand.
> Looking at the POM, I don't see why this wouldn't work. Perhaps someone
> with stronger Maven-foo than I can point out the error of my ways?
>
> --
> Best regards,
>
> - Andy
>
> Problems worthy of attack prove their worth by hitting back. - Piet Hein
> (via Tom White)
>