This is an automated email from the ASF dual-hosted git repository.

mykolabodnar pushed a commit to branch DLAB-515
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-515 by this push:
     new 6c0f1c7  [DLAB-515]- Rstudio fixed
6c0f1c7 is described below

commit 6c0f1c7b8488abcc26760f7c67e263ae6aae087e
Author: bodnarmykola <bodnarmyk...@gmail.com>
AuthorDate: Wed May 27 14:07:01 2020 +0300

    [DLAB-515]- Rstudio fixed
---
 infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py 
b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
index 990afe4..39abcd2 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -129,6 +129,9 @@ def install_rstudio(os_user, local_spark_path, 
rstudio_pass, rstudio_version):
             sudo(
                 'sed -i \'/\[Service\]/a Environment=\"HTTPS_PROXY={}\"\'  
/etc/systemd/system/rstudio-server.service'.format(
                     https_proxy))
+            java_home = run("update-alternatives --query java | grep -o 
\'/.*/java-8.*/jre\'").splitlines()[0]
+            sudo('sed -i \'/\[Service\]/ a\Environment=\"JAVA_HOME={}\"\'  
/tmp/jupyter-notebook.service'.format(
+                java_home))
             sudo("systemctl daemon-reload")
             sudo('touch /home/{}/.Renviron'.format(os_user))
             sudo('chown {0}:{0} /home/{0}/.Renviron'.format(os_user))


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org
For additional commands, e-mail: commits-h...@dlab.apache.org

Reply via email to