This is an automated email from the ASF dual-hosted git repository.
omartushevskyi pushed a commit to branch DLAB-253
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-253 by this push:
new b171ae7 fixed issue with DNS name for Dataproc
b171ae7 is described below
commit b171ae7d85a9f4d6ce599dbb047d6799add1ff91
Author: Oleh Martushevskyi <[email protected]>
AuthorDate: Thu Mar 14 18:18:01 2019 +0200
fixed issue with DNS name for Dataproc
---
.../src/general/scripts/gcp/dataengine-service_configure.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git
a/infrastructure-provisioning/src/general/scripts/gcp/dataengine-service_configure.py
b/infrastructure-provisioning/src/general/scripts/gcp/dataengine-service_configure.py
index 8e5e194..311a550 100644
---
a/infrastructure-provisioning/src/general/scripts/gcp/dataengine-service_configure.py
+++
b/infrastructure-provisioning/src/general/scripts/gcp/dataengine-service_configure.py
@@ -83,13 +83,17 @@ def configure_dataengine_service(instance, dataproc_conf):
slave = {
'name': 'datanode{}'.format(idx + 1),
'ip': slave_ip,
- 'dns': instance
+ 'dns': "{0}.{1}.{2}.internal".format(instance,
+
dataproc_conf['zone'].split('-')[-1],
+
os.environ['gcp_project_id'])
}
slaves.append(slave)
additional_info = {
"computational_name": dataproc_conf['computational_name'],
"master_ip": dataproc_conf['master_ip'],
- "master_dns": dataproc_conf['master_name'],
+ "master_dns":
"{0}.{1}.{2}.internal".format(dataproc_conf['master_name'],
+
dataproc_conf['zone'].split('-')[-1],
+
os.environ['gcp_project_id']),
"slaves": slaves,
"tensor": False
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]