Giter Club home page Giter Club logo

genericstreamexample's Introduction

genericStreamExample

Consumer and Producer static/void/mains for Apache Pulsar, using a Generic schema approach.

The pom.xml is set up to recognize AutoConsumeSchemaConsumerExample.java as the main. Ensure that Apache Pulsar is running locally. Topics will be created at runtime, if they do not exist. This example will require you to manually produce messages which match a "payment" schema.

Running the AutoConsumeSchemaConsumerExample from outside an IDE requires the following steps:

% mvn clean install

This should compile the Java classes and build the pulsarstuff-0.0.1-SNAPSHOT-jar-with-dependencies.jar file. Note that Maven will put the compiled jar into the target/ directory. Running the jar should produce output similar to this:

% java -jar target/pulsarstuff-0.0.1-SNAPSHOT-jar-with-dependencies.jar

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Jul 29, 2022 8:58:55 AM org.apache.pulsar.shade.io.netty.resolver.dns.DnsServerAddressStreamProviders <clinit>
WARNING: Can not find org.apache.pulsar.shade.io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider in the classpath, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS.
Jul 29, 2022 8:58:55 AM org.apache.pulsar.shade.io.netty.resolver.dns.DefaultDnsServerAddressStreamProvider <clinit>
WARNING: Default DNS servers: [/2001:4860:4860:0:0:0:0:8888:53, /2001:4860:4860:0:0:0:0:8844:53] (Google Public DNS as a fallback)
key = , value = {"order_code": "", "email_id": %s, "platform": %s, "phone": %s, "state": %s, "products": %d , "username": %s}"
key = id-0, value = {"order_code": ...

genericstreamexample's People

Contributors

aar0np avatar

Watchers

Aaron Ploetz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.