Bug 1011656 - building hadoop-2.0.5-9 on fc19 (BuildRequires: hsqldb >= 2.0)
Summary: building hadoop-2.0.5-9 on fc19 (BuildRequires: hsqldb >= 2.0)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: hadoop
Version: 19
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Robert Rati
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-24 17:58 UTC by Jack Perdue
Modified: 2013-09-24 18:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-24 18:06:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to point out upgraded hsqldb on fc19 needed to build hadoop from fc20 (616 bytes, patch)
2013-09-24 17:58 UTC, Jack Perdue
no flags Details | Diff

Description Jack Perdue 2013-09-24 17:58:18 UTC
Created attachment 802401 [details]
patch to point out upgraded hsqldb on fc19 needed to build hadoop from fc20

This isn't so much a bug report as a HOWTO for others that might want to try it.  I know hadoop isn't slated for release until Fedora 20, but I have a lab full of Fedora 19 systems here and we wanted to try it out.  I tried installing the RPMs from the Apache site, but they aren't as rigorously packaged as they need to be for current Fedora systems (conflicts with filesystem.rpm).  Given that there is a package in development for F20, I thought I'd start there.

DISCLAIMER TO ANYONE WHO USES THIS INFO:
a) this is completely unsupported in F19
b) the current version (2.0.5) is an Alpha version from Apache (now that I have it built, I might see what it takes to bump up to the 2.1.0 Beta).

Anyway, to build hadoop on F19.
1) download the hadoop.src.rpm from the FC20 repo
2) install the .src.rpm
3) patch the .spec file with the attached patch
4) upgrade to hsqldb-2.2.9 (or later) from the FC20 repo (also dependency hsqldb-demo)
5) build the RPM

Obviously, if using mock, you'll need to add the hsqldb >= 2.0 RPMs to some local repo that mock uses.

Anyway... that's how to build.  I have no idea if it works yet (that's next), but if anyone else wants to play with it, this should help.

Comment 1 Jack Perdue 2013-09-24 18:00:31 UTC
Of course, feel free to close as NOTABUG (I thought I would be able to but I don't see that option).

Comment 2 Robert Rati 2013-09-24 18:06:11 UTC
It should be noted that as of 2.0.5-9 the rpm you will create on F19 and earlier will not be strictly Fedora compliant.  In -9 I switched to used xmvn-subst for the dependent jar links, but in F19 not all jars have the necessary data for xmvn-subst to resolve them.  The result will be rpms that have some bundled jars in them.  I shouldn't affect functionality, but might be of interest if you are updating F19 and a dependency is updated and the updated functionality it's reflected in you hadoop execution.

The built RPMs should work fine on F19.  I used F19 as a development platform when I was packaging hadoop.


Note You need to log in before you can comment on or make changes to this bug.