Hey everyone, I have a maven java project acting a...
# troubleshooting
a
Hey everyone, I have a maven java project acting as a client which calls the the flink program to apply table operations on a csv file in standalone mode(similar to an sdk). Cluster is not being used. But the following exception is thrown when I call Datastream.executeAndCollect() method: org.apache.flink.runtime.rpc.exceptions.RpcLoaderException: Could not load RpcSystem. at org.apache.flink.runtime.rpc.RpcSystem.load(RpcSystem.java:111) at org.apache.flink.runtime.minicluster.MiniCluster.lambda$0(MiniCluster.java:253) at org.apache.flink.runtime.minicluster.MiniCluster.start(MiniCluster.java:339) at org.apache.flink.client.program.PerJobMiniClusterFactory.submitJob(PerJobMiniClusterFactory.java:77) at org.apache.flink.client.deployment.executors.LocalExecutor.execute(LocalExecutor.java:85) at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.executeAsync(StreamExecutionEnvironment.java:2238) at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.executeAsync(StreamExecutionEnvironment.java:2219) at org.apache.flink.streaming.api.datastream.DataStream.executeAndCollectWithClient(DataStream.java:1471) at org.apache.flink.streaming.api.datastream.DataStream.executeAndCollect(DataStream.java:1336) at org.apache.flink.streaming.api.datastream.DataStream.executeAndCollect(DataStream.java:1322)
t
The
RpcLoaderException
in your Flink project likely stems from a classpath or dependency issue. Ensure your Maven dependencies are correctly configured, watch out for conflicts, and verify that any shading doesn't exclude necessary service files. Increasing logging may provide more insights.
v
@Ashwin Bharadwaj Running into similar issue, how did you manage to solve this ?