You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: QUICKSTART.md
+32-8Lines changed: 32 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,41 @@
12
12
## 1 Query data using Flight clients
13
13
This process is the same if you launched the Dremio locally or via docker.
14
14
15
-
### 1.1 Query your datasets with Python
15
+
### 1.1 Query your datasets with arrow flight client in python
16
+
17
+
This lightweight Python client application connects to the Dremio Arrow Flight server endpoint. It requires the username and password for authentication. Developers can use admin or regular user credentials for authentication. Any datasets in Dremio that are accessible by the provided Dremio user can be queried. By default, the hostname is `localhost` and the port is `32010`. Developers can change these default settings by providing the hostname and port as arguments when running the client. Moreover, the tls option can be provided to establish an encrypted connection.
18
+
19
+
> Note: Trusted certificates must be provided when the tls option is enabled.
#### 1.1.2 Instructions on using this Python sample application
25
26
27
+
- This application also requires `pyarrow` and `pandas`. Consider one of the dependency installation methods below. We recommend using `conda` for its ease of use.
-query SQLQUERY, --sqlquery SQLQUERY SQL query to test
46
+
-tls, --tls Enable encrypted connection
47
+
-certs TRUSTEDCERTIFICATES, --trustedCertificates TRUSTEDCERTIFICATES Path to trusted certificates for encrypted connection
48
+
```
49
+
---
26
50
27
51
### 1.2 Query your dataset with arrow flight client in java
28
52
This lightweight Java client application connects to the Dremio Arrow Flight server endpoint. It requires the username and password for authentication. Developers can use admin or regular user credentials for authentication. Any datasets in Dremio that are accessible by the provided Dremio user can be queried. By default, the hostname is `localhost` and the port is `32010`. Developers can change these default settings by providing the hostname and port as arguments when running the client. Moreover, the tls option can be provided to establish an encrypted connection.
Get started with your first query to Dremio Cloud.
14
-
15
-
* The following example requires you to create a [Personal Access Token](https://docs.dremio.com/cloud/security/authentication/personal-access-token/) in Dremio. Replace ```<INSERT PAT HERE>``` in the example below with your actual PAT token.
16
-
* You may need to wait for a Dremio engine to start up or start it manually if no Dremio engine for your Organization is running.
17
-
18
-
This example queries the Dremio Sample dataset ```NYC-taxi-trips``` and returns the first 10 values.
19
-
20
-
```python3 example.py -host data.dremio.cloud -port 443 -pat '<INSERT PAT HERE>' -tls -query 'SELECT * FROM Samples."samples.dremio.com"."NYC-taxi-trips" limit 10'```
21
-
22
-
You have now run your first Flight query on Dremio Cloud!
4
+
This lightweight Python client application connects to the Dremio Arrow Flight server endpoint. Developers can use token based or regular user credentials (username/password) for authentication. Please note username/password is not supported for Dremio Cloud. Any datasets in Dremio that are accessible by the provided Dremio user can be queried. By default, the hostname is `localhost` and the port is `32010`. Developers can change these default settings by providing the hostname and port as arguments when running the client.
5
+
Moreover, the tls option can be provided to establish an encrypted connection.
23
6
24
-
## Configuration Options
7
+
### Instructions on using this Python sample application
8
+
- Install and setup Python3 as `pyarrow` requires Python3
9
+
- This application also requires `pyarrow` and `pandas`. Consider one of the dependency installation methods below. We recommend using `conda` for its ease of use.
Key value pairs of SessionProperty, example: -sessionProperties schema='Samples."samples.dremio.com"'
52
43
-engine ENGINE, --engine ENGINE
53
-
The specific engine to run against. Only applicable to Dremio Cloud.
44
+
The specific engine to run against.
45
+
```
54
46
47
+
### Getting Started
48
+
49
+
Get started with your first query to Dremio Cloud.
50
+
51
+
* The following example requires you to create a [Personal Access Token](https://docs.dremio.com/software/security/personal-access-tokens/) in Dremio. Replace ```<INSERT PAT HERE>``` in the example below with your actual PAT token.
52
+
* You may need to wait for a Dremio engine to start up if no Dremio engine for your Organization is running.
53
+
54
+
This example queries the Dremio Sample dataset ```NYC-taxi-trips``` and returns the first 10 values.
55
+
56
+
```python3 example.py -host data.dremio.cloud -port 443 -pat '<INSERT PAT HERE>' -tls -query 'SELECT * FROM Samples."samples.dremio.com"."NYC-taxi-trips" limit 10'```
57
+
58
+
Running the command will return the following.
59
+
60
+
```[INFO] Enabling TLS connection
61
+
[INFO] Trusted certificates provided
62
+
[INFO] Authentication skipped until first request
63
+
[INFO] Query: SELECT * FROM Samples."samples.dremio.com"."NYC-taxi-trips" limit 10
64
+
[INFO] GetSchema was successful
65
+
[INFO] Schema: <pyarrow._flight.SchemaResult object at 0x7febe2944610>
66
+
[INFO] GetFlightInfo was successful
67
+
[INFO] Ticket: <Ticket b'\nDSELECT * FROM Samples."samples.dremio.com"."NYC-taxi-trips" limit 10\x12^\n\\\nDSELECT * FROM Samples."samples.dremio.com"."NYC-taxi-trips" limit 10\x10(\x1a\x12\t\x8a\x883#\x12\xd1\xd9\x1d\x11\x00\xb3\xbbC\xdb\xd9J\t'>
This lightweight Python client application connects to the Dremio Arrow Flight server endpoint. Developers can use token based or regular user credentials (username/password) for authentication. Please note username/password is not supported for Dremio Cloud. Any datasets in Dremio that are accessible by the provided Dremio user can be queried. By default, the hostname is `localhost` and the port is `32010`. Developers can change these default settings by providing the hostname and port as arguments when running the client.
60
-
Moreover, the tls option can be provided to establish an encrypted connection.
82
+
You have now run your first Flight query on Dremio Cloud!
0 commit comments