glamorous-house-64036
02/09/2022, 10:18 PMsource:
type: postgres
config:
# Coordinates
host_port: URL:5432
database: DATABASENAME
# Credentials
username: user
password: password
#Options
include_tables: True
include_views: True
sink:
type: "datahub-rest"
config:
server: "<http://localhost:9002/api/gms>" #this path is what UI ingestion tool sugests, I also tried default <http://localhost:8080>" with same result
Both postgres and datahub-rest plugins looks enabled.
Upd: Error log moved into thread.cuddly-engine-66252
02/10/2022, 10:34 AMcuddly-engine-66252
02/10/2022, 10:57 AM# Assumes the DataHub repo is cloned locally.
./metadata-ingestion/scripts/datahub_docker.sh ingest -c ./examples/recipes/example_to_datahub_rest.yml
incalculable-ocean-74010
02/10/2022, 4:43 PMlittle-megabyte-1074
glamorous-house-64036
02/10/2022, 8:37 PM[2022-02-10 11:12:54,369] ERROR {datahub.entrypoints:119} - File "/usr/local/lib/python3.8/dist-packages/datahub/cli/ingest_cli.py", line 77, in run
67 def run(config: str, dry_run: bool, preview: bool, strict_warnings: bool) -> None:
(...)
73 pipeline_config = load_config_file(config_file)
74
75 try:
76 logger.debug(f"Using config: {pipeline_config}")
--> 77 pipeline = Pipeline.create(pipeline_config, dry_run, preview)
78 except ValidationError as e:
File "/usr/local/lib/python3.8/dist-packages/datahub/ingestion/run/pipeline.py", line 175, in create
171 def create(
172 cls, config_dict: dict, dry_run: bool = False, preview_mode: bool = False
173 ) -> "Pipeline":
174 config = PipelineConfig.parse_obj(config_dict)
--> 175 return cls(config, dry_run=dry_run, preview_mode=preview_mode)
File "/usr/local/lib/python3.8/dist-packages/datahub/ingestion/run/pipeline.py", line 111, in __init__
105 def __init__(
106 self, config: PipelineConfig, dry_run: bool = False, preview_mode: bool = False
107 ):
108 self.config = config
109 self.dry_run = dry_run
110 self.preview_mode = preview_mode
--> 111 self.ctx = PipelineContext(
112 run_id=self.config.run_id,
File "/usr/local/lib/python3.8/dist-packages/datahub/ingestion/api/common.py", line 41, in __init__
32 def __init__(
33 self,
34 run_id: str,
35 datahub_api: Optional[DatahubClientConfig] = None,
36 pipeline_name: Optional[str] = None,
37 dry_run: bool = False,
38 preview_mode: bool = False,
39 ) -> None:
40 self.run_id = run_id
--> 41 self.graph = DataHubGraph(datahub_api) if datahub_api is not None else None
42 self.pipeline_name = pipeline_name
File "/usr/local/lib/python3.8/dist-packages/datahub/ingestion/graph/client.py", line 39, in __init__
37 def __init__(self, config: DatahubClientConfig) -> None:
38 self.config = config
--> 39 super().__init__(
40 gms_server=self.config.server,
File "/usr/local/lib/python3.8/dist-packages/datahub/emitter/rest_emitter.py", line 117, in __init__
65 def __init__(
66 self,
67 gms_server: str,
68 token: Optional[str] = None,
69 connect_timeout_sec: Optional[float] = None,
70 read_timeout_sec: Optional[float] = None,
71 retry_status_codes: Optional[List[int]] = None,
72 retry_methods: Optional[List[str]] = None,
73 retry_max_times: Optional[int] = None,
74 extra_headers: Optional[Dict[str, str]] = None,
75 ca_certificate_path: Optional[str] = None,
76 ):
(...)
113
114 if retry_max_times:
115 self._retry_max_times = retry_max_times
116
--> 117 retry_strategy = Retry(
118 total=self._retry_max_times,
---- (full traceback above) ----
File "/usr/local/lib/python3.8/dist-packages/datahub/cli/ingest_cli.py", line 77, in run
pipeline = Pipeline.create(pipeline_config, dry_run, preview)
File "/usr/local/lib/python3.8/dist-packages/datahub/ingestion/run/pipeline.py", line 175, in create
return cls(config, dry_run=dry_run, preview_mode=preview_mode)
File "/usr/local/lib/python3.8/dist-packages/datahub/ingestion/run/pipeline.py", line 111, in __init__
self.ctx = PipelineContext(
File "/usr/local/lib/python3.8/dist-packages/datahub/ingestion/api/common.py", line 41, in __init__
self.graph = DataHubGraph(datahub_api) if datahub_api is not None else None
File "/usr/local/lib/python3.8/dist-packages/datahub/ingestion/graph/client.py", line 39, in __init__
super().__init__(
File "/usr/local/lib/python3.8/dist-packages/datahub/emitter/rest_emitter.py", line 117, in __init__
retry_strategy = Retry(
TypeError: __init__() got an unexpected keyword argument 'allowed_methods'
glamorous-house-64036
02/10/2022, 8:38 PMincalculable-ocean-74010
02/10/2022, 8:59 PMglamorous-house-64036
02/10/2022, 9:17 PMhelpful-optician-78938
02/10/2022, 9:57 PMpip freeze | grep urllib3
urllib3==1.26.7
glamorous-house-64036
02/10/2022, 9:58 PMhelpful-optician-78938
02/10/2022, 10:04 PMpip install urllib3 --upgrade
?glamorous-house-64036
02/10/2022, 11:42 PMglamorous-house-64036
02/14/2022, 8:28 PMglamorous-house-64036
02/15/2022, 3:45 AM