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

Added avro producer for data gen for the new schema registry integrat… #544

Merged
merged 3 commits into from
Dec 19, 2017

Conversation

hjafarpour
Copy link
Contributor

…ion.
This PR adds a new Avro Producer that will generate sample data based on our latest avro support with schema registry integration. The default sr url is localhost:8081 but can be set as a command line parameter using schemaregistryurl argument.

@@ -296,6 +307,9 @@ public Builder parseArg(String arg) throws IOException {
case "maxInterval":
maxInterval = parseIterations(argValue);
break;
case "schemaregistryurl":
schemaregistryurl = schemaregistryurl;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be argValue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, updated it. Thanks.

Copy link
Contributor

@rodesai rodesai left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@apurvam apurvam left a comment

Choose a reason for hiding this comment

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

It looks like that with this change, we can make the pageviews topic in the quickstart be Avro by setting 'format=avro schemaRegistryURL=http://schema-registry:8081` in the docker-compose.yml file?

That's pretty cool!

@@ -296,6 +307,9 @@ public Builder parseArg(String arg) throws IOException {
case "maxInterval":
maxInterval = parseIterations(argValue);
break;
case "schemaregistryurl":
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be camel case to be consistent with the other arguments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the name.

Copy link
Contributor

@apurvam apurvam left a comment

Choose a reason for hiding this comment

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

LGTM!

@hjafarpour hjafarpour merged commit f80e232 into confluentinc:master Dec 19, 2017
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

Successfully merging this pull request may close these issues.

3 participants