Red Hat Bugzilla – Bug 1011656
building hadoop-2.0.5-9 on fc19 (BuildRequires: hsqldb >= 2.0)
Last modified: 2013-09-24 14:06:40 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.
Of course, feel free to close as NOTABUG (I thought I would be able to but I don't see that option).
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.