FAQ
Compile HBase against hadoop 0.22
---------------------------------

Key: HBASE-4327
URL: https://issues.apache.org/jira/browse/HBASE-4327
Project: HBase
Issue Type: Bug
Components: build
Affects Versions: 0.92.0
Reporter: Joep Rottinghuis
Fix For: 0.92.0


Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.

When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
That exists on 0.23 and 0.24/trunk, but not on 0.22.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Search Discussions

  • Joep Rottinghuis (JIRA) at Sep 2, 2011 at 2:48 am
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095730#comment-13095730 ]

    Joep Rottinghuis commented on HBASE-4327:
    -----------------------------------------

    I'm happy to provide a patch. I see three options:

    1) modify the POM to provide a separate property for the hadoop-annotation dependency version. That way one can depend on hadoop-0.22-SNAPSHOT (or whatever other 0.22 version) for hadoop-common, hadoop-hdfs, etc, and one could grab hadoop-annotations from 0.23 or 0.24.

    2) modify the POM to have an entirely separate 0.22 profile. Again the profile would have to point to hadoop-annotation from a 0.23 or 0.24/trunk snapshot.

    3) Not modify the pom, manually build hadoop-annotations from trunk with a modified / faked 0.22 version and deploy to local repo. This would solve my own internal problem, but is not likely to be a satisfying solution for uploading to the apache repo's (not sure if any committer is willing to upload such hadoop-annotation-0.22-SNAPSHOT.jar).

    Any suggestions?
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • stack (JIRA) at Sep 2, 2011 at 3:58 am
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095756#comment-13095756 ]

    stack commented on HBASE-4327:
    ------------------------------

    @Joep Any chance of seeing the compile error? How comes trunk compiles against hadoop 0.20.x w/o need of annotations? Is it because of the 0.20 profile? If we do a 0.22 profile, option 2., why we need hadoop-annotations?

    I'm wondering because I seem to remember compiling against 0.22 at one time w/o this dependency; maybe I was dreaming.
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Michael Weng (JIRA) at Sep 2, 2011 at 6:59 pm
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096209#comment-13096209 ]

    Michael Weng commented on HBASE-4327:
    -------------------------------------

    I added a separate 0.22 profile without annotations. Build is fine. And no issue found so far while running hbase trunk on hadoop 0.22.
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • stack (JIRA) at Sep 2, 2011 at 7:01 pm
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096211#comment-13096211 ]

    stack commented on HBASE-4327:
    ------------------------------

    Good on you Michael. Post a patch?
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Joep Rottinghuis (JIRA) at Sep 2, 2011 at 7:03 pm
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096212#comment-13096212 ]

    Joep Rottinghuis commented on HBASE-4327:
    -----------------------------------------

    Testing a patch locally, will post soon.
    Initially I thought that HBase depended on hadoop-annotations, but that is a problem with 0.23 (probably a missed dependency in those POMs).
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Joep Rottinghuis (JIRA) at Sep 2, 2011 at 7:17 pm
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096221#comment-13096221 ]

    Joep Rottinghuis commented on HBASE-4327:
    -----------------------------------------

    Still seeing compilation error:
    [ERROR] Failed to execute goal on project hbase: Could not resolve dependencies for project org.apache.hbase:hbase:jar:0.91.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.hadoop:hadoop-test:jar:0.22.0-SNAPSHOT, org.apache.hadoop:guava:jar:r09: Could not find artifact org.apache.hadoop:hadoop-test:jar:0.22.0-SNAPSHOT in apache release (https://repository.apache.org/content/repositories/releases/) -> [Help 1]

    The guava one is related to HDFS-2189 (and HDFS-2214), which for some reason keeps rearing it's ugly head. Just wiped out ~/.m2/repository. Will download the offending POM manually to double-check.
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Joep Rottinghuis (JIRA) at Sep 2, 2011 at 7:49 pm
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096241#comment-13096241 ]

    Joep Rottinghuis commented on HBASE-4327:
    -----------------------------------------

    Problem still there on the Hadoop side:
    https://repository.apache.org/content/groups/snapshots/org/apache/hadoop/hadoop-hdfs/0.22.0-SNAPSHOT/hadoop-hdfs-0.22.0-20110726.103826-380.pom

    The POM still points to org.apache.hadoop#guava and it should be com.google.guava.
    The source code in hdfs is correct, but the last published build is stale.
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Joep Rottinghuis (JIRA) at Sep 2, 2011 at 8:53 pm
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Joep Rottinghuis updated HBASE-4327:
    ------------------------------------

    Attachment: HBASE-4327.patch

    Preliminary patch. Still need to resolve downstream hdfs dependency issue first. Asked Konstantin to initiate integration build on hadoop-0.22 in order to publish fixed jar+pom.
    Once in I need to check where the hadoop-test error comes from.
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Michael Weng (JIRA) at Sep 2, 2011 at 10:40 pm
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Michael Weng updated HBASE-4327:
    --------------------------------

    Attachment: HBASE-4327-Michael.patch

    Here is my patch.
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327-Michael.patch, HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • stack (JIRA) at Sep 4, 2011 at 11:04 pm
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096959#comment-13096959 ]

    stack commented on HBASE-4327:
    ------------------------------

    Joep and Michael. You fellas are together? Should I apply Michael's last patch? It looks good to me. Do you want to make sure it works w/ whats published for hadoop 0.22 first? (Thanks for doing this work).
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327-Michael.patch, HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Joep Rottinghuis (JIRA) at Sep 5, 2011 at 1:42 am
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096979#comment-13096979 ]

    Joep Rottinghuis commented on HBASE-4327:
    -----------------------------------------

    My preference is to have the hdfs pom fixed first, then I'll test the patch and confirm.
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327-Michael.patch, HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Joep Rottinghuis (JIRA) at Sep 7, 2011 at 3:13 am
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098571#comment-13098571 ]

    Joep Rottinghuis commented on HBASE-4327:
    -----------------------------------------

    Turned out that HDFS was broken. I filed a bug for it: HDFS-2315.
    The newly published POM seems to have fixed the HDFS guava dependency issue
    :https://repository.apache.org/content/groups/snapshots/org/apache/hadoop/hadoop-hdfs/0.22.0-SNAPSHOT/hadoop-hdfs-0.22.0-20110907.001816-381.pom

    I'll test the patch again and report back.
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327-Michael.patch, HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Joep Rottinghuis (JIRA) at Sep 7, 2011 at 4:50 am
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Joep Rottinghuis updated HBASE-4327:
    ------------------------------------

    Attachment: HBASE-4327.patch

    Added additional comment and now that HDFS dependencies are fixed, the patch can now be applied.
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327-Michael.patch, HBASE-4327.patch, HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Joep Rottinghuis (JIRA) at Sep 7, 2011 at 4:50 am
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Joep Rottinghuis updated HBASE-4327:
    ------------------------------------

    Status: Patch Available (was: Open)
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327-Michael.patch, HBASE-4327.patch, HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • stack (JIRA) at Sep 7, 2011 at 5:03 am
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098596#comment-13098596 ]

    stack commented on HBASE-4327:
    ------------------------------

    I applied the above patch and got this:

    {code}
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Compilation failure

    /Users/stack/checkout/clean-trunk/src/main/java/org/apache/hadoop/hbase/Server.java:[22,29] package org.apache.hadoop.conf does not exist

    /Users/stack/checkout/clean-trunk/src/main/java/org/apache/hadoop/hbase/HRegionInfo.java:[29,29] package org.apache.hadoop.conf does not exist

    /Users/stack/checkout/clean-trunk/src/main/java/org/apache/hadoop/hbase/HRegionInfo.java:[30,27] package org.apache.hadoop.fs does not exist

    /Users/stack/checkout/clean-trunk/src/main/java/org/apache/hadoop/hbase/HRegionInfo.java:[31,27] package org.apache.hadoop.fs does not exist

    /Users/stack/checkout/clean-trunk/src/main/java/org/apache/hadoop/hbase/KeyValue.java:[37,27] package org.apache.hadoop.io does not exist

    /Users/stack/checkout/clean-trunk/src/main/java/org/apache/hadoop/hbase/KeyValue.java:[38,27] package org.apache.hadoop.io does not exist

    /Users/stack/checkout/clean-trunk/src/main/java/org/apache/hadoop/hbase/KeyValue.java:[66,33] cannot find symbol
    symbol: class Writable
    public class KeyValue implements Writable, HeapSize {
    ....
    {code}

    Is it because of this change?

    {code}
    <id>hadoop-0.20</id>
    <activation>
    <property>
    - <name>!hadoop23</name>
    + <name>hadoop20</name>
    </property>
    </activation>
    {code}

    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327-Michael.patch, HBASE-4327.patch, HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Joep Rottinghuis (JIRA) at Sep 7, 2011 at 5:09 am
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098598#comment-13098598 ]

    Joep Rottinghuis commented on HBASE-4327:
    -----------------------------------------

    Uhm, yes.
    Before there were two options:
    either specify nothing, or specify -Dhadoop23.
    The nothing/default option was run against 0.20 and was done when hadoop23 was not specified.
    Now we have three options.
    Let me see if we can make it something like:
    !(hadoop22 || hadoop 23)
    I tried with the specific options, but not without any.
    Will get back to you...
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327-Michael.patch, HBASE-4327.patch, HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Joep Rottinghuis (JIRA) at Sep 7, 2011 at 5:53 am
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Joep Rottinghuis updated HBASE-4327:
    ------------------------------------

    Attachment: HBASE-4327.patch

    Looks like there is a bug open in Maven to do exactly what I wanted to do:
    http://jira.codehaus.org/browse/MNG-3328

    What I can do is to change the property to hadoop.profile.
    - When nothing is specified, then HBase will build against 0.20
    - When -Dhadoop.profile=22 is specified, HBase will build against hadoop 0.22
    - When -Dhadoop.profile=23 is specified, HBase will build against hadoop 0.23. This is a change in behavior, previously used to be -Dhadoop23

    Attached a new patch with above behavior. Please let me know if this is acceptable.
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327-Michael.patch, HBASE-4327.patch, HBASE-4327.patch, HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • stack (JIRA) at Sep 7, 2011 at 6:11 am
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098628#comment-13098628 ]

    stack commented on HBASE-4327:
    ------------------------------

    That should work. We have a build against 0.23 up on apache build box. I'd need to change the config. there on commit but that should be fine.
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327-Michael.patch, HBASE-4327.patch, HBASE-4327.patch, HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • stack (JIRA) at Sep 7, 2011 at 6:21 am
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    stack updated HBASE-4327:
    -------------------------

    Resolution: Fixed
    Release Note: To compile against a version of hadoop other than 0.20, set hadoop.profile. When -Dhadoop.profile=22 is specified, HBase will build against hadoop 0.22. When -Dhadoop.profile=23 is specified, HBase will build against hadoop 0.23. This is a change in behavior, previously used to be -Dhadoop23. When nothing is specified, then HBase will build against 0.20
    Hadoop Flags: [Reviewed]
    Status: Resolved (was: Patch Available)

    Committed to TRUNK. I tried it w/o a profile and for 0.23.

    Todd, I updated build.apache.org so that our 0.23 build now uses this new flag instead.

    Thanks for the patch Joep. Nice on.
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327-Michael.patch, HBASE-4327.patch, HBASE-4327.patch, HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Hudson (JIRA) at Sep 7, 2011 at 9:05 am
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098791#comment-13098791 ]

    Hudson commented on HBASE-4327:
    -------------------------------

    Integrated in HBase-TRUNK #2180 (See [https://builds.apache.org/job/HBase-TRUNK/2180/])
    HBASE-4327 Compile HBase against hadoop 0.22

    stack :
    Files :
    * /hbase/trunk/CHANGES.txt
    * /hbase/trunk/pom.xml

    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327-Michael.patch, HBASE-4327.patch, HBASE-4327.patch, HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Joep Rottinghuis (JIRA) at Sep 20, 2011 at 7:40 am
    [ https://issues.apache.org/jira/browse/HBASE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Joep Rottinghuis updated HBASE-4327:
    ------------------------------------

    Assignee: Joep Rottinghuis
    Compile HBase against hadoop 0.22
    ---------------------------------

    Key: HBASE-4327
    URL: https://issues.apache.org/jira/browse/HBASE-4327
    Project: HBase
    Issue Type: Bug
    Components: build
    Affects Versions: 0.92.0
    Reporter: Joep Rottinghuis
    Assignee: Joep Rottinghuis
    Fix For: 0.92.0

    Attachments: HBASE-4327-Michael.patch, HBASE-4327.patch, HBASE-4327.patch, HBASE-4327.patch


    Pom contains a profile for hadoop-0.20 and one for hadoop-0.23, but not one for hadoop-0.22.
    When overriding hadoop.version to 0.22, then the (compile-time) dependency on hadoop-annotations cannot be met.
    That exists on 0.23 and 0.24/trunk, but not on 0.22.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupissues @
categorieshbase, hadoop
postedSep 2, '11 at 2:39a
activeSep 20, '11 at 7:40a
posts22
users1
websitehbase.apache.org

1 user in discussion

Joep Rottinghuis (JIRA): 22 posts

People

Translate

site design / logo © 2021 Grokbase