Where does DSS expect to find JAVA

Registered Posts: 3 ✭✭✭✭

I installed the new version (4.1.0) of DSS on my MAC running (OSX 10.11.6).

When I started the app, I got the following error message: Java is required, DSS needs Java to be installed. Go to <blah> <blah> to install Java.

The question that I have is where is DSS expecting to find Java, it's installed on my machine. I even have JAVA_HOME defined.

Output for `java -version`:

java version "1.8.0_131"

Java(TM) SE Runtime Environment (build 1.8.0_131-b11)

Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Is DSS reading the JAVA_HOME variable? Is there another one that I would need to set?

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Alpha Tester, Dataiker Alumni Posts: 539 ✭✭✭✭✭✭✭✭✭
    Yes, we search in the PATH for the JAVA_HOME variable. Normally everything is automatic at installation time provided Java is already installed.
  • Registered Posts: 3 ✭✭✭✭
    Thanks for the answer Alexandre!
    But now I think that I might need to open a bug report or maybe you know where the issue is:
    ```
    $ echo $JAVA_HOME
    /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
    ```

    I have a JAVA_HOME set and am still getting the above error.
  • Alpha Tester, Dataiker Alumni Posts: 539 ✭✭✭✭✭✭✭✭✭
    Could you re-run the installation script (https://doc.dataiku.com/dss/latest/installation/other/osx.html) and send us the logs please? They are located in Users//Library/DataScienceStudio/dss_home/run/install.log
  • Registered Posts: 3 ✭✭✭✭
    Hi Alexandre,
    Thanks for the reply.
    The launcher still asks me to install JAVA.
    If I go into the app folder (DatascienceStudio.app/Contents/MacOS) and run DataScienceStudio, then the program launches.
    This writes to the install.log (which doesn't happen when using the launcher)
    ```
    *********************************************************
    Data Science Studio installer: 2017/12/05-09:03:40
    Command line: /Applications/programmingUtilities/DataScienceStudio.app/Contents/Resources/kit/installer.sh -d /Users/wbenica/Library/DataScienceStudio/dss_home -y -u
    Version: {"product_version" : "4.1.0", "product_commitid" : ""}
    DIP_HOME: /Users/wbenica/Library/DataScienceStudio/dss_home

    [+] Using Java at /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java : java version "1.8.0_131"
    [+] Checking required dependencies
    + Detected OS distribution : osx 10.11
    + Checking required packages...
    [+] Migrating Python environment
    [+] Precompiling Dataiku Python code
    [+] Precompiling Jupyter Python code
    [+] Precompiling third-party Python code
    [+] Migrating data directory
    Select how to migrate from 17 from avail: [8 -> 9, 9 -> 10, 10 -> 11, 11 -> 12, 12 -> 13, 13 -> 14, 14 -> 15, 15 -> 16, 16 -> 17]
    [+] Writing version metadata conf=17 product=4.1.0 revision=
    Executing post-migrations
    Migration done, removing marker
    Node type : design
    Installed kernelspec python2 in /Users/wbenica/Library/DataScienceStudio/dss_home/jupyter-run/jupyter/kernels/python2
    [+] Generating default env file
    [+] Generating supervisor configuration
    [+] Generating nginx configuration
    ***************************************************************
    * Installation complete (DSS node type: design)
    * Next, start DSS using:
    * '/Users/wbenica/Library/DataScienceStudio/dss_home/bin/dss start'
    ***************************************************************
    ```

    running the following script in the DataScienceStudio.app folder also yields positive results:
    ```
    $ /Applications/programmingUtilities/DataScienceStudio.app/Contents/Resources/kit/scripts/_find-java.sh
    [+] Using Java at /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java : java version "1.8.0_131"
    /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java
    ```
    I'm also able to start using the command in the install.log (so with '/Users/wbenica/Library/DataScienceStudio/dss_home/bin/dss start')

    I'm ok, if the launcher doesn't work. I now know how to start DSS without it. Now I just need to remember that when I go to try something out.
  • Alpha Tester, Dataiker Alumni Posts: 539 ✭✭✭✭✭✭✭✭✭
    Good news that it works using /bin/dss start! Can you try removing the launcher from the dock, and then re-adding it from the Applications folder?
  • Dataiker, Alpha Tester Posts: 535 Dataiker
    Same issue, coming from the _find-java.sh script failing to find a suitable java installation , how can we fix that ?
  • Alpha Tester, Dataiker Alumni Posts: 539 ✭✭✭✭✭✭✭✭✭
    Could you post the error message please?

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.