Bug 1011656 - building hadoop-2.0.5-9 on fc19 (BuildRequires: hsqldb >= 2.0)
building hadoop-2.0.5-9 on fc19 (BuildRequires: hsqldb >= 2.0)
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: hadoop (Show other bugs)
19
Unspecified Linux
unspecified Severity low
: ---
: ---
Assigned To: Robert Rati
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-24 13:58 EDT by Jack Perdue
Modified: 2013-09-24 14:06 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-09-24 14:06:40 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Jack Perdue 2013-09-24 13:58:18 EDT
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 14:00:31 EDT
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 14:06:11 EDT
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.