jaegertracing / jaeger-analytics-flink

Big data analytics for Jaeger using Apache Flink
68 stars 23 forks source link

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

Open hamidrezashoghi opened 2 months ago

hamidrezashoghi commented 2 months ago

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 commented 2 months ago

java version: openjdk version "1.8.0_362" OpenJDK Runtime Environment (build 1.8.0_362-8u372-ga~us1-0ubuntu1~18.04-b09) OpenJDK 64-Bit Server VM (build 25.362-b09, mixed mode)

flink: Version: 1.18.1, Commit ID: a8c8b1c