You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Mina Aslani <as...@gmail.com> on 2017/03/13 21:45:49 UTC

Java.lang.IllegalArgumentException: requirement failed: Can only call getServletHandlers on a running MetricsSystem

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