Skip to content

Commit

Permalink
Use topics in public/default namespaces for kafka ProducerExample and…
Browse files Browse the repository at this point in the history
… ConsumerExample (apache#3401)

Update ProducerExample and ConsumerExample to use topics in public/default namespace.
  • Loading branch information
ambition119 authored and sijie committed Jan 25, 2019
1 parent 14390da commit 3255957
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class ConsumerExample {

public static void main(String[] args) {
String topic = "persistent://prop/ns-abc/my-topic";
String topic = "persistent://public/default/test";

Properties props = new Properties();
props.put("bootstrap.servers", "pulsar://localhost:6650");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

public class ProducerExample {
public static void main(String[] args) {
String topic = "persistent://prop/ns-abc/my-topic";
String topic = "persistent://public/default/test";

Properties props = new Properties();
props.put("bootstrap.servers", "pulsar://localhost:6650");
Expand Down

0 comments on commit 3255957

Please sign in to comment.