Support Questions

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

How to install newer service version than in stack ?

avatar
Explorer

Dear community,

cliffs: How to update an HDP service (Ranger, Atlas, Hive, whatever) to a newer (github) release?

After sitting for days in front of this problem, I would like to ask kindly for your help. My mission is to install the newest version of the service Ranger for testing purposes. In my sandbox HDP 2.6 stack the newest is 0.7 and I would like to update to 0.7.1 (or even try 0.7.2 snapshot; 1.0 snapshot - whatever).

Iam running HDP Sandbox 2.6.1 and I already tried an approach to delete

/var/lib/ambari-server/resources/stacks/HDP/2.6/services/RANGER

and get clone Ranger.git in here. But somehow the Ranger service in Ambari was still the old one.

Also tried to install manually, add a custom service named Ranger0.7.2 or add a custom stack but I guess iam not skilled enough to get this to work. What is the most common way to get this update done? I appreciate every small hint or help a lot. Huge thanks in advance, you eventually save my day:-)

1 ACCEPTED SOLUTION

avatar
Super Collaborator

If you want to to just use the a later version of ranger you can do it manually replace the jars with new jars after extracting or building the jars.

Refer.

https://cwiki.apache.org/confluence/display/RANGER/Apache+Ranger+0.5.0+Installation#ApacheRanger0.5....

View solution in original post

4 REPLIES 4

avatar
Explorer

Bump. Still did not found a solution to update a service manually out of the recent github. Please help:-)

avatar
Super Collaborator

If you want to to just use the a later version of ranger you can do it manually replace the jars with new jars after extracting or building the jars.

Refer.

https://cwiki.apache.org/confluence/display/RANGER/Apache+Ranger+0.5.0+Installation#ApacheRanger0.5....

avatar
Explorer

Thats a good hint. Thank you a lot for that:-) So Iam on the right path. Unfortunately I encountered issues while building with maven. I got the source from github and tried the following: (git checkout ranger release, export java, maven clean and then the following

mvn -DskipTests=false clean compile package install assembly:assembly 

(as shown here - source: http://ranger.apache.org/quick_start_guide.html)

But somehow the building is failing all the time: "Build failure". Changing Java type and version helps, but at the end it always fails at some point leading to the same result. Any hint to what kind of configuration is needed to get a successful build?

(tried out openjdk 7,8 and oracle 7,8; on lubuntu or mint with recent 3.5 maven)

avatar
Super Collaborator

@Jack Jackson I didnt have any issue building using the following, what error you get while building?

mvn clean compile package assembly:assembly