这是我的代码:
def saveToOpenTSDB(rows:Iterator [String],url:String){ val requestConfig:RequestConfig = RequestConfig.custom()。setSocketTimeout(2000).setConnectTimeout(2000)….
我刚刚解决了这个问题,在'配置'标签中添加了maven shade插件,如下所示:
<relocations> <relocation> <pattern>org.apache.http</pattern> <shadedPattern>shade.org.apache.http</shadedPattern> </relocation> </relocations>