Skip to content

Commit

Permalink
Use /pulsar/instances/deps/* instead of /pulsar/lib/* in classpath
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangpengcheng committed Oct 29, 2024
1 parent df13250 commit 6232fcf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/spec/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ func getProcessJavaRuntimeArgs(name, packageName, clusterName, logLevel, details
state *v1alpha1.Stateful,
tlsConfig TLSConfig, authConfig *v1alpha1.AuthConfig,
maxPendingAsyncRequests *int32, logConfigFileName string) []string {
classPath := "/pulsar/instances/java-instance.jar:/pulsar/lib/*"
classPath := "/pulsar/instances/java-instance.jar:/pulsar/instances/deps/*"
javaLogConfigPath := logConfigFileName
if javaLogConfigPath == "" {
javaLogConfigPath = DefaultJavaLogConfigPath
Expand Down
2 changes: 2 additions & 0 deletions images/pulsar-functions-base-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ RUN rm -rf /pulsar/lib/presto || true
RUN rm -rf /pulsar/conf/presto || true
RUN rm -rf /pulsar/bin/pulsar-detector || true

RUN copy /pulsar/lib/com.fasterxml.jackson.dataformat-jackson-dataformat-yaml-*.jar /pulsar/instances/deps/ || true

ENV PULSAR_ROOT_LOGGER=INFO,CONSOLE
ENV java.io.tmpdir=/pulsar/tmp/

Expand Down
2 changes: 2 additions & 0 deletions images/pulsar-functions-java-runner/pulsarctl.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ RUN rm -rf /pulsar/lib/io.vertx-vertx-core-*.jar || true
RUN rm -rf /pulsar/lib/presto || true
RUN rm -rf /pulsar/conf/presto || true

RUN copy /pulsar/lib/com.fasterxml.jackson.dataformat-jackson-dataformat-yaml-*.jar /pulsar/instances/deps/ || true

ENV PULSAR_ROOT_LOGGER=INFO,CONSOLE
ENV java.io.tmpdir=/pulsar/tmp/

Expand Down

0 comments on commit 6232fcf

Please sign in to comment.