Support Questions
Find answers, ask questions, and share your expertise

How to build Hadoop RPM

Explorer

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

Accepted Solutions

Re: How to build Hadoop RPM

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

Re: How to build Hadoop RPM

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

Re: How to build Hadoop RPM

Explorer

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?

Re: How to build Hadoop RPM

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

Re: How to build Hadoop RPM

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

Re: How to build Hadoop RPM

Explorer

Hi , where can I ge

Re: How to build Hadoop RPM

Explorer

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

Re: How to build Hadoop RPM

New Contributor

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?

Re: How to build Hadoop RPM

Explorer

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