Skip to content

Register lookup module with overlord and middle manager.#7082

Closed
scrawfor wants to merge 3 commits intoapache:masterfrom
scrawfor:register-lookup-module
Closed

Register lookup module with overlord and middle manager.#7082
scrawfor wants to merge 3 commits intoapache:masterfrom
scrawfor:register-lookup-module

Conversation

@scrawfor
Copy link
Copy Markdown
Contributor

Fixes #5727. Allows index documents with lookup functions.

One possible issue with this change is that with default settings, the middle manager attempts to load the lookup maps. With the low default memory settings, this very quickly causes out of memory errors. The following configuration items are necessary to prevent that from happening. I added this to the examples, but I feel like it might need a better fix.

# Disable lookups on middleManager, but enable on peon.
druid.lookup.enableLookupSyncOnStartup=false
druid.indexer.fork.property.druid.lookup.enableLookupSyncOnStartup=true

@fjy fjy added this to the 0.15.0 milestone Mar 11, 2019
new IndexingServiceFirehoseModule(),
new IndexingServiceTaskLogsModule()
new IndexingServiceTaskLogsModule(),
new LookupModule()
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.

#7222 introduces LookupSerdeModule which I think might be nicer behavior for middle manager and overlord than using LookupModule and configuring it not to load, but it will require this PR to wait until the other is merged.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@scrawfor #7222 was merged, can you please rebase when you get a chance?

@scrawfor
Copy link
Copy Markdown
Contributor Author

scrawfor commented Apr 25, 2019 via email

@jon-wei
Copy link
Copy Markdown
Contributor

jon-wei commented Apr 25, 2019

@scrawfor cool, thanks!

@jihoonson
Copy link
Copy Markdown
Contributor

@scrawfor thanks for working on this. I'm untagging milestone since this issue is not necessarily a release blocker. Feel free to let me know if you think this should be.

@jihoonson jihoonson removed this from the 0.15.0 milestone May 7, 2019
gianm added a commit to gianm/druid that referenced this pull request May 24, 2019
This includes the router, overlord, middleManager, and coordinator.
Does the following things:

- Loads LookupSerdeModule on MM, overlord, and coordinator.
- Adds LookupExprMacro to LookupSerdeModule, which allows these node
  types to understand that the 'lookup' function exists.
- Adds a test to make sure that LookupSerdeModule works for virtual
  columns, filters, transforms, and dimension specs.

This is implementing the technique discussed on these two issues:

- apache#7724 (comment)
- apache#7082 (comment)
fjy pushed a commit that referenced this pull request May 24, 2019
This includes the router, overlord, middleManager, and coordinator.
Does the following things:

- Loads LookupSerdeModule on MM, overlord, and coordinator.
- Adds LookupExprMacro to LookupSerdeModule, which allows these node
  types to understand that the 'lookup' function exists.
- Adds a test to make sure that LookupSerdeModule works for virtual
  columns, filters, transforms, and dimension specs.

This is implementing the technique discussed on these two issues:

- #7724 (comment)
- #7082 (comment)
gianm added a commit to implydata/druid-public that referenced this pull request May 24, 2019
This includes the router, overlord, middleManager, and coordinator.
Does the following things:

- Loads LookupSerdeModule on MM, overlord, and coordinator.
- Adds LookupExprMacro to LookupSerdeModule, which allows these node
  types to understand that the 'lookup' function exists.
- Adds a test to make sure that LookupSerdeModule works for virtual
  columns, filters, transforms, and dimension specs.

This is implementing the technique discussed on these two issues:

- apache#7724 (comment)
- apache#7082 (comment)
gianm added a commit to gianm/druid that referenced this pull request May 27, 2019
This includes the router, overlord, middleManager, and coordinator.
Does the following things:

- Loads LookupSerdeModule on MM, overlord, and coordinator.
- Adds LookupExprMacro to LookupSerdeModule, which allows these node
  types to understand that the 'lookup' function exists.
- Adds a test to make sure that LookupSerdeModule works for virtual
  columns, filters, transforms, and dimension specs.

This is implementing the technique discussed on these two issues:

- apache#7724 (comment)
- apache#7082 (comment)
fjy pushed a commit that referenced this pull request May 27, 2019
This includes the router, overlord, middleManager, and coordinator.
Does the following things:

- Loads LookupSerdeModule on MM, overlord, and coordinator.
- Adds LookupExprMacro to LookupSerdeModule, which allows these node
  types to understand that the 'lookup' function exists.
- Adds a test to make sure that LookupSerdeModule works for virtual
  columns, filters, transforms, and dimension specs.

This is implementing the technique discussed on these two issues:

- #7724 (comment)
- #7082 (comment)
jihoonson pushed a commit to implydata/druid-public that referenced this pull request Jun 4, 2019
…apache#7767)

This includes the router, overlord, middleManager, and coordinator.
Does the following things:

- Loads LookupSerdeModule on MM, overlord, and coordinator.
- Adds LookupExprMacro to LookupSerdeModule, which allows these node
  types to understand that the 'lookup' function exists.
- Adds a test to make sure that LookupSerdeModule works for virtual
  columns, filters, transforms, and dimension specs.

This is implementing the technique discussed on these two issues:

- apache#7724 (comment)
- apache#7082 (comment)
@scrawfor
Copy link
Copy Markdown
Contributor Author

@jihoonson Sorry for the lack of response, but that's fine. I haven't had much time these last few weeks, but I should now. I'll rebase and make the changes soon.

@scrawfor
Copy link
Copy Markdown
Contributor Author

scrawfor commented Jun 17, 2019

Actually, it looks like this was resolved with #7752. I think this can be closed.

@scrawfor scrawfor closed this Jun 17, 2019
jihoonson pushed a commit to implydata/druid-public that referenced this pull request Jun 26, 2019
This includes the router, overlord, middleManager, and coordinator.
Does the following things:

- Loads LookupSerdeModule on MM, overlord, and coordinator.
- Adds LookupExprMacro to LookupSerdeModule, which allows these node
  types to understand that the 'lookup' function exists.
- Adds a test to make sure that LookupSerdeModule works for virtual
  columns, filters, transforms, and dimension specs.

This is implementing the technique discussed on these two issues:

- apache#7724 (comment)
- apache#7082 (comment)
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.

Lookup module not registered with overlord

6 participants