Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-50407

accessing a MySQL database through a proxy that has a set timeout, an error occurs when using df.write.jdbc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.1.0
    • None
    • Connect
    • None

    Description

      When accessing a MySQL database through a proxy that has a set timeout, an error occurs when using df.write.mode(SaveMode.Append).jdbc(url, table, properties).

      error msg :
       

      The reason for this error is that the JdbcRelationProvider created a connection on the driver side, but did not close it after use; instead, it was closed after the saveTable method was called. At this point, Nginx detected that there was no data transfer on the connection and directly closed the connection, leading to an error when calling conn.close(): "no more data to read from socket".
       
       
       

       

      Attachments

        1. 图片1.png
          178 kB
          chenzichu

        Activity

          People

            Unassigned Unassigned
            coreychen chenzichu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified