2021-08-17 21:14:43 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								description: This guide will help install Presto connector and run manually
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# Presto
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{% hint style="info" %}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								**Prerequisites**
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								1.  Python 3.7 or above 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								2.  OpenMetadata Server up and running 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{% endhint %}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### Install from PyPI or Source
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{% tabs %}
							 
						 
					
						
							
								
									
										
										
										
											2021-09-19 08:43:31 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{% tab title="Install Using PyPI" %}
							 
						 
					
						
							
								
									
										
										
										
											2021-08-17 21:14:43 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
									
										
										
										
											2021-09-20 10:57:50 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								pip install 'openmetadata-ingestion[presto]'
							 
						 
					
						
							
								
									
										
										
										
											2021-08-17 21:14:43 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{% endtab %}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{% endtabs %}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## Run Manually
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								metadata ingest -c ./examples/workflows/presto.json
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### Configuration
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{% code title="presto.json" %}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```javascript
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  "source": {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    "type": "presto",
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    "config": {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      "service_name": "local_presto",
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      "host_port": "192.168.1.32:8080",
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      "database": "default"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  }, ...
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{% endcode %}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-08-18 17:25:04 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								1.  **username**  - this is an optional configuration if you are using username/password with presto. Please use these fields to configure them 
						 
					
						
							
								
									
										
										
										
											2021-08-17 21:14:43 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								2.  **password**  - password for the username 
						 
					
						
							
								
									
										
										
										
											2021-08-18 07:27:45 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								3.  **host\_port**  - host and port of the Presto cluster 
						 
					
						
							
								
									
										
										
										
											2021-08-18 17:25:04 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								4.  **service\_name**  - Service Name for this Presto cluster. If you added the Presto cluster through OpenMetadata UI, make sure the service name matches the same. 
						 
					
						
							
								
									
										
										
										
											2021-08-18 07:27:45 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								5.  **filter\_pattern**  - It contains includes, excludes options to choose which pattern of datasets you want to ingest into OpenMetadata 
						 
					
						
							
								
									
										
										
										
											2021-08-17 21:14:43 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## Publish to OpenMetadata
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Below is the configuration to publish Presto data into the OpenMeatadata service.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								add `metadata-rest-tables`  sink along with `metadata-server`  config
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{% code title="presto.json" %}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```javascript
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  "source": {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    "type": "presto",
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    "config": {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      "service_name": "local_presto",
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      "host_port": "192.168.1.32:8080",
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      "database": "default"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  },
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  "sink": {
							 
						 
					
						
							
								
									
										
										
										
											2021-09-07 17:52:06 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    "type": "metadata-rest",
							 
						 
					
						
							
								
									
										
										
										
											2021-08-17 21:14:43 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    "config": {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  },
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  "metadata_server": {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    "type": "metadata-server",
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    "config": {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      "api_endpoint": "http://localhost:8585/api",
							 
						 
					
						
							
								
									
										
										
										
											2021-09-19 08:43:31 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      "auth_provider_type": "no-auth"
							 
						 
					
						
							
								
									
										
										
										
											2021-08-17 21:14:43 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{% endcode %}