Skip to content

tspannhw/spring-pulsar-bertqa

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

spring-pulsar-bertqa

Timothy Spann

New Spring Module for Apache Pulsar

This uses https://github.com/spring-projects-experimental/spring-pulsar

Setup

  • Visual Code with Spring Boot v3.0.0-M4 & Java 17.0.4.1
  • Apache Pulsar Version 2.10.1 works with 2.9.1+
  • Set an environment variable with your api key code from airnow
  • Point to your Apache Pulsar cluster, if you are using StreamNative cloud I have SSL and configuration in the config class

src/main/resources/application.yml


spring:
    pulsar:
      client:
#        service-url: pulsar+ssl://sn-academy.sndevadvocate.snio.cloud:6651
#        auth-plugin-class-name: org.apache.pulsar.client.impl.auth.oauth2.AuthenticationOAuth2
#        authentication:
#          issuer-url: https://auth.streamnative.cloud/
#          private-key: file:///Users/tspann/Downloads/sndevadvocate-tspann.json
#          audience: urn:sn:pulsar:sndevadvocate:my-instance
        service-url: pulsar://pulsar1:6650
      producer:
        batching-enabled: false
        send-timeout-ms: 90000
        producer-name: airqualityspringboot
        topic-name: persistent://public/default/airquality

logging:
  level:
    org.apache.pulsar: error
    root: info
    ROOT: info
    dev.datainmotion.bertqa: info

server.port: 8799   

App Run

About

Spring 3 / Spring Boot / Apache Pulsar 2.10 / DJL.AI Bert-QA / Sentiment analytsis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published