Github user revans2 commented on the issue:
https://github.com/apache/storm/pull/1959
OK Now I understand what is happening. I think what we really want is to
mark Func as Serializable. Could you try the following patch instead?
```
diff --git
a/external/storm-kafka-client/src/main/java/org/apache/storm/kafka/spout/Func.java
b/external/storm-kafka-client/src/main/java/org/apache/storm/kafka/spout/Func.java
index a631d9608..041453393 100644
---
a/external/storm-kafka-client/src/main/java/org/apache/storm/kafka/spout/Func.java
+++
b/external/storm-kafka-client/src/main/java/org/apache/storm/kafka/spout/Func.java
@@ -17,10 +17,12 @@
*/
package org.apache.storm.kafka.spout;
+import java.io.Serializable;
+
/**
* A simple interface to allow compatibility with non java 8
* code bases
*/
-public interface Func<V, R> {
+public interface Func<V, R> extends Serializable {
R apply(V record);
}
```
It should work on both master and 1.x
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---