Giter Club home page Giter Club logo

Comments (4)

petroav avatar petroav commented on July 18, 2024

I suspect the problem is that Ambari is not set to run with Java 8. You can set the JDK used by Ambari through the java.home property in /etc/ambari-server/conf/ambari.properties. However I don't know if this will propagate to the Ambari agents (and Presto workers) so they start using that JDK as well. I'm currently trying to reproduce this locally to make sure the agents start using the right JDK as well. I'll comment here again with my findings once I know more.

from ambari-presto-service.

petroav avatar petroav commented on July 18, 2024

So I just tried installing Presto with Ambari running JDK 7 and the installation failed, albeit at a different point. The installation failed when trying to install the RPM, which is before starting Presto. The reason why the RPM installation fails is because the RPM preinstall scripts checks the system for Java 8 and if it can't find any, it fails. So I don't know how you got yourself in a state where you managed to install the Presto RPM but then the start script can't find the right Java.

After my little experiment, I edited java.home in /etc/ambari-server/conf/ambari.properties on the Ambari master to point to the JDK 8 that Ambari downloaded in /usr/jdk64/jdk1.8.0_60/. I then re-installed one of the Presto workers, whose installation had previously failed, and it succeeded. That node now also has Java 8 in /usr/jdk64/jdk1.8.0_60/, whereas before it didn't. I think Ambari transparently copied the JDK over when it detected that the slave didn't have it.

What do you get when you run java -version on the node where Presto failed to start?

from ambari-presto-service.

petroav avatar petroav commented on July 18, 2024

My bad, Ambari will NOT copy over the JDK. You need to have it installed in the same location on all nodes. So if you set java.home to /usr/jdk64/jdk1.8.0_60/, that JDK needs to be in that location on all nodes.

from ambari-presto-service.

jakovm avatar jakovm commented on July 18, 2024

I guess the issue was that I was first installing the ambari-server, setting it up, starting it and afterwards installing the ambari-presto-service and then restart the server. Also somehow there woas java version "1.8.0_45" on it. After removing it and starting from scrach everything works perfect. Thanks for your help!

from ambari-presto-service.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.