Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:144)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.getDefaultRegistry(PoolingHttpClientConnectionManager.java:109)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:116)
本地模式的时候没有问题,但是当用spark-submit提交的时候就会报错。求大神帮忙看看啦。就是
PoolingHttpClientConnectionManager cm = new PoolingHttpClientConnectionManager();
这一句出问题啦。