Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

startingOffset issues: #38

Open
kashyapsodha opened this issue Apr 30, 2019 · 6 comments
Open

startingOffset issues: #38

kashyapsodha opened this issue Apr 30, 2019 · 6 comments

Comments

@kashyapsodha
Copy link

I tried executing the project locally using Spark Shell but facing issues with data displays in the terminal. In the default startingOffset setting which is 'latest', the output is a blank table but if I change the startingOffset setting to 'earliest', the output table does display 20-row output.
Please help me out.

@rhagarty
Copy link
Member

@ScrapCodes Can you please take a look?

@ScrapCodes
Copy link
Member

Did you push records after the kafka streaming job is started in spark shell, and waited for the processing duration?

@kashyapsodha
Copy link
Author

Are you referring to the tail command?
I executed the spark-shell inside the command line generated by the 'tail' command.

@ScrapCodes
Copy link
Member

Yes, tail command. You must execute it in another terminal, after the spark shell job has been submitted and you are waiting for the output.

@kashyapsodha
Copy link
Author

Executed as instructed but 'Batch: 0" displays nothing. Post-execution of tail command on another terminal got output.
Will the table update every time I execute the tail command or should it update automatically after the first tail command?
Also, how do I validate if the output is correct?

@ScrapCodes
Copy link
Member

ScrapCodes commented May 2, 2019

Thanks for letting us know, that you got output, after inserting the data using another terminal.

Table updates automatically.

In order to validate the output, try to manually insert each row using kafka console send, please see the documentation on kafka(https://kafka.apache.org/0102/documentation.html#quickstart_send).

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

No branches or pull requests

3 participants