How to fix MongoTimeoutException caused by java.net.SocketTimeoutException: connect timed out

前端 未结 0 1759
臣服心动
臣服心动 2021-02-11 13:23

I\'m trying to save a dataframe to a mongodb like this:

write_format = dataframe.write.format("com.mongodb.spark.sql.DefaultSource").mode(mode)
host = w         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题