org.apache.flume.FlumeException

Unable to load source type: com.cloudera.flume.source.TwitterSource, class: com.cloudera.flume.source.TwitterSource at org.apache.flume.source.DefaultSourceFactory.getCl ass(DefaultSourceFactory.java:69) at org.apache.flume.source.DefaultSourceFactory.creat e(DefaultSourceFactory.java:42) at org.apache.flume.node.AbstractConfigurationProvide r.loadSources(AbstractConfigurationProvider.java:3 22) at org.apache.flume.node.AbstractConfigurationProvide r.getConfiguration(AbstractConfigurationProvider.j ava:97) at org.apache.flume.node.PollingPropertiesFileConfigu rationProvider$FileWatcherRunnable.run(PollingProp ertiesFileConfigurationProvider.java:140) at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(Future Task.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$301(ScheduledThreadPoolE xecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(ScheduledThreadPoolExecutor .java:294)

Samebug tips5

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

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

Solutions on the web28

  • java.util.concurrent.FutureTask.runAndReset(Future Task.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$301(ScheduledThreadPoolE xecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(ScheduledThreadPoolExecutor .java:294)
  • java.util.concurrent.FutureTask.runAndReset(Future Task.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$301(ScheduledThreadPoolE xecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(ScheduledThreadPoolExecutor .java:294)
  • via dezyre.com by Unknown author, 1 year ago
    Unable to load source type: com.cloudera.flume.source.TwitterSource, class: com.cloudera.flume.source.TwitterSource
  • Stack trace

    • org.apache.flume.FlumeException: Unable to load source type: com.cloudera.flume.source.TwitterSource, class: com.cloudera.flume.source.TwitterSource at org.apache.flume.source.DefaultSourceFactory.getCl ass(DefaultSourceFactory.java:69) at org.apache.flume.source.DefaultSourceFactory.creat e(DefaultSourceFactory.java:42) at org.apache.flume.node.AbstractConfigurationProvide r.loadSources(AbstractConfigurationProvider.java:3 22) at org.apache.flume.node.AbstractConfigurationProvide r.getConfiguration(AbstractConfigurationProvider.j ava:97) at org.apache.flume.node.PollingPropertiesFileConfigu rationProvider$FileWatcherRunnable.run(PollingProp ertiesFileConfigurationProvider.java:140) at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(Future Task.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$301(ScheduledThreadPoolE xecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(ScheduledThreadPoolExecutor .java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: com.cloudera.flume.source.TwitterSource at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264)

    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

    2 times, 1 month ago
    Once, 1 month ago
    2 times, 2 months ago
    95 times, 2 months ago
    2 times, 3 months ago
    1669 more bugmates