Servlet class org.glassfish.jersey.servlet.ServletContainer is not a javax.servlet.Servlet

报错Caused by: javax.servlet.UnavailableException: Servlet class org.glassfish.jersey.servlet.ServletContainer is not a javax.servlet.Servlet

Servlet class org.glassfish.jersey.servlet.ServletContainer is not a javax.servlet.Servlet_第1张图片

版本依赖:


        17
        3.0.4
        2.12.15
        2.12
        3.3.2
        2.13.2.2
        3.0.16
        3.3.4
        2.8.0
        2.10.5
        2.0
    

解决方案:

直接关掉spark-ui,简单粗暴

sparkConf.set("spark.ui.enabled","false");

如下

SparkConf sparkConf = new SparkConf();
sparkConf.set("spark.ui.enabled","false");
SparkSession sparkSession = SparkSession
.builder()
.master("local[*]")
.appName("syncUpdate")
.config(sparkConf)
.getOrCreate();

你可能感兴趣的:(spark)