Skip to content

Improve compaction tutorial to demonstrate compaction with keepSegmentGranularity = true#7079

Merged
clintropolis merged 3 commits intoapache:masterfrom
jihoonson:compaction-tutorial
Feb 28, 2019
Merged

Improve compaction tutorial to demonstrate compaction with keepSegmentGranularity = true#7079
clintropolis merged 3 commits intoapache:masterfrom
jihoonson:compaction-tutorial

Conversation

@jihoonson
Copy link
Copy Markdown
Contributor

The current tutorial demonstrates the compaction with keepSegmentGranularity = false, but it's not recommended and a deprecated behavior. This PR changes it to when keepSegmentGranularity = true.

@jihoonson jihoonson added this to the 0.14.0 milestone Feb 14, 2019
Copy link
Copy Markdown
Member

@clintropolis clintropolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice example 👍

## Load the initial data

For this tutorial, we'll be using the Wikipedia edits sample data, with an ingestion task spec that will create a separate segment for each hour in the input data.
For this tutorial, we'll be using the Wikipedia edits sample data, with an ingestion task spec that will create 1-3 segments per hour in the input data.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for the link to segment sizing optimization above, but it would maybe also be worth mentioning that these settings are artificially constrained to produce extra segments so that the example data can be used for the compaction example. I don't think it's required though, so up to you if you modify this section.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense. Will add.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added. Thanks!

@clintropolis clintropolis merged commit 6b232d8 into apache:master Feb 28, 2019
@glasser
Copy link
Copy Markdown
Contributor

glasser commented Feb 28, 2019

Should the tutorial also link to the docs on setting up automatic compaction?

jon-wei pushed a commit to jon-wei/druid that referenced this pull request Feb 28, 2019
…tGranularity = true (apache#7079)

* Improve compaction tutorial to demonstrate compaction with keepSegmentGranularity = true

* typo

* add a warning
jon-wei added a commit that referenced this pull request Feb 28, 2019
…tGranularity = true (#7079) (#7163)

* Improve compaction tutorial to demonstrate compaction with keepSegmentGranularity = true

* typo

* add a warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants