以下为主要代码
val params1 = new util.HashMap[String, java.io.Serializable]()
params1.put(SDXFeatureRDDProviderParams.DBType.key, "oracleplus");
params1.put(SDXFeatureRDDProviderParams.Server.key, "192.168.***.**:1521/ORCL")
params1.put(SDXFeatureRDDProviderParams.User.key, "****")
params1.put(SDXFeatureRDDProviderParams.PassWord.key, "****")
params1.put(FeatureRDDProviderParams.ProviderType.key, "SDX")
FeatureRDDProviderFactory(params1).save(loadFRDD , params1,"SAVEORACLEFRDD")
通过postman发送请求可知,导致Session Dead的代码为:FeatureRDDProviderFactory(params1).save(loadFRDD , params1,"SAVEORACLEFRDD")
连接参数确认无误,params1中也有连接参数
但执行到最后一行代码时,spark session的state 变为了dead