This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DATALAB-2091 in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 764eb2289fcd8f40bf9cef8698707202fbdaa366 Author: leonidfrolov <[email protected]> AuthorDate: Tue May 25 16:09:00 2021 +0300 [DATALAB-2091]: added mem variable --- infrastructure-provisioning/src/general/lib/os/fab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py index d934aa9..274fe3a 100644 --- a/infrastructure-provisioning/src/general/lib/os/fab.py +++ b/infrastructure-provisioning/src/general/lib/os/fab.py @@ -846,7 +846,7 @@ def restart_zeppelin(creds=False, os_user='', hostname='', keyfile=''): def get_spark_memory(creds=False, os_user='', hostname='', keyfile=''): if creds: con = init_datalab_connection(hostname, os_user, keyfile) - con.sudo('free -m | grep Mem | tr -s " " ":" | cut -f 2 -d ":"').stdout.replace('\n','') + mem = con.sudo('free -m | grep Mem | tr -s " " ":" | cut -f 2 -d ":"').stdout.replace('\n', '') instance_memory = int(mem) else: mem = conn.sudo('free -m | grep Mem | tr -s " " ":" | cut -f 2 -d ":"').stdout.replace('\n','') --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
