From 39ecb9929d48714a073edad779b3f9be440300f3 Mon Sep 17 00:00:00 2001 From: Parag Jain Date: Sun, 28 Feb 2016 17:41:33 -0600 Subject: [PATCH] how to query, correct default for select strategy, formatting --- docs/content/configuration/indexing-service.md | 8 ++++---- docs/content/querying/joins.md | 3 +-- docs/content/querying/querying.md | 7 ++++++- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/content/configuration/indexing-service.md b/docs/content/configuration/indexing-service.md index 43cd484b44f..991664705d6 100644 --- a/docs/content/configuration/indexing-service.md +++ b/docs/content/configuration/indexing-service.md @@ -184,7 +184,7 @@ Workers are assigned tasks until capacity. |Property|Description|Default| |--------|-----------|-------| -|`type`|`fillCapacity`.|fillCapacity| +|`type`|`fillCapacity`.|required; must be `fillCapacity`| ##### Fill Capacity With Affinity @@ -192,7 +192,7 @@ An affinity config can be provided. |Property|Description|Default| |--------|-----------|-------| -|`type`|`fillCapacityWithAffinity`.|fillCapacityWithAffinity| +|`type`|`fillCapacityWithAffinity`.|required; must be `fillCapacityWithAffinity`| |`affinity`|JSON object mapping a datasource String name to a list of indexing service middle manager host:port String values. Druid doesn't perform DNS resolution, so the 'host' value must match what is configured on the middle manager and what the middle manager announces itself as (examine the Overlord logs to see what your middle manager announces itself as).|{}| Tasks will try to be assigned to preferred workers. Fill capacity strategy is used if no preference for a datasource specified. @@ -203,7 +203,7 @@ The workers with the least amount of tasks is assigned the task. |Property|Description|Default| |--------|-----------|-------| -|`type`|`equalDistribution`.|fillCapacity| +|`type`|`equalDistribution`.|required; must be `equalDistribution`| ##### Javascript @@ -216,7 +216,7 @@ its better to write a druid extension module with extending current worker selec |Property|Description|Default| |--------|-----------|-------| -|`type`|`javascript`.|javascript| +|`type`|`javascript`.|required; must be `javascript`| |`function`|String representing javascript function|| Example: a function that sends batch_index_task to workers 10.0.0.1 and 10.0.0.2 and all other tasks to other available workers. diff --git a/docs/content/querying/joins.md b/docs/content/querying/joins.md index 375d0bc065c..b4a09a74a4b 100644 --- a/docs/content/querying/joins.md +++ b/docs/content/querying/joins.md @@ -4,8 +4,7 @@ layout: doc_page # Joins Druid has limited support for joins through [query-time lookups](../querying/lookups.html). The common use case of -query-time lookups is to replace one dimension value that (e.g. a String ID) with another value (e.g. a human-readable -String value). This is similar a star-schema join. +query-time lookups is to replace one dimension value (e.g. a String ID) with another value (e.g. a human-readable String value). This is similar to a star-schema join. Druid does not yet have full support for joins. Although Druid’s storage format would allow for the implementation of joins (there is no loss of fidelity for columns included as dimensions), full support for joins have not yet been implemented yet diff --git a/docs/content/querying/querying.md b/docs/content/querying/querying.md index d9ef27f8119..4f090e8c0c6 100644 --- a/docs/content/querying/querying.md +++ b/docs/content/querying/querying.md @@ -8,7 +8,12 @@ Querying Queries are made using an HTTP REST style request to queryable nodes ([Broker](../design/broker.html), [Historical](../design/historical.html), or [Realtime](../design/realtime.html)). The query is expressed in JSON and each of these node types expose the same -REST query interface. For normal Druid operations, queries should be issued to the broker nodes. +REST query interface. For normal Druid operations, queries should be issued to the broker nodes. Queries can be posted +to the queryable nodes like this - + + ```bash + curl -X POST ':/druid/v2/?pretty' -H 'Content-Type:application/json' -d @ + ``` Druid's native query language is JSON over HTTP, although many members of the community have contributed different [client libraries](../development/libraries.html) in other languages to query Druid.