Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to read from two kafka topics with hive integration? #295

Closed
praneethh opened this issue Mar 9, 2018 · 4 comments
Closed

How to read from two kafka topics with hive integration? #295

praneethh opened this issue Mar 9, 2018 · 4 comments

Comments

@praneethh
Copy link

praneethh commented Mar 9, 2018

We have deployed connector to read from one topic and load into hdfs with hive integration. Now we have a usecase to read from 2 different topics, so I gave two topics in the topics parameter with comma separated. I can see that connector is able to create two separate folders with topic names but hive external table is unable to read since there are two different directories now. What changes do I need to make so that both topics data goes into same hive table. Any ideas to resolve this issue will be helpful. @Cricket007 @ewencp

@OneCricketeer
Copy link

both topics data goes into same hive table

That's not how it works, unfortunately.

I would suggest you join the topics upstream, or create a Hive view that unions the tables downstream

@praneethh
Copy link
Author

thanks

@OneCricketeer
Copy link

@praneethh If your topic names are similar you can route both to the same hive as mentioned in this comment

@praneethh
Copy link
Author

thanks @Cricket007 the two topics have few characters in common, I will look into the RegexpRouter and leverage in this use case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants