Pulsar Functions :: Runtime Shaded

Pulsar is a distributed pub-sub messaging platform with a very flexible messaging model and an intuitive client API.

License

License

GroupId

GroupId

org.apache.pulsar
ArtifactId

ArtifactId

pulsar-functions-runtime-shaded
Last Version

Last Version

2.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

Pulsar Functions :: Runtime Shaded
Pulsar is a distributed pub-sub messaging platform with a very flexible messaging model and an intuitive client API.
Project Organization

Project Organization

Apache Software Foundation

Download pulsar-functions-runtime-shaded

How to add to project

<!-- https://jarcasting.com/artifacts/org.apache.pulsar/pulsar-functions-runtime-shaded/ -->
<dependency>
    <groupId>org.apache.pulsar</groupId>
    <artifactId>pulsar-functions-runtime-shaded</artifactId>
    <version>2.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.apache.pulsar/pulsar-functions-runtime-shaded/
implementation 'org.apache.pulsar:pulsar-functions-runtime-shaded:2.2.1'
// https://jarcasting.com/artifacts/org.apache.pulsar/pulsar-functions-runtime-shaded/
implementation ("org.apache.pulsar:pulsar-functions-runtime-shaded:2.2.1")
'org.apache.pulsar:pulsar-functions-runtime-shaded:jar:2.2.1'
<dependency org="org.apache.pulsar" name="pulsar-functions-runtime-shaded" rev="2.2.1">
  <artifact name="pulsar-functions-runtime-shaded" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.apache.pulsar', module='pulsar-functions-runtime-shaded', version='2.2.1')
)
libraryDependencies += "org.apache.pulsar" % "pulsar-functions-runtime-shaded" % "2.2.1"
[org.apache.pulsar/pulsar-functions-runtime-shaded "2.2.1"]

Dependencies

compile (77)

