0

I’m new to Pulsar!

Now, I am trying to implement these codes( https://flink.apache.org/2019/05/03/pulsar-flink.html ) in Scala. However, I can’t find some classes(e.g. PulsarSourceBuild). How can I do them in Scala? Where should I check?

fhussonnois
  • 1,607
  • 12
  • 23
xksa
  • 87
  • 1
  • 8

1 Answers1

0

PulsarSourceBuilder is from Pulsar

I'd suggest adding this to your pom:

<dependency>
    <groupId>org.apache.pulsar</groupId>
    <artifactId>pulsar-flink</artifactId>
    <version>2.6.0</version>
</dependency>
BenoitParis
  • 3,166
  • 4
  • 29
  • 56
  • I think this is deprecated, so should I not use it? https://mvnrepository.com/artifact/org.apache.pulsar/pulsar-flink – xksa Jul 28 '20 at 09:35
  • PulsarSourceBuilder is indeed from that (recently) deprecated lib. Don't know what to use for now. Maybe use the connect API like here: https://cwiki.apache.org/confluence/display/FLINK/FLIP-72%3A+Introduce+Pulsar+Connector – BenoitParis Jul 28 '20 at 10:20
  • @DIOHABARA I think they will be replacing it with https://github.com/streamnative/pulsar-flink. If I were you, I'd use the deprecated version and wait until it is merged into Flink mainline. – BenoitParis Jul 28 '20 at 10:22