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

前端 未结 0 2005
花落未央
花落未央 2021-02-11 13:42

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         


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