Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How to build Hadoop RPM

avatar
New Member

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
New Member

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
New Member

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
New Member

Hi , where can I ge

avatar
New Member

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

avatar
New Member

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
New Member

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