Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to build Hadoop RPM

avatar
Contributor

I made some changes base on hadoop-release-HDP-2.4.2.0 and I want to build it to RPMs into HDP stack .

How should I do

1 ACCEPTED SOLUTION

avatar

Hi @Dim Guy so this is a reasonably complex process, depending on your knowledge of RPM building.

First of all you'll need to grab the particular SRPM for the package you're interested in:

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_HDP_Reference_Guide/content/ch03s05.html

The above url covers the difference between the different types of source RPMs that Hortonworks provides.

The next set of steps you'll need to follow is here:

https://wiki.centos.org/HowTos/RebuildSRPM

If you carefully follow this, you should be able to rebuild a new RPM containing the modifications you require.

Good luck!

View solution in original post

8 REPLIES 8

avatar

Hi @Dim Guy so this is a reasonably complex process, depending on your knowledge of RPM building.

First of all you'll need to grab the particular SRPM for the package you're interested in:

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_HDP_Reference_Guide/content/ch03s05.html

The above url covers the difference between the different types of source RPMs that Hortonworks provides.

The next set of steps you'll need to follow is here:

https://wiki.centos.org/HowTos/RebuildSRPM

If you carefully follow this, you should be able to rebuild a new RPM containing the modifications you require.

Good luck!

avatar
Contributor

Hi , Thank you!

Can I get the source code from

https://github.com/hortonworks/hadoop-release/releases/tag/HDP-2.4.2.0-tag

then make some change on soure code

and build it to RPMs?

avatar

You could, but that would be a lot more work than the answer I gave above.

avatar
Explorer

pls tell me how to do to build to rpms with hdp git opensource,i can only build to .tar.gz. with maven, many thanks.

107702-1554801200738.png

avatar
Contributor

Hi , where can I ge

avatar
Contributor

Hi , where can I get the src rpm? I have not found it

avatar
Explorer

hi,@Dim Guy,had you find the way to build RPM?

I need to build the new hadoop stack too.Can you give me some advices?

avatar
Explorer

@kaibo li sry but have u already known how to build rpm with hdp git opensource?glad for your reply