Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: How to build this project? how to using? #12

Open
hamidrezashoghi opened this issue Aug 31, 2024 · 1 comment
Open

[Bug]: How to build this project? how to using? #12

hamidrezashoghi opened this issue Aug 31, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hamidrezashoghi
Copy link

What happened?

# ./bin/flink run --detached -c io.jaegertracing.dependencies.DependenciesJob /opt/flink/lib/dependencies-job.jar

The program finished with the following exception:

org.apache.flink.client.program.ProgramInvocationException: The program's entry point class 'io.jaegertracing.dependencies.DependenciesJob' could not be loaded due to a linkage failure.
at org.apache.flink.client.program.PackagedProgram.loadMainClass(PackagedProgram.java:493)
at org.apache.flink.client.program.PackagedProgram.(PackagedProgram.java:153)
at org.apache.flink.client.program.PackagedProgram.(PackagedProgram.java:65)
at org.apache.flink.client.program.PackagedProgram$Builder.build(PackagedProgram.java:691)
at org.apache.flink.client.cli.CliFrontend.buildProgram(CliFrontend.java:890)
at org.apache.flink.client.cli.CliFrontend.getPackagedProgram(CliFrontend.java:270)
at org.apache.flink.client.cli.CliFrontend.run(CliFrontend.java:244)
at org.apache.flink.client.cli.CliFrontend.parseAndRun(CliFrontend.java:1095)
at org.apache.flink.client.cli.CliFrontend.lambda$mainInternal$9(CliFrontend.java:1189)
at org.apache.flink.runtime.security.contexts.NoOpSecurityContext.runSecured(NoOpSecurityContext.java:28)
at org.apache.flink.client.cli.CliFrontend.mainInternal(CliFrontend.java:1189)
at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:1157)
Caused by: java.lang.NoClassDefFoundError: io/jaegertracing/analytics/JaegerJob
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at org.apache.flink.util.ChildFirstClassLoader.loadClassWithoutExceptionHandling(ChildFirstClassLoader.java:71)
at org.apache.flink.util.FlinkUserCodeClassLoader.loadClass(FlinkUserCodeClassLoader.java:51)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at org.apache.flink.util.FlinkUserCodeClassLoaders$SafetyNetWrapperClassLoader.loadClass(FlinkUserCodeClassLoaders.java:192)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.flink.client.program.PackagedProgram.loadMainClass(PackagedProgram.java:479)
... 11 more
Caused by: java.lang.ClassNotFoundException: io.jaegertracing.analytics.JaegerJob
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at org.apache.flink.util.FlinkUserCodeClassLoader.loadClassWithoutExceptionHandling(FlinkUserCodeClassLoader.java:67)
at org.apache.flink.util.ChildFirstClassLoader.loadClassWithoutExceptionHandling(ChildFirstClassLoader.java:74)
at org.apache.flink.util.FlinkUserCodeClassLoader.loadClass(FlinkUserCodeClassLoader.java:51)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 27 more

Steps to reproduce

I build via this command:
./gradlew build

and run
./# java -jar dependencies-job/build/libs/dependencies-job.jar
Error: Could not find or load main class io.jaegertracing.dependencies.DependenciesJob

Expected behavior

Error: Could not find or load main class io.jaegertracing.dependencies.DependenciesJob

Relevant log output

No response

Screenshot

No response

Additional context

No response

Jaeger backend version

No response

SDK

No response

Pipeline

No response

Stogage backend

No response

Operating system

No response

Deployment model

No response

Deployment configs

No response

@hamidrezashoghi hamidrezashoghi added the bug Something isn't working label Aug 31, 2024
@hamidrezashoghi
Copy link
Author

java version:
openjdk version "1.8.0_362"
OpenJDK Runtime Environment (build 1.8.0_362-8u372-gaus1-0ubuntu118.04-b09)
OpenJDK 64-Bit Server VM (build 25.362-b09, mixed mode)

flink:
Version: 1.18.1, Commit ID: a8c8b1c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant