Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHive not working in AE5 #138

Open
zcarwile opened this issue Apr 3, 2018 · 9 comments
Open

RHive not working in AE5 #138

zcarwile opened this issue Apr 3, 2018 · 9 comments

Comments

@zcarwile
Copy link

zcarwile commented Apr 3, 2018

screen shot 2018-04-03 at 2 26 14 pm

@mingwandroid
Copy link

Please list the packages you have installed. I assume you've installed a Java JVM too? We don't add that as a dependency for rJava because we want people to be able to use their existing Java infrastructure.

@zcarwile
Copy link
Author

zcarwile commented Apr 3, 2018 via email

@mingwandroid
Copy link

OK, can you do a conda list please? You need to install your own JDK. If I'd made it a strict dependency then companies would not be able to use their own Java software and we felt that was sub-optimal.

You should be able to conda install openjdk though.

@mingwandroid
Copy link

BTW this repo is redundant now. No packages are developed here. The recipe for r-rhive is: https://github.com/AnacondaRecipes/aggregateR/tree/master/r-rhive-feedstock

@zcarwile
Copy link
Author

zcarwile commented Apr 3, 2018

I added openjdk and the error changed slightly. Now "java -version" does work at the Terminal. Output of "conda list" attached.

conda_list.txt
screen shot 2018-04-03 at 4 35 24 pm

@mingwandroid
Copy link

OK, I'm not sure why you have R 3.4.2 here since 3.4.3 has been out for at least a month, but regardless, as I said you need to install Java somehow. conda install openjdk is one way.

@zcarwile
Copy link
Author

zcarwile commented Apr 3, 2018

Configuring Java did the trick.

https://stackoverflow.com/questions/34212378/installation-of-rjava

I have R 3.4.2 because that's what's in the AE5 Hadoop-Spark project template.

@mingwandroid
Copy link

mingwandroid commented Apr 3, 2018

I cannot reproduce this. From an official docker centos6 image (centos:6) I tried the following:

/opt/conda/bin/conda create -y -n r342_rhive_openjdk r-base=3.4.2 r-rhive openjdk -c r -c https://repo.continuum.io/pkgs/main
. /opt/conda/bin/activate r342_rhive_openjdk
Rscript -e 'library(RHive)'

.. and received the following output:

Loading required package: rJava
Loading required package: methods
Loading required package: Rserve

@mingwandroid
Copy link

mingwandroid commented Apr 3, 2018

Configuring Java did the trick.

You should not need to do this, calling conda activate on any environment that contains r-base will run R CMD javareconf at this time.

Does AE5 not activate environments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants