Hi,

I get IllegalArgumentException: requirement failed: Can only call
getServletHandlers on a running MetricsSystem on the specified below line:

String master = "spark://<ipaddress>:7077";

                                        SparkConf sparkConf = new
SparkConf()
                                        .setMaster(master)

.setAppName(this.getClass().getSimpleName());
==>ERROR line           JavaStreamingContext ssc = new
JavaStreamingContext(sparkConf, Durations.milliseconds(200));

Do I need to consider a specific setting? Please note that my spark is a
docker in a VM so it's not running locally. I tried using master="local[1]"
same problem.

Any idea?

Regards,
Mina

Reply via email to