From 967260634c8e2f5f3ae93c5bfab28263b8149fc5 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Wed, 26 Apr 2023 16:56:22 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"feat(cli):=20Modifies=20ingest-sample?= =?UTF-8?q?-data=20command=20to=20use=20DataHub=E2=80=A6=20(#7899)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- metadata-ingestion/src/datahub/cli/docker_cli.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/metadata-ingestion/src/datahub/cli/docker_cli.py b/metadata-ingestion/src/datahub/cli/docker_cli.py index f894630691..fe162aa2c3 100644 --- a/metadata-ingestion/src/datahub/cli/docker_cli.py +++ b/metadata-ingestion/src/datahub/cli/docker_cli.py @@ -20,7 +20,7 @@ import requests from expandvars import expandvars from requests_file import FileAdapter -from datahub.cli.cli_utils import DATAHUB_ROOT_FOLDER, get_url_and_token +from datahub.cli.cli_utils import DATAHUB_ROOT_FOLDER from datahub.cli.docker_check import ( DATAHUB_COMPOSE_LEGACY_VOLUME_FILTERS, DATAHUB_COMPOSE_PROJECT_FILTER, @@ -924,8 +924,6 @@ def ingest_sample_data(path: Optional[str], token: Optional[str]) -> None: footer="Try running `datahub docker quickstart` first.", ) - gms_host, gms_token = get_url_and_token() - # Run ingestion. click.echo("Starting ingestion...") recipe: dict = { @@ -937,10 +935,7 @@ def ingest_sample_data(path: Optional[str], token: Optional[str]) -> None: }, "sink": { "type": "datahub-rest", - "config": { - "server": gms_host, - "token": gms_token, - }, + "config": {"server": "http://localhost:8080"}, }, }