I'm somewhat new to java development and am studying how to write producers. The sample code I'm looking at has the following import statements:

import kafka.javaapi.producer.Producer;
import kafka.producer.KeyedMessage;
import kafka.producer.ProducerConfig;

The thing is, he doesn't use any packages that contain these classes. You're supposed to use Gradle to compile the code but I'm not a whiz with Gradle yet. I'm guessing that Gradle is somehow importing the necessary classes at compile time. If I didn't want to use Gradle, how would I go about just getting Kafka packages with the classes I need? I can't seem to find them by googling.


Adaryl "Bob" Wakefield, MBA
Principal
Mass Street Analytics, LLC
913.938.6685
www.linkedin.com/in/bobwakefieldmba
Twitter: @BobLovesData

Reply via email to