Hi alaa,
I think this demo is targeting for running in IDE only.
The demo runs in DemoStreamEnvironment which extends LocalStreamEnvironment.
And LocalStreamEnvironment cannot be used when submitting a program through a client, as the exception says.
If you want to run this demo with flink client, I think you can change
"val env: StreamExecutionEnvironment = DemoStreamEnvironment.env" to be "val env = StreamExecutionEnvironment.getExecutionEnvironment"
in the demo code like TotalArrivalCount.scala.
Thanks,
Zhu Zhu