superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Remove coordinator in Druid Cluster config (#5164) (#6443)
Date Tue, 27 Nov 2018 17:41:26 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 1eb0d0d  Remove coordinator in Druid Cluster config (#5164) (#6443)
1eb0d0d is described below

commit 1eb0d0d83591a5f4d817a3ece8a6ee0ad317a1dd
Author: Jiaji Zhou <jiaji.zh@gmail.com>
AuthorDate: Tue Nov 27 09:41:16 2018 -0800

    Remove coordinator in Druid Cluster config (#5164) (#6443)
---
 superset/connectors/druid/models.py                |  9 ++-----
 superset/connectors/druid/views.py                 |  6 +----
 ...8b9b7_remove_coordinator_from_druid_cluster_.py | 31 ++++++++++++++++++++++
 superset/translations/de/LC_MESSAGES/messages.json |  9 -------
 superset/translations/de/LC_MESSAGES/messages.po   | 12 ---------
 superset/translations/en/LC_MESSAGES/messages.po   | 21 ---------------
 superset/translations/es/LC_MESSAGES/messages.json |  9 -------
 superset/translations/es/LC_MESSAGES/messages.po   | 12 ---------
 superset/translations/fr/LC_MESSAGES/messages.json |  9 -------
 superset/translations/fr/LC_MESSAGES/messages.po   | 12 ---------
 superset/translations/it/LC_MESSAGES/messages.json |  9 -------
 superset/translations/it/LC_MESSAGES/messages.po   | 12 ---------
 superset/translations/ja/LC_MESSAGES/messages.json |  9 -------
 superset/translations/ja/LC_MESSAGES/messages.po   | 12 ---------
 superset/translations/messages.pot                 | 12 ---------
 superset/translations/pt/LC_MESSAGES/message.po    | 12 ---------
 superset/translations/pt/LC_MESSAGES/messages.json |  2 +-
 .../translations/pt_BR/LC_MESSAGES/messages.json   |  9 -------
 .../translations/pt_BR/LC_MESSAGES/messages.po     | 12 ---------
 superset/translations/ru/LC_MESSAGES/messages.json |  9 -------
 superset/translations/ru/LC_MESSAGES/messages.po   | 12 ---------
 superset/translations/zh/LC_MESSAGES/messages.json |  2 +-
 superset/translations/zh/LC_MESSAGES/messages.po   | 12 ---------
 tests/druid_tests.py                               |  5 ----
 24 files changed, 36 insertions(+), 223 deletions(-)

diff --git a/superset/connectors/druid/models.py b/superset/connectors/druid/models.py
index 6c4f8ee..40a4287 100644
--- a/superset/connectors/druid/models.py
+++ b/superset/connectors/druid/models.py
@@ -80,18 +80,13 @@ class DruidCluster(Model, AuditMixinNullable, ImportMixin):
     verbose_name = Column(String(250), unique=True)
     # short unique name, used in permissions
     cluster_name = Column(String(250), unique=True)
-    coordinator_host = Column(String(255))
-    coordinator_port = Column(Integer, default=8081)
-    coordinator_endpoint = Column(
-        String(255), default='druid/coordinator/v1/metadata')
     broker_host = Column(String(255))
     broker_port = Column(Integer, default=8082)
     broker_endpoint = Column(String(255), default='druid/v2')
     metadata_last_refreshed = Column(DateTime)
     cache_timeout = Column(Integer)
 
-    export_fields = ('cluster_name', 'coordinator_host', 'coordinator_port',
-                     'coordinator_endpoint', 'broker_host', 'broker_port',
+    export_fields = ('cluster_name', 'broker_host', 'broker_port',
                      'broker_endpoint', 'cache_timeout')
     update_from_object_fields = export_fields
     export_children = ['datasources']
@@ -135,7 +130,7 @@ class DruidCluster(Model, AuditMixinNullable, ImportMixin):
 
     def get_druid_version(self):
         endpoint = self.get_base_url(
-            self.coordinator_host, self.coordinator_port) + '/status'
+            self.broker_host, self.broker_port) + '/status'
         return json.loads(requests.get(endpoint).text)['version']
 
     @property
diff --git a/superset/connectors/druid/views.py b/superset/connectors/druid/views.py
index c67e3fc..18c1aef 100644
--- a/superset/connectors/druid/views.py
+++ b/superset/connectors/druid/views.py
@@ -158,8 +158,7 @@ class DruidClusterModelView(SupersetModelView, DeleteMixin, YamlExportMixin):
 #
     edit_title = _('Edit Druid Cluster')
 
     add_columns = [
-        'verbose_name', 'coordinator_host', 'coordinator_port',
-        'coordinator_endpoint', 'broker_host', 'broker_port',
+        'verbose_name', 'broker_host', 'broker_port',
         'broker_endpoint', 'cache_timeout', 'cluster_name',
     ]
     edit_columns = add_columns
@@ -167,9 +166,6 @@ class DruidClusterModelView(SupersetModelView, DeleteMixin, YamlExportMixin):
 #
     search_columns = ('cluster_name',)
     label_columns = {
         'cluster_name': _('Cluster'),
-        'coordinator_host': _('Coordinator Host'),
-        'coordinator_port': _('Coordinator Port'),
-        'coordinator_endpoint': _('Coordinator Endpoint'),
         'broker_host': _('Broker Host'),
         'broker_port': _('Broker Port'),
         'broker_endpoint': _('Broker Endpoint'),
diff --git a/superset/migrations/versions/46f444d8b9b7_remove_coordinator_from_druid_cluster_.py
b/superset/migrations/versions/46f444d8b9b7_remove_coordinator_from_druid_cluster_.py
new file mode 100644
index 0000000..87fd1e6
--- /dev/null
+++ b/superset/migrations/versions/46f444d8b9b7_remove_coordinator_from_druid_cluster_.py
@@ -0,0 +1,31 @@
+"""remove_coordinator_from_druid_cluster_model.py
+
+Revision ID: 46f444d8b9b7
+Revises: 4ce8df208545
+Create Date: 2018-11-26 00:01:04.781119
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '46f444d8b9b7'
+down_revision = '4ce8df208545'
+
+from alembic import op
+import sqlalchemy as sa
+import logging
+
+
+def upgrade():
+    try:
+        op.drop_column('clusters', 'coordinator_host')
+        op.drop_column('clusters', 'coordinator_endpoint')
+        op.drop_column('clusters', 'coordinator_port')
+    except Exception as e:
+        # Sqlite does not support drop column
+        logging.warning(str(e))
+
+
+def downgrade():
+    op.add_column('clusters', sa.Column('coordinator_host', sa.String(length=256), nullable=True))
+    op.add_column('clusters', sa.Column('coordinator_port', sa.Integer(), nullable=True))
+    op.add_column('clusters', sa.Column('coordinator_endpoint', sa.String(length=256), nullable=True))
diff --git a/superset/translations/de/LC_MESSAGES/messages.json b/superset/translations/de/LC_MESSAGES/messages.json
index 21bc2a0..ca4eadb 100644
--- a/superset/translations/de/LC_MESSAGES/messages.json
+++ b/superset/translations/de/LC_MESSAGES/messages.json
@@ -1891,15 +1891,6 @@
          "Cluster": [
             ""
          ],
-         "Coordinator Host": [
-            ""
-         ],
-         "Coordinator Port": [
-            ""
-         ],
-         "Coordinator Endpoint": [
-            ""
-         ],
          "Broker Host": [
             ""
          ],
diff --git a/superset/translations/de/LC_MESSAGES/messages.po b/superset/translations/de/LC_MESSAGES/messages.po
index 59077e2..9ded436 100644
--- a/superset/translations/de/LC_MESSAGES/messages.po
+++ b/superset/translations/de/LC_MESSAGES/messages.po
@@ -2826,18 +2826,6 @@ msgstr "Druid Cluster bearbeiten"
 msgid "Cluster"
 msgstr ""
 
-#: superset/connectors/druid/views.py:144
-msgid "Coordinator Host"
-msgstr ""
-
-#: superset/connectors/druid/views.py:145
-msgid "Coordinator Port"
-msgstr ""
-
-#: superset/connectors/druid/views.py:146
-msgid "Coordinator Endpoint"
-msgstr ""
-
 #: superset/connectors/druid/views.py:147
 msgid "Broker Host"
 msgstr ""
diff --git a/superset/translations/en/LC_MESSAGES/messages.po b/superset/translations/en/LC_MESSAGES/messages.po
index a861350..c49b6eb 100644
--- a/superset/translations/en/LC_MESSAGES/messages.po
+++ b/superset/translations/en/LC_MESSAGES/messages.po
@@ -4105,18 +4105,6 @@ msgstr ""
 msgid "Cluster"
 msgstr ""
 
-#: superset/connectors/druid/views.py:172
-msgid "Coordinator Host"
-msgstr ""
-
-#: superset/connectors/druid/views.py:173
-msgid "Coordinator Port"
-msgstr ""
-
-#: superset/connectors/druid/views.py:174
-msgid "Coordinator Endpoint"
-msgstr ""
-
 #: superset/connectors/druid/views.py:175
 msgid "Broker Host"
 msgstr ""
@@ -7134,15 +7122,6 @@ msgstr ""
 #~ msgid "Cluster"
 #~ msgstr ""
 
-#~ msgid "Coordinator Host"
-#~ msgstr ""
-
-#~ msgid "Coordinator Port"
-#~ msgstr ""
-
-#~ msgid "Coordinator Endpoint"
-#~ msgstr ""
-
 #~ msgid "Broker Host"
 #~ msgstr ""
 
diff --git a/superset/translations/es/LC_MESSAGES/messages.json b/superset/translations/es/LC_MESSAGES/messages.json
index a816579..1f0d3b0 100644
--- a/superset/translations/es/LC_MESSAGES/messages.json
+++ b/superset/translations/es/LC_MESSAGES/messages.json
@@ -1891,15 +1891,6 @@
          "Cluster": [
             "Cluster"
          ],
-         "Coordinator Host": [
-            ""
-         ],
-         "Coordinator Port": [
-            ""
-         ],
-         "Coordinator Endpoint": [
-            ""
-         ],
          "Broker Host": [
             ""
          ],
diff --git a/superset/translations/es/LC_MESSAGES/messages.po b/superset/translations/es/LC_MESSAGES/messages.po
index 93f29a3..efcff9b 100644
--- a/superset/translations/es/LC_MESSAGES/messages.po
+++ b/superset/translations/es/LC_MESSAGES/messages.po
@@ -2959,18 +2959,6 @@ msgstr "Editar Cluster Druid"
 msgid "Cluster"
 msgstr "Cluster"
 
-#: superset/connectors/druid/views.py:144
-msgid "Coordinator Host"
-msgstr "Host Coordinador"
-
-#: superset/connectors/druid/views.py:145
-msgid "Coordinator Port"
-msgstr "Puerto Coordinador"
-
-#: superset/connectors/druid/views.py:146
-msgid "Coordinator Endpoint"
-msgstr "Coordinador Endpoint"
-
 #: superset/connectors/druid/views.py:147
 msgid "Broker Host"
 msgstr "Host Broker"
diff --git a/superset/translations/fr/LC_MESSAGES/messages.json b/superset/translations/fr/LC_MESSAGES/messages.json
index 3973eb8..5f7d740 100644
--- a/superset/translations/fr/LC_MESSAGES/messages.json
+++ b/superset/translations/fr/LC_MESSAGES/messages.json
@@ -2761,15 +2761,6 @@
          "Cluster": [
             "Cluster"
          ],
-         "Coordinator Host": [
-            "Hôte du coordinator"
-         ],
-         "Coordinator Port": [
-            "Port du coordinator"
-         ],
-         "Coordinator Endpoint": [
-            "Endpoint du coordinator"
-         ],
          "Broker Host": [
             "Hôte du Broker"
          ],
diff --git a/superset/translations/fr/LC_MESSAGES/messages.po b/superset/translations/fr/LC_MESSAGES/messages.po
index 878b769..547e141 100644
--- a/superset/translations/fr/LC_MESSAGES/messages.po
+++ b/superset/translations/fr/LC_MESSAGES/messages.po
@@ -4114,18 +4114,6 @@ msgstr "Éditer une cluster Druid"
 msgid "Cluster"
 msgstr "Cluster"
 
-#: superset/connectors/druid/views.py:172
-msgid "Coordinator Host"
-msgstr "Hôte du coordinator"
-
-#: superset/connectors/druid/views.py:173
-msgid "Coordinator Port"
-msgstr "Port du coordinator"
-
-#: superset/connectors/druid/views.py:174
-msgid "Coordinator Endpoint"
-msgstr "Endpoint du coordinator"
-
 #: superset/connectors/druid/views.py:175
 msgid "Broker Host"
 msgstr "Hôte du Broker"
diff --git a/superset/translations/it/LC_MESSAGES/messages.json b/superset/translations/it/LC_MESSAGES/messages.json
index 90e3855..71378d4 100644
--- a/superset/translations/it/LC_MESSAGES/messages.json
+++ b/superset/translations/it/LC_MESSAGES/messages.json
@@ -2572,15 +2572,6 @@
          "Cluster": [
             "Cluster"
          ],
-         "Coordinator Host": [
-            "Host Coordinatore"
-         ],
-         "Coordinator Port": [
-            "Porta Coordinatore"
-         ],
-         "Coordinator Endpoint": [
-            "Endpoint Coordinatore"
-         ],
          "Broker Host": [
             "Host Broker"
          ],
diff --git a/superset/translations/it/LC_MESSAGES/messages.po b/superset/translations/it/LC_MESSAGES/messages.po
index f383e14..a97c968 100644
--- a/superset/translations/it/LC_MESSAGES/messages.po
+++ b/superset/translations/it/LC_MESSAGES/messages.po
@@ -3844,18 +3844,6 @@ msgstr ""
 msgid "Cluster"
 msgstr "Cluster"
 
-#: superset/connectors/druid/views.py:165
-msgid "Coordinator Host"
-msgstr "Host Coordinatore"
-
-#: superset/connectors/druid/views.py:166
-msgid "Coordinator Port"
-msgstr "Porta Coordinatore"
-
-#: superset/connectors/druid/views.py:167
-msgid "Coordinator Endpoint"
-msgstr "Endpoint Coordinatore"
-
 #: superset/connectors/druid/views.py:168
 msgid "Broker Host"
 msgstr "Host Broker"
diff --git a/superset/translations/ja/LC_MESSAGES/messages.json b/superset/translations/ja/LC_MESSAGES/messages.json
index 5960a09..ea5fddf 100644
--- a/superset/translations/ja/LC_MESSAGES/messages.json
+++ b/superset/translations/ja/LC_MESSAGES/messages.json
@@ -1909,15 +1909,6 @@
          "Cluster": [
             ""
          ],
-         "Coordinator Host": [
-            ""
-         ],
-         "Coordinator Port": [
-            ""
-         ],
-         "Coordinator Endpoint": [
-            ""
-         ],
          "Broker Host": [
             ""
          ],
diff --git a/superset/translations/ja/LC_MESSAGES/messages.po b/superset/translations/ja/LC_MESSAGES/messages.po
index df16185..a106f92 100644
--- a/superset/translations/ja/LC_MESSAGES/messages.po
+++ b/superset/translations/ja/LC_MESSAGES/messages.po
@@ -2851,18 +2851,6 @@ msgstr ""
 msgid "Cluster"
 msgstr ""
 
-#: superset/connectors/druid/views.py:144
-msgid "Coordinator Host"
-msgstr ""
-
-#: superset/connectors/druid/views.py:145
-msgid "Coordinator Port"
-msgstr ""
-
-#: superset/connectors/druid/views.py:146
-msgid "Coordinator Endpoint"
-msgstr ""
-
 #: superset/connectors/druid/views.py:147
 msgid "Broker Host"
 msgstr ""
diff --git a/superset/translations/messages.pot b/superset/translations/messages.pot
index 09c3e36..290e070 100644
--- a/superset/translations/messages.pot
+++ b/superset/translations/messages.pot
@@ -4104,18 +4104,6 @@ msgstr ""
 msgid "Cluster"
 msgstr ""
 
-#: superset/connectors/druid/views.py:172
-msgid "Coordinator Host"
-msgstr ""
-
-#: superset/connectors/druid/views.py:173
-msgid "Coordinator Port"
-msgstr ""
-
-#: superset/connectors/druid/views.py:174
-msgid "Coordinator Endpoint"
-msgstr ""
-
 #: superset/connectors/druid/views.py:175
 msgid "Broker Host"
 msgstr ""
diff --git a/superset/translations/pt/LC_MESSAGES/message.po b/superset/translations/pt/LC_MESSAGES/message.po
index 45286c6..6c8b463 100644
--- a/superset/translations/pt/LC_MESSAGES/message.po
+++ b/superset/translations/pt/LC_MESSAGES/message.po
@@ -3289,18 +3289,6 @@ msgstr "Editar Cluster Druid"
 msgid "Cluster"
 msgstr "Cluster"
 
-#: superset/connectors/druid/views.py:142
-msgid "Coordinator Host"
-msgstr "Anfitrião Coordenador"
-
-#: superset/connectors/druid/views.py:143
-msgid "Coordinator Port"
-msgstr "Porta Coordenador"
-
-#: superset/connectors/druid/views.py:144
-msgid "Coordinator Endpoint"
-msgstr "Endpoint Coordenador"
-
 #: superset/connectors/druid/views.py:145
 #, fuzzy
 msgid "Broker Host"
diff --git a/superset/translations/pt/LC_MESSAGES/messages.json b/superset/translations/pt/LC_MESSAGES/messages.json
index e4273a4..9483848 100644
--- a/superset/translations/pt/LC_MESSAGES/messages.json
+++ b/superset/translations/pt/LC_MESSAGES/messages.json
@@ -1 +1 @@
-{"domain":"superset","locale_data":{"superset":{"":{"domain":"superset","lang":"pt"},"Time
Column":["Coluna de tempo"],"second":["segundo"],"minute":["minuto"],"hour":["hora"],"day":["dia"],"week":["semana"],"month":["mês"],"quarter":["trimestre"],"year":["ano"],"week_start_monday":["semana_inicio_segunda_feira"],"week_ending_saturday":["semana_fim_sábado"],"week_start_sunday":["semana_inicio_domingo"],"5
minute":["5 minutos"],"half hour":["meia hora"],"10 minute":["10 minutos"],"[Supers [...]
\ No newline at end of file
+{"domain":"superset","locale_data":{"superset":{"":{"domain":"superset","lang":"pt"},"Time
Column":["Coluna de tempo"],"second":["segundo"],"minute":["minuto"],"hour":["hora"],"day":["dia"],"week":["semana"],"month":["mês"],"quarter":["trimestre"],"year":["ano"],"week_start_monday":["semana_inicio_segunda_feira"],"week_ending_saturday":["semana_fim_sábado"],"week_start_sunday":["semana_inicio_domingo"],"5
minute":["5 minutos"],"half hour":["meia hora"],"10 minute":["10 minutos"],"[Supers [...]
\ No newline at end of file
diff --git a/superset/translations/pt_BR/LC_MESSAGES/messages.json b/superset/translations/pt_BR/LC_MESSAGES/messages.json
index 06911ac..f2c675d 100644
--- a/superset/translations/pt_BR/LC_MESSAGES/messages.json
+++ b/superset/translations/pt_BR/LC_MESSAGES/messages.json
@@ -2100,15 +2100,6 @@
          "Cluster": [
             "Grupo"
          ],
-         "Coordinator Host": [
-            "Coordenador de Host"
-         ],
-         "Coordinator Port": [
-            "Porto Coordenador"
-         ],
-         "Coordinator Endpoint": [
-            "Ponto final do coordenador"
-         ],
          "Broker Host": [
             "Host de corretor"
          ],
diff --git a/superset/translations/pt_BR/LC_MESSAGES/messages.po b/superset/translations/pt_BR/LC_MESSAGES/messages.po
index 8710021..141f817 100644
--- a/superset/translations/pt_BR/LC_MESSAGES/messages.po
+++ b/superset/translations/pt_BR/LC_MESSAGES/messages.po
@@ -3253,18 +3253,6 @@ msgstr "Editar Druid Cluster"
 msgid "Cluster"
 msgstr "Grupo"
 
-#: superset/connectors/druid/views.py:142
-msgid "Coordinator Host"
-msgstr "Coordenador de Host"
-
-#: superset/connectors/druid/views.py:143
-msgid "Coordinator Port"
-msgstr "Porto Coordenador"
-
-#: superset/connectors/druid/views.py:144
-msgid "Coordinator Endpoint"
-msgstr "Ponto final do coordenador"
-
 #: superset/connectors/druid/views.py:145
 msgid "Broker Host"
 msgstr "Host de corretor"
diff --git a/superset/translations/ru/LC_MESSAGES/messages.json b/superset/translations/ru/LC_MESSAGES/messages.json
index 38e2e7d..f375364 100644
--- a/superset/translations/ru/LC_MESSAGES/messages.json
+++ b/superset/translations/ru/LC_MESSAGES/messages.json
@@ -2572,15 +2572,6 @@
          "Cluster": [
             "Кластер"
          ],
-         "Coordinator Host": [
-            "Координатор Хост"
-         ],
-         "Coordinator Port": [
-            "Координатор Порт"
-         ],
-         "Coordinator Endpoint": [
-            "Координатор Конечная Точка"
-         ],
          "Broker Host": [
             "Брокер-Хост"
          ],
diff --git a/superset/translations/ru/LC_MESSAGES/messages.po b/superset/translations/ru/LC_MESSAGES/messages.po
index 5ea2cc1..da0d9f4 100644
--- a/superset/translations/ru/LC_MESSAGES/messages.po
+++ b/superset/translations/ru/LC_MESSAGES/messages.po
@@ -3953,18 +3953,6 @@ msgstr "Редактировать Кластер Druid"
 msgid "Cluster"
 msgstr "Кластер"
 
-#: superset/connectors/druid/views.py:165
-msgid "Coordinator Host"
-msgstr "Координатор Хост"
-
-#: superset/connectors/druid/views.py:166
-msgid "Coordinator Port"
-msgstr "Координатор Порт"
-
-#: superset/connectors/druid/views.py:167
-msgid "Coordinator Endpoint"
-msgstr "Координатор Конечная Точка"
-
 #: superset/connectors/druid/views.py:168
 msgid "Broker Host"
 msgstr "Брокер-Хост"
diff --git a/superset/translations/zh/LC_MESSAGES/messages.json b/superset/translations/zh/LC_MESSAGES/messages.json
index ad3c4a3..9bce5a1 100644
--- a/superset/translations/zh/LC_MESSAGES/messages.json
+++ b/superset/translations/zh/LC_MESSAGES/messages.json
@@ -1 +1 @@
-{"domain":"superset","locale_data":{"superset":{"":{"domain":"superset","plural_forms":"nplurals=1;
plural=0","lang":"zh"},"Time Column":["时间字段"],"second":["秒"],"minute":["分"],"hour":["小时"],"day":["天"],"week":["周"],"month":["月"],"quarter":["季度"],"year":["年"],"week_ending_saturday":["周日为一周开始"],"week_start_sunday":["周日为一周结束"],"week_start_monday":["周一为一周开始"],"5
minute":["5 分钟"],"half hour":["半小时"],"10 minute":["10 分钟"],"Table Name":["表名"],"Name
of table to be created from csv data.":[""],"C [...]
\ No newline at end of file
+{"domain":"superset","locale_data":{"superset":{"":{"domain":"superset","plural_forms":"nplurals=1;
plural=0","lang":"zh"},"Time Column":["时间字段"],"second":["秒"],"minute":["分"],"hour":["小时"],"day":["天"],"week":["周"],"month":["月"],"quarter":["季度"],"year":["年"],"week_ending_saturday":["周日为一周开始"],"week_start_sunday":["周日为一周结束"],"week_start_monday":["周一为一周开始"],"5
minute":["5 分钟"],"half hour":["半小时"],"10 minute":["10 分钟"],"Table Name":["表名"],"Name
of table to be created from csv data.":[""],"C [...]
\ No newline at end of file
diff --git a/superset/translations/zh/LC_MESSAGES/messages.po b/superset/translations/zh/LC_MESSAGES/messages.po
index 4cd37c9..72e5818 100644
--- a/superset/translations/zh/LC_MESSAGES/messages.po
+++ b/superset/translations/zh/LC_MESSAGES/messages.po
@@ -4110,18 +4110,6 @@ msgstr "编辑 Druid 集群"
 msgid "Cluster"
 msgstr "集群"
 
-#: superset/connectors/druid/views.py:172
-msgid "Coordinator Host"
-msgstr "协调器主机"
-
-#: superset/connectors/druid/views.py:173
-msgid "Coordinator Port"
-msgstr "协调器端口"
-
-#: superset/connectors/druid/views.py:174
-msgid "Coordinator Endpoint"
-msgstr "协调器端点"
-
 #: superset/connectors/druid/views.py:175
 msgid "Broker Host"
 msgstr "代理主机"
diff --git a/tests/druid_tests.py b/tests/druid_tests.py
index 9d3a20f..ada18d0 100644
--- a/tests/druid_tests.py
+++ b/tests/druid_tests.py
@@ -84,9 +84,6 @@ class DruidTests(SupersetTestCase):
     def get_test_cluster_obj(self):
         return DruidCluster(
             cluster_name='test_cluster',
-            coordinator_host='localhost',
-            coordinator_endpoint='druid/coordinator/v1/metadata',
-            coordinator_port=7979,
             broker_host='localhost',
             broker_port=7980,
             broker_endpoint='druid/v2',
@@ -311,8 +308,6 @@ class DruidTests(SupersetTestCase):
 
         cluster = DruidCluster(
             cluster_name='test_cluster',
-            coordinator_host='localhost',
-            coordinator_port=7979,
             broker_host='localhost',
             broker_port=7980,
             metadata_last_refreshed=datetime.now())


Mime
View raw message