Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ This deep storage is used to interface with HDFS. You must load the `druid-hdfs-
|Property|Description|Default|
|--------|-----------|-------|
|`druid.storage.storageDirectory`|HDFS directory to use as deep storage.|none|
|`druid.storage.compressionFormat`|The compression format applied to segments uploaded to HDFS. Supports `zip`, `lz4`, and `none` (uncompressed directory layout).|zip|
|`druid.storage.compressionFormat`|The compression format applied to V9 and earlier segments uploaded to HDFS. Supports `zip`, `lz4`, and `none` (uncompressed directory layout). V10 segments are stored uncompressed regardless of this setting.|zip|

#### Cassandra deep storage

Expand Down Expand Up @@ -1429,6 +1429,7 @@ Additional Peon configs include:
|`druid.indexer.task.directoryLockTimeout`|Wait this long for zombie Peons to exit before giving up on their replacements.|PT10M|
|`druid.indexer.task.gracefulShutdownTimeout`|Wait this long on Middle Manager restart for restorable tasks to gracefully exit.|PT5M|
|`druid.indexer.task.restoreTasksOnRestart`|If true, Middle Managers will attempt to stop tasks gracefully on shutdown and restore them on restart.|false|
|`druid.indexer.task.buildV10`|Whether tasks build segments using the V10 segment format. This is the fallback for the [`buildV10`](../ingestion/tasks.md#context-parameters) task context parameter.|false|
|`druid.indexer.task.ignoreTimestampSpecForDruidInputSource`|If true, tasks using the [Druid input source](../ingestion/input-sources.md) will ignore the provided timestampSpec, and will use the `__time` column of the input datasource. This option is provided for compatibility with ingestion specs written before Druid 0.22.0.|false|
|`druid.indexer.task.storeEmptyColumns`|Boolean value for whether or not to store empty columns during ingestion. When set to true, Druid stores every column specified in the [`dimensionsSpec`](../ingestion/ingestion-spec.md#dimensionsspec). If you use the string-based schemaless ingestion and don't specify any dimensions to ingest, you must also set [`includeAllDimensions`](../ingestion/ingestion-spec.md#dimensionsspec) for Druid to store empty columns.<br/><br/>If you set `storeEmptyColumns` to false, Druid SQL queries referencing empty columns will fail. If you intend to leave `storeEmptyColumns` disabled, you should either ingest placeholder data for empty columns or else not query on empty columns.<br/><br/>You can overwrite this configuration by setting `storeEmptyColumns` in the [task context](../ingestion/tasks.md#context-parameters).|true|
|`druid.indexer.task.tmpStorageBytesPerTask`|Maximum number of bytes per task to be used to store temporary files on disk. This config is generally intended for internal usage. Attempts to set it are very likely to be overwritten by the TaskRunner that executes the task, so be sure of what you expect to happen before directly adjusting this configuration parameter. The config is documented here primarily to provide an understanding of what it means if/when someone sees that it has been set. A value of -1 disables this limit. |-1|
Expand Down Expand Up @@ -1492,6 +1493,7 @@ For most types of tasks, `SegmentWriteOutMediumFactory` can be configured per-ta
|`druid.indexer.task.baseTaskDir`|Base temporary working directory for tasks.|`${druid.indexer.task.baseDir}/persistent/tasks`|
|`druid.indexer.task.gracefulShutdownTimeout`|Wait this long on Indexer restart for restorable tasks to gracefully exit.|`PT5M`|
|`druid.indexer.task.restoreTasksOnRestart`|If true, the Indexer will attempt to stop tasks gracefully on shutdown and restore them on restart.|false|
|`druid.indexer.task.buildV10`|Whether tasks build segments using the V10 segment format. This is the fallback for the [`buildV10`](../ingestion/tasks.md#context-parameters) task context parameter.|false|
|`druid.indexer.task.ignoreTimestampSpecForDruidInputSource`|If true, tasks using the [Druid input source](../ingestion/input-sources.md) will ignore the provided timestampSpec, and will use the `__time` column of the input datasource. This option is provided for compatibility with ingestion specs written before Druid 0.22.0.|false|
|`druid.indexer.task.storeEmptyColumns`|Boolean value for whether or not to store empty columns during ingestion. When set to true, Druid stores every column specified in the [`dimensionsSpec`](../ingestion/ingestion-spec.md#dimensionsspec). <br/><br/>If you set `storeEmptyColumns` to false, Druid SQL queries referencing empty columns will fail. If you intend to leave `storeEmptyColumns` disabled, you should either ingest placeholder data for empty columns or else not query on empty columns.<br/><br/>You can overwrite this configuration by setting `storeEmptyColumns` in the [task context](../ingestion/tasks.md#context-parameters).|true|
|`druid.peon.taskActionClient.retry.minWait`|The minimum retry time to communicate with Overlord.|`PT5S`|
Expand Down
10 changes: 7 additions & 3 deletions docs/design/deep-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Deep storage is where segments are stored. It is a storage mechanism that Apach

In addition to being the backing store for segments, you can use [query from deep storage](#querying-from-deep-storage) and run queries against segments stored primarily in deep storage. The [load rules](../operations/rule-configuration.md#load-rules) you configure determine whether segments exist primarily in deep storage or in a combination of deep storage and Historical processes.

### V10 segment storage

Deep-storage compression settings apply to V9 and earlier segment formats. When a segment is built using the V10 format, these settings have no effect: V10 segments are stored in their uncompressed representation, regardless of the configured deep-storage compression format. The compression settings remain available for V9 and earlier segments.

## Deep storage options

Druid supports multiple options for deep storage, including blob storage from major cloud providers. Select the one that fits your environment.
Expand All @@ -49,8 +53,8 @@ The following configurations in `common.runtime.properties` apply to local stora
|--------|---------------|-----------|-------|
|`druid.storage.type`|`local`||Must be set.|
|`druid.storage.storageDirectory`|any local directory|Directory for storing segments. Must be different from `druid.segmentCache.locations` and `druid.segmentCache.infoDir`.|`/tmp/druid/localStorage`|
|`druid.storage.compressionFormat`|`none`, `zip`|The compression format applied to segments in `druid.storage.storageDirectory`. Supported values for local storage are `none` (store segment files directly as a directory without creating an archive) and `zip` (ZIP-compressed segment archive).|`none`|
|`druid.storage.zip`|`true`, `false`|Deprecated. Use `druid.storage.compressionFormat` instead. Whether segments in `druid.storage.storageDirectory` are written as directories (`false`) or zip files (`true`).|`false`|
|`druid.storage.compressionFormat`|`none`, `zip`|The compression format applied to V9 and earlier segments in `druid.storage.storageDirectory`. Supported values for local storage are `none` (store segment files directly as a directory without creating an archive) and `zip` (ZIP-compressed segment archive). V10 segments are stored uncompressed regardless of this setting.|`none`|
|`druid.storage.zip`|`true`, `false`|Deprecated. Use `druid.storage.compressionFormat` instead. For V9 and earlier segments, whether segments in `druid.storage.storageDirectory` are written as directories (`false`) or zip files (`true`). V10 segments are stored uncompressed regardless of this setting.|`false`|

For example:

Expand Down Expand Up @@ -86,4 +90,4 @@ For additional deep storage options, please see our [extensions list](../configu

Although not as performant as querying segments stored on disk for Historical processes, you can query from deep storage to access segments that you may not need frequently or with the extreme low latency Druid queries traditionally provide. You trade some performance for a total lower storage cost because you can access more of your data without the need to increase the number or capacity of your Historical processes.

For information about how to run queries, see [Query from deep storage](../querying/query-from-deep-storage.md).
For information about how to run queries, see [Query from deep storage](../querying/query-from-deep-storage.md).
4 changes: 2 additions & 2 deletions docs/development/extensions-core/azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ Configure where to store segments using the following properties:
| `druid.azure.maxTries` | Number of tries before canceling an Azure operation. | 3 |
| `druid.azure.protocol` | The protocol to use to connect to the Azure Storage account. Either `http` or `https`. | `https` |
| `druid.azure.storageAccountEndpointSuffix` | The Storage account endpoint to use. Override the default value to connect to [Azure Government](https://learn.microsoft.com/en-us/azure/azure-government/documentation-government-get-started-connect-to-storage#getting-started-with-storage-api) or storage accounts with [Azure DNS zone endpoints](https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview#azure-dns-zone-endpoints-preview).<br/><br/>Do _not_ include the storage account name prefix in this config value.<br/><br/>Examples: `ABCD1234.blob.storage.azure.net`, `blob.core.usgovcloudapi.net`. | `blob.core.windows.net` |
| `druid.storage.compressionFormat` | The compression format applied to segments in Azure Blob Storage deep storage. Supported values are `zip` and `none` (uncompressed directory of blobs). Writing segments unzipped requires permission to delete blobs under the segment path, so that a push replaces the segment already there. | `zip` |
| `druid.storage.zip` | Deprecated. Use `druid.storage.compressionFormat` instead. Whether segments are written as directories of blobs (`false`) or as a single `index.zip` blob (`true`). Writing segments unzipped requires permission to delete blobs under the segment path, so that a push replaces the segment already there. | `true` |
| `druid.storage.compressionFormat` | The compression format applied to V9 and earlier segments in Azure Blob Storage deep storage. Supported values are `zip` and `none` (uncompressed directory of blobs). V10 segments are stored uncompressed regardless of this setting. Writing segments unzipped requires permission to delete blobs under the segment path. | `zip` |
| `druid.storage.zip` | Deprecated. Use `druid.storage.compressionFormat` instead. For V9 and earlier segments, whether segments are written as directories of blobs (`false`) or as a single `index.zip` blob (`true`). V10 segments are stored uncompressed regardless of this setting. Writing segments unzipped requires permission to delete blobs under the segment path. | `true` |

#### Configure authentication

Expand Down
4 changes: 2 additions & 2 deletions docs/development/extensions-core/google.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ To configure connectivity to google cloud, run druid processes with `GOOGLE_APPL
|`druid.google.bucket`||Google Storage bucket name.|Must be set.|
|`druid.google.prefix`|A prefix string that will be prepended to the blob names for the segments published to Google deep storage| |""|
|`druid.google.maxListingLength`|maximum number of input files matching a given prefix to retrieve at a time| |1024|
|`druid.storage.compressionFormat`|The compression format applied to segments in Google Cloud Storage deep storage. Supported values are `zip` and `none` (uncompressed directory of objects). Writing segments unzipped requires permission to delete objects under the segment path, so that a push replaces the segment already there.|`zip`, `none`|`zip`|
|`druid.storage.zip`|Deprecated. Use `druid.storage.compressionFormat` instead. Whether segments are written as directories of objects (`false`) or as a single `index.zip` object (`true`). Writing segments unzipped requires permission to delete objects under the segment path, so that a push replaces the segment already there.|`true`, `false`|`true`|
|`druid.storage.compressionFormat`|The compression format applied to V9 and earlier segments in Google Cloud Storage deep storage. Supported values are `zip` and `none` (uncompressed directory of objects). V10 segments are stored uncompressed regardless of this setting. Writing segments unzipped requires permission to delete objects under the segment path.|`zip`, `none`|`zip`|
|`druid.storage.zip`|Deprecated. Use `druid.storage.compressionFormat` instead. For V9 and earlier segments, whether segments are written as directories of objects (`false`) or as a single `index.zip` object (`true`). V10 segments are stored uncompressed regardless of this setting. Writing segments unzipped requires permission to delete objects under the segment path.|`true`, `false`|`true`|
2 changes: 1 addition & 1 deletion docs/development/extensions-core/hdfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To use this Apache&circledR; Druid extension, [include](../../configuration/exte
|--------|---------------|-----------|-------|
|`druid.storage.type`|hdfs||Must be set.|
|`druid.storage.storageDirectory`||Directory for storing segments.|Must be set.|
|`druid.storage.compressionFormat`|`zip`, `lz4`, `none`|The compression format applied to segments in HDFS deep storage. Supported values are `zip` (ZIP-compressed segment archive), `lz4` (LZ4-compressed segment archive), and `none` (store segment files directly as a directory without creating an archive).|`zip`|
|`druid.storage.compressionFormat`|`zip`, `lz4`, `none`|The compression format applied to V9 and earlier segments in HDFS deep storage. Supported values are `zip` (ZIP-compressed segment archive), `lz4` (LZ4-compressed segment archive), and `none` (store segment files directly as a directory without creating an archive). V10 segments are stored uncompressed regardless of this setting.|`zip`|
|`druid.hadoop.security.kerberos.principal`|`druid@EXAMPLE.COM`| Principal user name |empty|
|`druid.hadoop.security.kerberos.keytab`|`/etc/security/keytabs/druid.headlessUser.keytab`|Path to keytab file|empty|

Expand Down
4 changes: 2 additions & 2 deletions docs/development/extensions-core/s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ To use S3 for Deep Storage, you must supply [connection information](#configurat
|`druid.storage.baseKey`|A prefix string that will be prepended to the object names for the segments published to S3 deep storage|Must be set.|
|`druid.storage.type`|Global deep storage provider. Must be set to `s3` to make use of this extension.|Must be set (likely `s3`).|
|`druid.storage.disableAcl`|Boolean flag for how object permissions are handled. To use ACLs, set this property to `false`. To use Object Ownership, set it to `true`. The permission requirements for ACLs and Object Ownership are different. For more information, see [S3 permissions settings](#s3-permissions-settings).|false|
|`druid.storage.compressionFormat`|The compression format applied to segments in S3 deep storage. Supported values are `zip` and `none` (uncompressed directory of objects). Writing segments as uncompressed objects requires `s3:DeleteObject` under the segment path, so that a push replaces the segment already there.|`zip`|
|`druid.storage.zip`|Deprecated. Use `druid.storage.compressionFormat` instead. Whether segments in `s3` are written as directories (`false`) or zip files (`true`).|`true`|
|`druid.storage.compressionFormat`|The compression format applied to V9 and earlier segments in S3 deep storage. Supported values are `zip` and `none` (uncompressed directory of objects). V10 segments are stored uncompressed regardless of this setting. Writing segments as uncompressed objects requires `s3:DeleteObject` under the segment path.|`zip`|
|`druid.storage.zip`|Deprecated. Use `druid.storage.compressionFormat` instead. For V9 and earlier segments, whether segments in `s3` are written as directories (`false`) or zip files (`true`). V10 segments are stored uncompressed regardless of this setting.|`true`|
|`druid.storage.transfer.useTransferManager`| If true, use AWS S3 Transfer Manager to upload segments to S3.|true|
|`druid.storage.transfer.minimumUploadPartSize`| Minimum size (in bytes) of each part in a multipart upload. Must be between 5242880 (5 MiB) and 5368709120 (5 GiB), the range S3 permits for every part except the last. Larger parts mean fewer requests per upload, which matters when many tasks write concurrently under one key prefix.|20971520 (20 MB)|
|`druid.storage.transfer.multipartUploadThreshold`| The file size threshold (in bytes) above which a file upload is converted into a multipart upload instead of a single PUT request.| 20971520 (20 MB)|
Expand Down
1 change: 1 addition & 0 deletions docs/ingestion/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ The following parameters apply to all task types.
|--------|-------|-----------|
|`forceTimeChunkLock`|_Setting this to false is still experimental._<br/> Force to use time chunk lock. When `true`, this parameter overrides the overlord runtime property `druid.indexer.tasklock.forceTimeChunkLock` [configuration for the overlord](../configuration/index.md#overlord-operations). If neither this parameter nor the runtime property is `true`, each task automatically chooses a lock type to use. See [Locking](#locking) for more details.|`true`|
|`priority`|Task priority|Depends on the task type. See [Priority](#priority) for more details.|
|`buildV10`|For tasks that build segments, controls whether they use the V10 segment format. When specified, this value overrides [`druid.indexer.task.buildV10`](../configuration/index.md#additional-peon-configuration) in either direction: `true` enables V10 and `false` selects V9. The value is propagated to worker tasks created by parallel ingestion, including MSQ ingestion.|The value of `druid.indexer.task.buildV10`|
|`storeCompactionState`|Enables the task to store the compaction state of created segments in the metadata store. When `true`, the segments created by the task fill `lastCompactionState` in the segment metadata. This parameter is set automatically on compaction tasks. |`true` for compaction tasks, `false` for other task types|
|`storeEmptyColumns`|Enables the task to store empty columns during ingestion. When `true`, Druid stores every column specified in the [`dimensionsSpec`](ingestion-spec.md#dimensionsspec). When `false`, Druid SQL queries referencing empty columns will fail. If you intend to leave `storeEmptyColumns` disabled, you should either ingest dummy data for empty columns or else not query on empty columns.<br/><br/>When set in the task context, `storeEmptyColumns` overrides the system property [`druid.indexer.task.storeEmptyColumns`](../configuration/index.md#additional-peon-configuration).|`true`|
|`taskLockTimeout`|Task lock timeout in milliseconds. For more details, see [Locking](#locking).<br/><br/>When a task acquires a lock, it sends a request via HTTP and awaits until it receives a response containing the lock acquisition result. As a result, an HTTP timeout error can occur if `taskLockTimeout` is greater than `druid.server.http.maxIdleTime` of Overlords.|300000|
Expand Down
Loading
Loading