I am new to the flink ecosystem and I started working on Hello world flink streaming with the following code snippets. In my opionion the streaming execution environment seems the reasons for the exception. I can not get a solution for a similar problem.
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
DataStreamSource<String> stream = env.socketTextStream("localhost", 9000);
SingleOutputStreamOperator<Tuple2<String, Integer>> sum = stream.flatMap(new LineSplitter())
.keyBy(0)
.sum(1);
sum.print();
env.execute("Java word Count Example");
The following is the error code generated
Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.apache.flink.core.execution.DefaultExecutorServiceLoader.<init>()V from class org.apache.flink.streaming.api.environment.StreamExecutionEnvironment
....
....
...
at myflink.SocketTextStreamWordCount.main(SocketTextStreamWordCount.java:16)
did anyone faced the same problem. Any helps are appreciated