0

昨天,这段代码运行正常。但是今天我收到以下错误消息:

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)
4

1 回答 1

0

答案是尝试直接在 Bluemix 中打开 dashDB 服务,这表明 dashDB 服务不可用:

在此处输入图像描述

于 2015-11-13T08:47:41.117 回答