Summary
How to connect to Dremio Cloud using the Dremio Arrow Flight Client Examples for Python
Overview
The following article provides an example of using the Dremio Arrow Flight Client Examples for Python to connect to a Dremio Cloud Project
Steps to Resolve
This is an example `config.yaml` that can be used with the Dremio Arrow Flight Client Examples for Python to connect to a Dremio Cloud Project .
hostname: data.dremio.cloud
port: 443
token: XXXXXXXXXXXXXjqbotabR6ZlyHe/NTcOEn4HvriKKdwlFo+YXv2+GHpbYg==
tls: true
query: select * from Samples."samples.dremio.com"."zips.json"
session_properties:
- project_id: deafbeef-fade-0000-bf51-9388ab65df33
Note that the `project_id` is passed using the 'session_properties' section of the config and token is a personal access token.
You can run the example and pass a config file using the `-config` param .
For example:
python3 example.py -config config_cloud.yaml
Additional Resources
Please see the Dremio Arrow Flight Client Examples for Python for more information on other configurations options.