flix-tech / webfleet-kafka-connector

This is a kafka connector consuming messages from TomTom webfleet API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webfleet Kafka Connector compilation

geopamplona opened this issue · comments

good morning
I'm trying to compile and run the connector in kafka
I had a doubt regarding the documentation; it specifies that "schema registry" is necessary, but how is it configured with the connector?
Is any additional configuration necessary to use the connector?

I compile the connector with the following command lines:
sbt
run build

However, after compiling I get the following error:

sbt: webfleedKafkaConnector> run build
[warn] Credentials file .credentials does not exist
[info] Packaging GitHub \ webfleet-kafka-connector \ target \ scala-2.12 \ webfleedkafkaconnector_2.12-0.0.1.jar ...
[info] Done packaging.
[error] java.lang.RuntimeException: No main class detected.
[error] at scala.sys.package $ .error (package.scala: 27)
[error] at sbt.Defaults $. $ anonfun $ bgRunTask $ 4 (Defaults.scala: 1146)
[error] at scala.Option.getOrElse (Option.scala: 121)
[error] at sbt.Defaults $. $ anonfun $ bgRunTask $ 3 (Defaults.scala: 1146)
[error] at scala.Function1. $ anonfun $ compose $ 1 (Function1.scala: 44)
[error] at sbt.internal.util. $ tilde $ greater. $ anonfun $$ u2219 $ 1 (TypeFunctions.scala: 42)
[error] at sbt.std.Transform $$ anon $ 4.work (System.scala: 64)
[error] at sbt.Execute. $ anonfun $ submit $ 2 (Execute.scala: 257)
[error] at sbt.internal.util.ErrorHandling $ .wideConvert (ErrorHandling.scala: 16)
[error] at sbt.Execute.work (Execute.scala: 266)
[error] at sbt.Execute. $ anonfun $ submit $ 1 (Execute.scala: 257)
[error] at sbt.ConcurrentRestrictions $$ anon $ 4. $ anonfun $ submitValid $ 1 (ConcurrentRestrictions.scala: 167)
[error] at sbt.CompletionService $$ anon $ 2.call (CompletionService.scala: 32)
[error] at java.util.concurrent.FutureTask.run (Unknown Source)
[error] at java.util.concurrent.Executors $ RunnableAdapter.call (Unknown Source)
[error] at java.util.concurrent.FutureTask.run (Unknown Source)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker (Unknown Source)
[error] at java.util.concurrent.ThreadPoolExecutor $ Worker.run (Unknown Source)
[error] at java.lang.Thread.run (Unknown Source)
[error] (compile: bgRun) No main class detected.
[error] Total time: 3 s, completed Mar 20, 2018 12:57:36

and generates the file webfleedkafkaconnector_2.12-0.0.1.jar
Should I generate another additional file?

I use this file in kafka-connect but it does not recognize it as a connector

Also in the configuration webfleet parameters, should not include the api key?

Thank you

edit 22/03/2018:
it is impossible for me to correctly install the connector
kafka-conect does not recognize it or load it
Could you distribute a new compiled release, ready to be used?

thanks !