mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 10:39:30 +00:00 
			
		
		
		
	Fix #317: Ingestion bug introduced due to auth_token
This commit is contained in:
		
							parent
							
								
									afb0d724eb
								
							
						
					
					
						commit
						9bff3ccba9
					
				| @ -5,7 +5,6 @@ | |||||||
| 			"partitions": 56, | 			"partitions": 56, | ||||||
| 			"retentionSize": 322122382273, | 			"retentionSize": 322122382273, | ||||||
| 			"cleanupPolicies": ["delete"], | 			"cleanupPolicies": ["delete"], | ||||||
| 			 "tags": ["Tier1"], |  | ||||||
| 			"schemaType": "Avro", | 			"schemaType": "Avro", | ||||||
| 			"schemaText": "{\"namespace\":\"org.open-metadata.kafka\",\"name\":\"Customer\",\"type\":\"record\",\"fields\":[{\"name\":\"id\",\"type\":\"string\"},{\"name\":\"first_name\",\"type\":\"string\"},{\"name\":\"last_name\",\"type\":\"string\"},{\"name\":\"email\",\"type\":\"string\"},{\"name\":\"address_line_1\",\"type\":\"string\"},{\"name\":\"address_line_2\",\"type\":\"string\"},{\"name\":\"post_code\",\"type\":\"string\"},{\"name\":\"country\",\"type\":\"string\"}]}" | 			"schemaText": "{\"namespace\":\"org.open-metadata.kafka\",\"name\":\"Customer\",\"type\":\"record\",\"fields\":[{\"name\":\"id\",\"type\":\"string\"},{\"name\":\"first_name\",\"type\":\"string\"},{\"name\":\"last_name\",\"type\":\"string\"},{\"name\":\"email\",\"type\":\"string\"},{\"name\":\"address_line_1\",\"type\":\"string\"},{\"name\":\"address_line_2\",\"type\":\"string\"},{\"name\":\"post_code\",\"type\":\"string\"},{\"name\":\"country\",\"type\":\"string\"}]}" | ||||||
| 		}, | 		}, | ||||||
| @ -15,7 +14,6 @@ | |||||||
| 			"partitions": 128, | 			"partitions": 128, | ||||||
| 			"retentionSize": 322122382273, | 			"retentionSize": 322122382273, | ||||||
| 			"cleanupPolicies": ["delete"], | 			"cleanupPolicies": ["delete"], | ||||||
| 			 "tags": ["Tier2"], |  | ||||||
| 			"schemaType": "Avro", | 			"schemaType": "Avro", | ||||||
| 			"schemaText": "{\"namespace\":\"org.open-metadata.kafka\",\"type\":\"record\",\"name\":\"Product\",\"fields\":[{\"name\":\"product_id\",\"type\":\"int\"},{\"name\":\"title\",\"type\":\"string\"},{\"name\":\"price\",\"type\":\"double\"},{\"name\":\"sku\",\"type\":\"string\"},{\"name\":\"barcode\",\"type\":\"string\"},{\"name\":\"shop_id\",\"type\":\"int\"}]}" | 			"schemaText": "{\"namespace\":\"org.open-metadata.kafka\",\"type\":\"record\",\"name\":\"Product\",\"fields\":[{\"name\":\"product_id\",\"type\":\"int\"},{\"name\":\"title\",\"type\":\"string\"},{\"name\":\"price\",\"type\":\"double\"},{\"name\":\"sku\",\"type\":\"string\"},{\"name\":\"barcode\",\"type\":\"string\"},{\"name\":\"shop_id\",\"type\":\"int\"}]}" | ||||||
| 		}, | 		}, | ||||||
| @ -25,7 +23,6 @@ | |||||||
| 			"partitions": 16, | 			"partitions": 16, | ||||||
| 			"retentionSize": 322122382273, | 			"retentionSize": 322122382273, | ||||||
| 			"cleanupPolicies": ["delete"], | 			"cleanupPolicies": ["delete"], | ||||||
| 			 "tags": ["Tier1"], |  | ||||||
| 			"schemaType": "Avro", | 			"schemaType": "Avro", | ||||||
| 			"schemaText": "{\"namespace\":\"org.open-metadata.kafka\",\"type\":\"record\",\"name\":\"Shop\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"domain\",\"type\":\"string\"},{\"name\":\"user_id\",\"type\":\"int\"},{\"name\":\"first_name\",\"type\":\"string\"},{\"name\":\"last_name\",\"type\":\"string\"},{\"name\":\"email\",\"type\":\"string\"}]}" | 			"schemaText": "{\"namespace\":\"org.open-metadata.kafka\",\"type\":\"record\",\"name\":\"Shop\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"domain\",\"type\":\"string\"},{\"name\":\"user_id\",\"type\":\"int\"},{\"name\":\"first_name\",\"type\":\"string\"},{\"name\":\"last_name\",\"type\":\"string\"},{\"name\":\"email\",\"type\":\"string\"}]}" | ||||||
| 		}, | 		}, | ||||||
| @ -45,7 +42,6 @@ | |||||||
| 			"retentionSize": 3222122382273, | 			"retentionSize": 3222122382273, | ||||||
| 			"cleanupPolicies": ["delete"], | 			"cleanupPolicies": ["delete"], | ||||||
| 			"schemaType": "Avro", | 			"schemaType": "Avro", | ||||||
| 			 "tags": ["Tier2"], |  | ||||||
| 			"schemaText": "{\"namespace\":\"org.open-metadata.kafka\",\"type\":\"record\",\"name\":\"Order\",\"fields\":[{\"name\":\"order_id\",\"type\":\"int\"},{\"name\":\"api_client_id\",\"type\":\"int\"},{\"name\":\"billing_address_id\",\"type\":\"int\"},{\"name\":\"customer_id\",\"type\":\"int\"},{\"name\":\"location_id\",\"type\":\"int\"},{\"name\":\"shipping_address_id\",\"type\":\"int\"},{\"name\":\"user_id\",\"type\":\"int\"},{\"name\":\"total_price\",\"type\":\"double\"},{\"name\":\"discount_code\",\"type\":\"string\"},{\"name\":\"processed_at\",\"type\":\"int\"}]}" | 			"schemaText": "{\"namespace\":\"org.open-metadata.kafka\",\"type\":\"record\",\"name\":\"Order\",\"fields\":[{\"name\":\"order_id\",\"type\":\"int\"},{\"name\":\"api_client_id\",\"type\":\"int\"},{\"name\":\"billing_address_id\",\"type\":\"int\"},{\"name\":\"customer_id\",\"type\":\"int\"},{\"name\":\"location_id\",\"type\":\"int\"},{\"name\":\"shipping_address_id\",\"type\":\"int\"},{\"name\":\"user_id\",\"type\":\"int\"},{\"name\":\"total_price\",\"type\":\"double\"},{\"name\":\"discount_code\",\"type\":\"string\"},{\"name\":\"processed_at\",\"type\":\"int\"}]}" | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| @ -54,7 +50,6 @@ | |||||||
| 			"partitions": 128, | 			"partitions": 128, | ||||||
| 			"retentionSize": 3222122382273, | 			"retentionSize": 3222122382273, | ||||||
| 			"cleanupPolicies": ["delete"], | 			"cleanupPolicies": ["delete"], | ||||||
| 			 "tags": ["Tier2"], |  | ||||||
| 			"schemaType": "Avro", | 			"schemaType": "Avro", | ||||||
| 			"schemaText": "{\"namespace\":\"org.open-metadata.kafka\",\"type\":\"record\",\"name\":\"Order\",\"fields\":[{\"name\":\"sale_id\",\"type\":\"int\"},{\"name\":\"billing_address_id\",\"type\":\"int\"},{\"name\":\"billing_address_id\",\"type\":\"int\"},{\"name\":\"api_client_id\",\"type\":\"int\"},{\"name\":\"customer_id\",\"type\":\"int\"},{\"name\":\"product_id\",\"type\":\"int\"},{\"name\":\"location_id\",\"type\":\"int\"},{\"name\":\"order_id\",\"type\":\"double\"}]}" | 			"schemaText": "{\"namespace\":\"org.open-metadata.kafka\",\"type\":\"record\",\"name\":\"Order\",\"fields\":[{\"name\":\"sale_id\",\"type\":\"int\"},{\"name\":\"billing_address_id\",\"type\":\"int\"},{\"name\":\"billing_address_id\",\"type\":\"int\"},{\"name\":\"api_client_id\",\"type\":\"int\"},{\"name\":\"customer_id\",\"type\":\"int\"},{\"name\":\"product_id\",\"type\":\"int\"},{\"name\":\"location_id\",\"type\":\"int\"},{\"name\":\"order_id\",\"type\":\"double\"}]}" | ||||||
| 		} | 		} | ||||||
|  | |||||||
| @ -21,8 +21,8 @@ from metadata.config.common import ConfigModel | |||||||
| from metadata.generated.schema.api.data.createTopic import CreateTopic | from metadata.generated.schema.api.data.createTopic import CreateTopic | ||||||
| from metadata.ingestion.api.common import WorkflowContext | from metadata.ingestion.api.common import WorkflowContext | ||||||
| from metadata.ingestion.api.sink import Sink, SinkStatus | from metadata.ingestion.api.sink import Sink, SinkStatus | ||||||
| from metadata.ingestion.ometa.client import REST, APIError, MetadataServerConfig | from metadata.ingestion.ometa.client import  APIError | ||||||
| from metadata.ingestion.ometa.openmetadata_rest import OpenMetadataAPIClient | from metadata.ingestion.ometa.openmetadata_rest import OpenMetadataAPIClient, MetadataServerConfig | ||||||
| 
 | 
 | ||||||
| logger = logging.getLogger(__name__) | logger = logging.getLogger(__name__) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Suresh Srinivas
						Suresh Srinivas