Can anyone help me to understand, what this error ...
# troubleshooting
r
Can anyone help me to understand, what this error means -
Error: Could not find or load main class org.apache.pinot.thirdeye.anomaly.ThirdEyeAnomalyApplication
. And how to fix this, don't have much experience in Java.
m
@Suvodeep Pyne ^^
s
Hi @Raj Swarnim It means that java is unable to find that class in the classpath. Can you share the steps through which you got to this error?
r
Even I tried installing Third Eye through the Pinot documentation but couldn't connect to the localhost:1426
Attaching the logs for
docker logs thirdeye -f
Kindly help me in resolving this.
@Suvodeep Pyne @Mayank Can you please help me in resolving this issue.
s
@Raj Swarnim I think the config file is causing the issue. Can you try to delete the classifier configuration from the detector.yml file
l
@Suvodeep Pyne dealing with the same issue at the moment. What exactly do you recommend deleting from the detector.yml file?
s
@Leon Graveland I think the
classifier
config has been removed. Can you try deleting that line?
l
@Suvodeep Pyne Thanks a lot for the swift response. In the detector.yml file, I cannot find any
classifier
config. https://github.com/project-thirdeye/thirdeye/blob/master/thirdeye-dashboard/config/detector.yml
Let me ellaborate a bit on the steps I took. /.run-frontend.sh and ./run-backend.sh are both not working for me. ./run-frontend.sh (adding -Xdiag to the command)
Copy code
root@d7c0a0aaf524:/thirdeye/thirdeye-dashboard# java -Xdiag -Dlog4j.configurationFile=log4j2.xml -cp "./target/thirdeye-dashboard-1.0.0-SNAPSHOT.jar" org.apache.pinot.thirdeye.dashboard.ThirdEyeDashboardApplication "./config"
Error: Could not find or load main class org.apache.pinot.thirdeye.dashboard.ThirdEyeDashboardApplication
java.lang.NoClassDefFoundError: org/apache/pinot/thirdeye/common/BaseThirdEyeApplication
        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:468)
        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 java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
Caused by: java.lang.ClassNotFoundException: org.apache.pinot.thirdeye.common.BaseThirdEyeApplication
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 13 more
./run-backend.sh (adding -Xdiag to the command)
Copy code
root@d7c0a0aaf524:/thirdeye/thirdeye-dashboard# java -Xdiag -Dlog4j.configurationFile=log4j2.xml -cp "./target/thirdeye-dashboard-1.0.0-SNAPSHOT.jar" org.apache.pinot.thirdeye.anomaly.ThirdEyeAnomalyApplication "./config"
Error: Could not find or load main class org.apache.pinot.thirdeye.anomaly.ThirdEyeAnomalyApplication
java.lang.ClassNotFoundException: org.apache.pinot.thirdeye.anomaly.ThirdEyeAnomalyApplication
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
I did follow this blog without any success: https://medium.com/@gregsimons_84/apache-pinot-thirdeye-quickstart-helper-b5d8a95a22eb by adding plugins to the pom.xml and ran install.sh again.