Group / Artifact Type Version
org.apache.pulsar : pulsar-common jar 2.2.1
org.lz4 : lz4-java jar 1.5.0
org.eclipse.jetty : jetty-util jar 9.3.11.v20160721
com.google.code.gson : gson jar 2.8.2
org.apache.pulsar : protobuf-shaded jar 2.1.0-incubating
org.apache.pulsar : pulsar-io-core jar 2.2.1
org.apache.pulsar : pulsar-client-schema jar 2.2.1
org.apache.avro : avro jar 1.8.2
org.codehaus.jackson : jackson-core-asl jar 1.9.13
org.codehaus.jackson : jackson-mapper-asl jar 1.9.13
com.thoughtworks.paranamer : paranamer jar 2.7
org.xerial.snappy : snappy-java jar 1.1.1.3
org.apache.commons : commons-compress jar 1.15
org.tukaani : xz jar 1.5
org.apache.avro : avro-protobuf jar 1.8.2
com.fasterxml.jackson.module : jackson-module-jsonSchema jar 2.8.4
javax.validation : validation-api jar 1.1.0.Final
org.apache.pulsar : pulsar-client-original jar 2.2.1
org.asynchttpclient : async-http-client jar 2.1.0-alpha26
org.asynchttpclient : async-http-client-netty-utils jar 2.1.0-alpha26
org.reactivestreams : reactive-streams jar 1.0.0
com.typesafe.netty : netty-reactive-streams jar 2.0.0
org.apache.httpcomponents : httpclient jar 4.5.5
org.apache.httpcomponents : httpcore jar 4.4.9
io.opencensus : opencensus-api jar 0.11.0
io.opencensus : opencensus-contrib-grpc-metrics jar 0.11.0
io.netty : netty-transport jar 4.1.22.Final
io.netty : netty-resolver jar 4.1.22.Final
io.netty : netty-codec-socks jar 4.1.22.Final
junit : junit jar 4.12
com.google.code.findbugs : jsr305 jar 3.0.2
com.yahoo.datasketches : sketches-core jar 0.8.3
com.yahoo.datasketches : memory jar 0.8.3
com.google.guava : guava jar 21.0
io.kubernetes : client-java jar 2.0.0
io.kubernetes : client-java-api jar 2.0.0
io.swagger : swagger-annotations jar 1.5.20
com.squareup.okhttp : logging-interceptor jar 2.7.5
joda-time : joda-time jar 2.9.3
io.kubernetes : client-java-proto jar 2.0.0
com.squareup.okhttp : okhttp-ws jar 2.7.5
org.bouncycastle : bcprov-ext-jdk15on jar 1.59
org.bouncycastle : bcpkix-jdk15on jar 1.55
org.bouncycastle : bcprov-jdk15on jar 1.55
org.apache.bookkeeper : bookkeeper-server jar 4.7.3
org.apache.bookkeeper : bookkeeper-common jar 4.7.3
org.apache.bookkeeper.stats : bookkeeper-stats-api jar 4.7.3
org.apache.bookkeeper : bookkeeper-proto jar 4.7.3
org.rocksdb : rocksdbjni jar 5.13.3
org.apache.zookeeper : zookeeper jar 3.4.13
jline : jline jar 0.9.94
org.apache.yetus : audience-annotations jar 0.5.0
io.netty : netty-tcnative-boringssl-static jar 2.0.7.Final
org.apache.bookkeeper.http : http-server jar 4.7.3
com.fasterxml.jackson.core : jackson-core jar 2.8.4
com.fasterxml.jackson.core : jackson-databind jar 2.8.4
com.fasterxml.jackson.core : jackson-annotations jar 2.8.4
org.apache.bookkeeper : circe-checksum jar 4.7.3
commons-cli : commons-cli jar 1.2
commons-codec : commons-codec jar 1.10
commons-io : commons-io jar 2.5
org.apache.commons : commons-lang3 jar 3.4
org.apache.commons : commons-collections4 jar 4.1
net.java.dev.jna : jna jar 4.2.0
org.slf4j : slf4j-api jar 1.7.25
commons-configuration : commons-configuration jar 1.6
commons-collections : commons-collections jar 3.2.2
commons-lang : commons-lang jar 2.4
commons-logging : commons-logging jar 1.1.1
commons-digester : commons-digester jar 1.8
commons-beanutils : commons-beanutils jar 1.7.0
commons-beanutils : commons-beanutils-core jar 1.8.0
org.apache.logging.log4j : log4j-api jar 2.10.0
org.apache.logging.log4j : log4j-core jar 2.10.0
org.apache.logging.log4j : log4j-slf4j-impl jar 2.10.0
org.hamcrest : hamcrest-core jar 1.1
org.objenesis : objenesis jar 2.1

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.16.12

test (7)

Group / Artifact Type Version
org.apache.pulsar : buildtools jar 2.2.1
org.testng : testng jar 6.13.1
org.mockito : mockito-core jar 1.10.19
org.powermock : powermock-api-mockito jar 1.7.3
org.powermock : powermock-module-testng jar 1.7.3
org.assertj : assertj-core jar 3.11.1
org.apache.bookkeeper : bookkeeper-server jar 4.7.3

Project Modules

There are no modules declared in this project.

logo

Pulsar is a distributed pub-sub messaging platform with a very flexible messaging model and an intuitive client API.

Learn more about Pulsar at https://pulsar.apache.org

Main features

  • Horizontally scalable (Millions of independent topics and millions of messages published per second)
  • Strong ordering and consistency guarantees
  • Low latency durable storage
  • Topic and queue semantics
  • Load balancer
  • Designed for being deployed as a hosted service:
    • Multi-tenant
    • Authentication
    • Authorization
    • Quotas
    • Support mixing very different workloads
    • Optional hardware isolation
  • Keeps track of consumer cursor position
  • REST API for provisioning, admin and stats
  • Geo replication
  • Transparent handling of partitioned topics
  • Transparent batching of messages

Repositories

This repository is the main repository of Apache Pulsar. Pulsar PMC also maintains other repositories for components in the Pulsar ecosystem, including connectors, adapters, and other language clients.

Helm Chart

Ecosystem

Clients

