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
Set environment variables for spark_apply()
#915
Comments
@chezou good point, I'll add a Thanks for putting that parcel together! Would you mind sharing details on how to help testing that parcel on our end? |
@javierluraschi I added step by step instruction for putting parcels https://github.com/chezou/cloudera-parcel I also created a parcel for RHEL7. You can set To know adding parcels on CDH, this blog post will help you. |
https://github.com/chezou/cloudera-parcel/blob/master/build.sh |
@chezou that's great, thanks for the steps! When you mention this is a temporary repo, should we be considering publishing your parcel in a more official repo? In the meantime, we will try this out on our end as well and report back! |
Finally, it works with upstream sparklyr! Thanks for your quick response @javierluraschi . It would be nice to publish my parcel in your repo, but it is AS-IS, and I can't guaranty my supporting, think it as a community parcel. |
Just FYI, after getting the environment variable option, following way which uses conda environment works fine. It distributes r environment for each spark job.
|
It works fine to run
|
Since Rscript requires to set environment variables like
RHOME
if Rscript is moved after installation. SparkR is able to set them as--conf
options (see also). If we have this function, we can use Parcel based installation of R.I'm creating R Parcel for CDH to run
spark_apply()
easily because CDH doesn't have R on worker nodes by default.I also tried to run following code, but
Rscript execution error: No such file or directory
error was returned. I guessProcessBuilder
does not handle environment variables with this way.The text was updated successfully, but these errors were encountered: