0 votes

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?

asked by

1 Answer

0 votes
Yes, we search in the PATH for the JAVA_HOME variable. Normally everything is automatic at installation time provided Java is already installed.
answered by
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

I have a JAVA_HOME set and am still getting the above error.
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/<YOURUSERNAME>/Library/DataScienceStudio/dss_home/run/install.log
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"
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.
Good news that it works using <DATADIR>/bin/dss start! Can you try removing the launcher from the dock, and then re-adding it from the Applications folder?
Same issue, coming from the _find-java.sh script failing to find a suitable java installation , how can we fix that ?
Could you post the error message please?
792 questions
815 answers
533 users