This is an automated email from the ASF dual-hosted git repository.
lfrolov 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 9a884b5 DLAB-1799 added parameter in tensorboard.service, changed
numpy version for python 2.7, added setuptools version to dlab.ini that is
necessary for tensorboard
9a884b5 is described below
commit 9a884b57370ea86028048d3ac6747b0acd0adf2c
Author: leonidfrolov <[email protected]>
AuthorDate: Wed May 20 18:23:37 2020 +0300
DLAB-1799 added parameter in tensorboard.service, changed numpy version for
python 2.7, added setuptools version to dlab.ini that is necessary for
tensorboard
---
infrastructure-provisioning/src/general/conf/dlab.ini | 2 ++
.../src/general/lib/os/debian/notebook_lib.py | 6 +++---
.../src/general/templates/os/tensorboard.service | 2 +-
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/infrastructure-provisioning/src/general/conf/dlab.ini
b/infrastructure-provisioning/src/general/conf/dlab.ini
index 1978395..bd65818 100644
--- a/infrastructure-provisioning/src/general/conf/dlab.ini
+++ b/infrastructure-provisioning/src/general/conf/dlab.ini
@@ -288,6 +288,8 @@ matplotlib_version = 2.0.2
jupyterlab_image = odahu\\/base-notebook:1.1.0-rc8
### Superset version
superset_version = 0.35.1
+### Setuptools version
+setuptools_version = 41.0.0
#--- [emr] section contains all parameters that are using for emr provisioning
---#
[emr]
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 b4b6576..2ba6699 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -162,8 +162,8 @@ def ensure_matplot(os_user):
sudo('pip2 install matplotlib==2.0.2 --no-cache-dir')
sudo('pip3 install matplotlib==2.0.2 --no-cache-dir')
if os.environ['application'] in ('tensor', 'deeplearning'):
- sudo('python2.7 -m pip install -U numpy=={}
--no-cache-dir'.format(os.environ['notebook_numpy_version']))
- sudo('python3.5 -m pip install -U numpy=={}
--no-cache-dir'.format(os.environ['notebook_numpy_version']))
+ sudo('python2.7 -m pip install -U numpy==1.16.6
--no-cache-dir')
+ sudo('python3.6 -m pip install -U numpy=={}
--no-cache-dir'.format(os.environ['notebook_numpy_version']))
sudo('touch /home/' + os_user + '/.ensure_dir/matplot_ensured')
except:
sys.exit(1)
@@ -261,7 +261,7 @@ def ensure_python3_libraries(os_user):
try:
#manage_pkg('-y install', 'remote', 'python3-setuptools')
manage_pkg('-y install', 'remote', 'python3-pip')
- sudo('pip3 install setuptools')
+ sudo('pip3 install
setuptools=={}').format(os.environ['notebook_setuptools_version')
try:
sudo('pip3 install tornado=={0} ipython==7.9.0 ipykernel=={1}
--no-cache-dir' \
.format(os.environ['notebook_tornado_version'],
os.environ['notebook_ipykernel_version']))
diff --git
a/infrastructure-provisioning/src/general/templates/os/tensorboard.service
b/infrastructure-provisioning/src/general/templates/os/tensorboard.service
index a4a1d68..f7dee8b 100644
--- a/infrastructure-provisioning/src/general/templates/os/tensorboard.service
+++ b/infrastructure-provisioning/src/general/templates/os/tensorboard.service
@@ -25,7 +25,7 @@ Description=Tensorflow Tensorboard
[Service]
Type=simple
PIDFile=/var/run/tensorboard.pid
-ExecStart=/bin/bash -c "export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cudnn/lib64:/usr/local/cuda/lib64;
tensorboard --logdir=/var/log/tensorboard --port 6006"
+ExecStart=/bin/bash -c "export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cudnn/lib64:/usr/local/cuda/lib64;
tensorboard --logdir=/var/log/tensorboard --host 0.0.0.0 --port 6006"
ExecStop=/bin/bash -c "for i in $(ps aux | grep 'tensorboard' | grep -v grep |
awk '{print $2}'); do kill -9 $i; done"
User=OS_USR
Group=OS_USR
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]