Bluemix spark服务错误:java.net.NoRouteToHostException

时间:2015-11-13 08:47:41

标签: apache-spark ibm-cloud spark-notebook

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

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)

1 个答案:

答案 0 :(得分:0)

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

enter image description here