昨天,这段代码运行正常。但是今天我收到以下错误消息:
df = sqlContext.read.jdbc(
url="jdbc:db2://bluemix05.bluforcloud.com:50001/BLUDB:user=****;password=****;sslConnection=true;",
table="GOSALES.BRANCH"
).cache()
---------------------------------------------------------------------------
Py4JJavaError Traceback (most recent call last)
...
Py4JJavaError: An error occurred while calling o36.jdbc.
: com.ibm.db2.jcc.am.DisconnectNonTransientConnectionException: [jcc][t4][2043][11550][4.19.26] Exception java.net.NoRouteToHostException: Error opening socket to server bluemix05.bluforcloud.com/50.97.93.115 on port 50,001 with message: No route to host. ERRORCODE=-4499, SQLSTATE=08001
at com.ibm.db2.jcc.am.kd.a(Unknown Source)