2016-11-16 03:36:45 -05:00
|
|
|
---
|
|
|
|
layout: doc_page
|
|
|
|
---
|
|
|
|
|
|
|
|
# Google Cloud Storage
|
|
|
|
|
|
|
|
To use this extension, make sure to [include](../../operations/including-extensions.html) `druid-google-extensions` extension.
|
|
|
|
|
|
|
|
## Deep Storage
|
|
|
|
|
|
|
|
[Google Cloud Storage](https://cloud.google.com/storage/) is another option for deep storage. This requires some additional druid configuration.
|
|
|
|
|
|
|
|
|Property|Description|Default|Required?|
|
|
|
|
|--------|-----------|-------|---------|
|
|
|
|
|bucket|Name of the Google Cloud bucket|N/A|yes|
|
2017-02-06 05:22:17 -05:00
|
|
|
|prefix|The path where data is located.|N/A|yes|
|
2016-11-16 03:36:45 -05:00
|
|
|
|
|
|
|
## Firehose
|
|
|
|
|
|
|
|
#### StaticGoogleBlobStoreFirehose
|
|
|
|
|
|
|
|
This firehose ingests events, similar to the StaticS3Firehose, but from an Google Cloud Store.
|
|
|
|
|
|
|
|
As with the S3 blobstore, it is assumed to be gzipped if the extension ends in .gz
|
|
|
|
|
|
|
|
Sample spec:
|
|
|
|
|
|
|
|
```json
|
|
|
|
"firehose" : {
|
|
|
|
"type" : "static-google-blobstore",
|
|
|
|
"blobs": [
|
|
|
|
{
|
|
|
|
"bucket": "foo",
|
|
|
|
"path": "/path/to/your/file.json"
|
|
|
|
},
|
|
|
|
{
|
2017-02-06 05:22:17 -05:00
|
|
|
"bucket": "bar",
|
2016-11-16 03:36:45 -05:00
|
|
|
"path": "/another/path.json"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2017-05-18 02:37:18 -04:00
|
|
|
This firehose provides caching and prefetching features. In IndexTask, a firehose can be read twice if intervals or
|
|
|
|
shardSpecs are not specified, and, in this case, caching can be useful. Prefetching is preferred when direct scan of objects is slow.
|
|
|
|
|
2016-11-16 03:36:45 -05:00
|
|
|
|property|description|default|required?|
|
|
|
|
|--------|-----------|-------|---------|
|
2017-05-18 02:37:18 -04:00
|
|
|
|type|This should be `static-google-blobstore`.|N/A|yes|
|
2016-11-16 03:36:45 -05:00
|
|
|
|blobs|JSON array of Google Blobs.|N/A|yes|
|
2017-05-18 02:37:18 -04:00
|
|
|
|maxCacheCapacityBytes|Maximum size of the cache space in bytes. 0 means disabling cache.|1073741824|no|
|
|
|
|
|maxFetchCapacityBytes|Maximum size of the fetch space in bytes. 0 means disabling prefetch.|1073741824|no|
|
|
|
|
|prefetchTriggerBytes|Threshold to trigger prefetching Google Blobs.|maxFetchCapacityBytes / 2|no|
|
|
|
|
|fetchTimeout|Timeout for fetching a Google Blob.|60000|no|
|
|
|
|
|maxFetchRetry|Maximum retry for fetching a Google Blob.|3|no|
|
2016-11-16 03:36:45 -05:00
|
|
|
|
|
|
|
Google Blobs:
|
|
|
|
|
|
|
|
|property|description|default|required?|
|
|
|
|
|--------|-----------|-------|---------|
|
|
|
|
|bucket|Name of the Google Cloud bucket|N/A|yes|
|
|
|
|
|path|The path where data is located.|N/A|yes|
|
|
|
|
|