mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-11-03 20:27:50 +00:00 
			
		
		
		
	Revert "feat(cli): Modifies ingest-sample-data command to use DataHub… (#7899)
This commit is contained in:
		
							parent
							
								
									8f8c11081d
								
							
						
					
					
						commit
						967260634c
					
				@ -20,7 +20,7 @@ import requests
 | 
				
			|||||||
from expandvars import expandvars
 | 
					from expandvars import expandvars
 | 
				
			||||||
from requests_file import FileAdapter
 | 
					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 (
 | 
					from datahub.cli.docker_check import (
 | 
				
			||||||
    DATAHUB_COMPOSE_LEGACY_VOLUME_FILTERS,
 | 
					    DATAHUB_COMPOSE_LEGACY_VOLUME_FILTERS,
 | 
				
			||||||
    DATAHUB_COMPOSE_PROJECT_FILTER,
 | 
					    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.",
 | 
					            footer="Try running `datahub docker quickstart` first.",
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    gms_host, gms_token = get_url_and_token()
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    # Run ingestion.
 | 
					    # Run ingestion.
 | 
				
			||||||
    click.echo("Starting ingestion...")
 | 
					    click.echo("Starting ingestion...")
 | 
				
			||||||
    recipe: dict = {
 | 
					    recipe: dict = {
 | 
				
			||||||
@ -937,10 +935,7 @@ def ingest_sample_data(path: Optional[str], token: Optional[str]) -> None:
 | 
				
			|||||||
        },
 | 
					        },
 | 
				
			||||||
        "sink": {
 | 
					        "sink": {
 | 
				
			||||||
            "type": "datahub-rest",
 | 
					            "type": "datahub-rest",
 | 
				
			||||||
            "config": {
 | 
					            "config": {"server": "http://localhost:8080"},
 | 
				
			||||||
                "server": gms_host,
 | 
					 | 
				
			||||||
                "token": gms_token,
 | 
					 | 
				
			||||||
            },
 | 
					 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user