我在IBM Bluemix上使用最新版本的“Analytics for Apache Hadoop”。 我按照教程配置ODBC驱动程序。 http://www-01.ibm.com/support/knowledgecenter/SSPT3X_4.0.0/com.ibm.swg.im.infosphere.biginsights.analyze.doc/doc/bsql_odbc_windows.html
我已经下载了10.5数据服务器驱动程序包并配置了db2dsdriver.cfg。
<configuration>
<dsncollection>
<dsn alias="bigsql" name="bigsql" host="bi-hadoop-prod-2208.services.dal.bluemix.net" port="51000"/>
</dsncollection>
<databases>
<database name="bigsql" host="bi-hadoop-prod-2208.services.dal.bluemix.net" port="51000">
</database>
</databases>
</configuration>
这是我的服务器信息
"userid": "xxxxxx",
"password": "xxxxx",
"BigSqlUrl": "jdbc:db2://bi-hadoop-prod-2208.services.dal.bluemix.net:51000/bigsql;sslConnection=true",
当我尝试使用db2cli来验证连接时,我得到了:
[FAILED]: [IBM][CLI Driver] SQL30081N A communication error has been detected. Communication protocol being used: "TCP/ IP". Communication API being used: "SOCKETS". Location where the error was detected:"169.54.58.208". Communication function detecting the error: "recv". Protocol specific error code(s): "10054", "*", "0". SQLSTATE=08001
有人遇到同样的问题吗?
答案 0 :(得分:0)
你能简单地检查你是否能够到达服务器bi-hadoop-prod-2208.services.dal.bluemix.net上的端口51000? 例如,你可以像这样运行一个telnet
telnet bi-hadoop-prod-2208.services.dal.bluemix.net 51000
错误似乎与连接错误有关,例如您无法连接到服务器到防火墙,端口被阻止等等。