java.lang.RuntimeException

Could not find class com.linkedin.drelephant.mapreduce.fetchers.MapReduceFetcherHadoop2

Samebug tips9

Check if you didn't forget to instantiate your topic in the kafka broker.

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web21417

  • via GitHub by shyamraj242
    , 10 months ago
    Could not find class com.linkedin.drelephant.mapreduce.fetchers.MapReduceFetcherHadoop2
  • Could not invoke class com.linkedin.drelephant.mapreduce.fetchers.MapReduceFetcherHadoop2
  • Could not invoke class com.linkedin.drelephant.mapreduce.fetchers.MapReduceFetcherHadoop2
  • Stack trace

    • java.lang.RuntimeException: Could not find class com.linkedin.drelephant.mapreduce.fetchers.MapReduceFetcherHadoop2 at com.linkedin.drelephant.ElephantContext.loadFetchers(ElephantContext.java:122) at com.linkedin.drelephant.ElephantContext.loadConfiguration(ElephantContext.java:90) at com.linkedin.drelephant.ElephantContext.<init>(ElephantContext.java:86) at com.linkedin.drelephant.ElephantContext.init(ElephantContext.java:74) at com.linkedin.drelephant.ElephantRunner$1.run(ElephantRunner.java:84) at com.linkedin.drelephant.ElephantRunner$1.run(ElephantRunner.java:79) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:356) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1689) at com.linkedin.drelephant.security.HadoopSecurity.doAs(HadoopSecurity.java:99) at com.linkedin.drelephant.ElephantRunner.run(ElephantRunner.java:79) at com.linkedin.drelephant.DrElephant.run(DrElephant.java:34) Caused by: java.lang.ClassNotFoundException: com.linkedin.drelephant.mapreduce.fetchers.MapReduceFetcherHadoop2 at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at com.linkedin.drelephant.ElephantContext.loadFetchers(ElephantContext.java:108) ... 11 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    4 times, 2 months ago
    4 times, 1 month ago
    Once, 1 month ago
    Unknown user
    2 times, 3 months ago
    Unknown user
    Once, 5 months ago
    2376 more bugmates