question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception StackTrace: java.lang.ClassNotFoundException: file

See original GitHub issue

用socket例子运行正常,换了个格式,配置文件如下

spark {
  # Waterdrop defined streaming batch duration in seconds
  spark.streaming.batchDuration = 5

  spark.app.name = "DJ-Waterdrop"
  spark.ui.port = 13000
}

input {
    file {
        path = "file:///data/xjzhou/devtools/waterdrop/current/data"
        table_name = "accesslog"
        format = "text"
    }
}

filter {
    lowercase {
    }
}

output {
    file {
        path = "file:///data/xjzhou/devtools/waterdrop/current/logs"
        serializer = "text"
    }
} 

运行错误提示

Fatal Error,

Please contact garygaowork@gmail.com or issue a bug in https://github.com/InterestingLab/waterdrop/issues

Reason: file

Exception StackTrace: java.lang.ClassNotFoundException: file
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
RickyHuocommented, Dec 8, 2018

@xjzhou 因为使用lowercase,导致数据里面多了一列, output serializer 应设为json

output {
    file {
        path = "file:///data/xjzhou/devtools/waterdrop/current/logs"
        serializer = "json"
    }
}
0reactions
garyelephantcommented, Dec 9, 2018

@xjzhou

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I resolve ClassNotFoundException? - Stack Overflow
When you get a ClassNotFoundException, it means the JVM has traversed the entire classpath and not found the class you've attempted to reference....
Read more >
java.lang.ClassNotFoundException - DigitalOcean
It's very easy to fix ClassNotFoundException because the exception stack trace clearly specifies the class not found. Just check for classpath ...
Read more >
Error: Stack trace: java.lang.ClassNotFoundException ...
I'm try to create a test case where it is performed a query on data base looking for a given text. The custom...
Read more >
Exception StackTrace: java.lang.ClassNotFoundException: file
用socket例子运行正常,换了个格式,配置文件如下spark { # Waterdrop defined streaming batch duration in seconds spark.streaming.
Read more >
Javarevisited: Eclipse - java.lang.ClassNotFoundException
Here is the stack trace of this error : java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet at org.apache.catalina.loader.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found