Dashboard & Management Tools

Documentation

CI/CD

Build Pulsar

Requirements:

  • Java 8 JDK (for building Pulsar)
    • When building Pulsar on a higher version (higher than Java 8), the resulting artifacts are not compatible with Java 8 runtime because of some issues, such as issue 8445.
  • Maven 3.6.1+

Compile and install:

$ mvn install -DskipTests

Minimal build (This skips most of external connectors and tiered storage handlers)

mvn install -Pcore-modules

Run Unit Tests:

$ mvn test

Run Individual Unit Test:

$ cd module-name (e.g: pulsar-client)
$ mvn test -Dtest=unit-test-name (e.g: ConsumerBuilderImplTest)

Run Selected Test packages:

$ cd module-name (e.g: pulsar-broker)
$ mvn test -pl module-name -Dinclude=org/apache/pulsar/**/*.java

Start standalone Pulsar service:

$ bin/pulsar standalone

Check https://pulsar.apache.org for documentation and examples.

Setting up your IDE

Apache Pulsar is using lombok so you have to ensure your IDE setup with required plugins.

Intellij

Configure annotation processing in IntelliJ

  1. Open Annotation Processors Settings dialog box by going to Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processors.

  2. Select the following buttons:

    1. "Enable annotation processing"
    2. "Obtain processors from project classpath"
    3. "Store generated sources relative to: Module content root"
  3. Set the generated source directories to be equal to the Maven directories:

    1. Set "Production sources directory:" to "target/generated-sources/annotations".
    2. Set "Test sources directory:" to "target/generated-test-sources/test-annotations".
  4. Click "OK".

  5. Install the lombok plugin in intellij.

Further configuration in IntelliJ

  • When working on the Pulsar core modules in IntelliJ, reduce the number of active projects in IntelliJ to speed up IDE actions and reduce unrelated IDE warnings.

    • In IntelliJ's Maven UI's tree view under "Profiles"
      • Activate "core-modules" Maven profile
      • De-activate "main" Maven profile
      • Run the "Reload All Maven Projects" action from the Maven UI toolbar. You can also find the action by the name in the IntelliJ "Search Everywhere" window that gets activated by pressing the Shift key twice.
  • Run the "Generate Sources and Update Folders For All Projects" action from the Maven UI toolbar. You can also find the action by the name in the IntelliJ "Search Everywhere" window that gets activated by pressing the Shift key twice. Running the action takes about 10 minutes for all projects. This is faster when the "core-modules" profile is the only active profile.

IntelliJ usage tips

  • In the case of compilation errors with missing Protobuf classes, ensure to run the "Generate Sources and Update Folders For All Projects" action.

  • All of the Pulsar source code doesn't compile properly in IntelliJ and there are compilation errors.

    • Use the "core-modules" profile if working on the Pulsar core modules since the source code for those modules can be compiled in IntelliJ.
    • Sometimes it might help to mark a specific project ignored in IntelliJ Maven UI by right-clicking the project name and select Ignore Projects from the menu.
    • Currently, it is not always possible to run unit tests directly from the IDE because of the compilation issues. As a workaround, individual test classes can be run by using the mvn test -Dtest=TestClassName command.

Eclipse

Follow the instructions here to configure your Eclipse setup.

Build Pulsar docs

Refer to the docs README.

Contact

Mailing lists
Name Scope
[email protected] User-related discussions Subscribe Unsubscribe Archives
[email protected] Development-related discussions Subscribe Unsubscribe Archives
Slack

Pulsar slack channel at https://apache-pulsar.slack.com/

You can self-register at https://apache-pulsar.herokuapp.com/

License

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Crypto Notice

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org/ for more information.

The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.

The following provides more details on the included cryptographic software: Pulsar uses the SSL library from Bouncy Castle written by http://www.bouncycastle.org.

org.apache.pulsar

The Apache Software Foundation

Versions

Version
2.2.1
2.2.0
2.1.1-incubating
2.1.0-incubating
2.0.1-incubating
2.0.0-rc1-incubating