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
102: Discovery r=fhennig a=fhennig
## Description
- Added discovery to druid: The SQL connect string is written to a config map
- Fixed the role services - they were referencing a port by name that doesn't have that name anymore
Co-authored-by: Felix Hennig <[email protected]>
Co-authored-by: Felix Hennig <[email protected]>
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/usage.adoc
+11-3
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Then a cluster can be deployed using the example below. Make sure you have *exac
37
37
apiVersion: druid.stackable.tech/v1alpha1
38
38
kind: DruidCluster
39
39
metadata:
40
-
name: simple
40
+
name: simple-druid
41
41
spec:
42
42
version: 0.22.0
43
43
zookeeperReference: simple-zk
@@ -79,7 +79,7 @@ spec:
79
79
config: {}
80
80
replicas: 1
81
81
82
-
The Router is hosting the web UI, a `NodePort` service is created by the operator to access the web UI. Connect to the `simple-router` `NodePort` service and follow the https://druid.apache.org/docs/latest/tutorials/index.html#step-4-load-data[druid documentation] on how to load and query sample data.
82
+
The Router is hosting the web UI, a `NodePort` service is created by the operator to access the web UI. Connect to the `simple-druid-router` `NodePort` service and follow the https://druid.apache.org/docs/latest/tutorials/index.html#step-4-load-data[druid documentation] on how to load and query sample data.
83
83
84
84
== Using S3
85
85
@@ -106,4 +106,12 @@ This allows to ingest data from accessible buckets already. To configure a bucke
106
106
deepStorage:
107
107
storageType: s3
108
108
bucket: druid-deepstorage
109
-
baseKey: storage # the base key is the prefix to be used; optional
109
+
baseKey: storage # the base key is the prefix to be used; optional
110
+
111
+
== Connecting to Druid from other Services
112
+
113
+
The operator creates a `ConfigMap` with the name of the cluster which contains connection information. Following our example above (the name of the cluster is `simple-druid`) a `ConfigMap` with the name `simple-druid` will be created containing 3 keys:
114
+
115
+
- `DRUID_ROUTER` with the format `<host>:<port>`, which points to the router processes HTTP endpoint. Here you can connect to the web UI, or use REST endpoints such as `/druid/v2/sql/` to query data. https://druid.apache.org/docs/latest/querying/sql.html#http-post[More information in the Druid Docs].
116
+
- `DRUID_AVATICA_JDBC` contains a JDBC connect string which can be used together with the https://calcite.apache.org/avatica/downloads/[Avatica JDBC Driver] to connect to Druid and query data. https://druid.apache.org/docs/latest/querying/sql.html#jdbc[More information in the Druid Docs].
117
+
- `DRUID_SQALCHEMY` contains a connection string used to connect to Druid with SQAlchemy, in - for example - Apache Superset.
0 commit comments