Microsoft SQL无法导入Sqoop

时间:2016-01-06 23:31:03

标签: sql-server hadoop jdbc sqoop

我想获取数据库以查看已设置但我收到此错误。我尝试了不同的防火墙方法,但它一直在说

16/01/07 01:18:21 ERROR manager.CatalogQueryManager: Failed to list databases
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host xx.x.xx.xxx, port 1433 has failed. Error:
     

"连接超时。验证连接属性。确保这一点   SQL Server的一个实例正在主机上运行并接受TCP / IP   港口的连接。确保TCP连接到端口   没有被防火墙阻止。"。       在com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:191)       at com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:242)       在com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2293)       在com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:506)       在com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1523)       在com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1204)       在com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:1040)       在com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:554)       在com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1019)       在java.sql.DriverManager.getConnection(DriverManager.java:664)       在java.sql.DriverManager.getConnection(DriverManager.java:247)       在org.apache.sqoop.manager.SqlManager.makeConnection(SqlManager.java:885)       at org.apache.sqoop.manager.GenericJdbcManager.getConnection(GenericJdbcManager.java:52)       at org.apache.sqoop.manager.CatalogQueryManager.listDatabases(CatalogQueryManager.java:57)       at org.apache.sqoop.tool.ListDatabasesTool.run(ListDatabasesTool.java:49)       在org.apache.sqoop.Sqoop.run(Sqoop.java:143)       在org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)       在org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)       在org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)       在org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)       在org.apache.sqoop.Sqoop.main(Sqoop.java:236)       16/01/07 01:18:22错误sqoop.Sqoop:运行Sqoop异常:java.lang.RuntimeException:   com.microsoft.sqlserver.jdbc.SQLServerException:TCP / IP连接   到主机xx.x.xx.xxx,端口1433失败。错误:"连接定时   出。验证连接属性。确保一个实例   SQL Server正在主机上运行并接受TCP / IP连接   港口。确保未阻止与端口的TCP连接   通过防火墙。"。       java.lang.RuntimeException:com.microsoft.sqlserver.jdbc.SQLServerException:TCP / IP连接   到主机xx.x.xx.xxx,端口1433失败。错误:"连接定时   出。验证连接属性。确保一个实例   SQL Server正在主机上运行并接受TCP / IP连接   港口。确保未阻止与端口的TCP连接   通过防火墙。"。       在org.apache.sqoop.manager.CatalogQueryManager.listDatabases(CatalogQueryManager.java:73)       at org.apache.sqoop.tool.ListDatabasesTool.run(ListDatabasesTool.java:49)       在org.apache.sqoop.Sqoop.run(Sqoop.java:143)       在org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)       在org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)       在org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)       在org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)       在org.apache.sqoop.Sqoop.main(Sqoop.java:236)       引起:com.microsoft.sqlserver.jdbc.SQLServerException:与主机xx.x.xx.xxx,端口1433的TCP / IP连接失败。   错误:"连接超时。验证连接属性。确保   SQL Server的一个实例正在主机上运行并接受   端口上的TCP / IP连接。确保TCP连接到   端口未被防火墙阻止。"。       在com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:191)       at com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:242)       在com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2293)       在com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:506)       在com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1523)       在com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1204)       在com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:1040)       在com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:554)       在com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1019)       在java.sql.DriverManager.getConnection(DriverManager.java:664)       在java.sql.DriverManager.getConnection(DriverManager.java:247)       在org.apache.sqoop.manager.SqlManager.makeConnection(SqlManager.java:885)       at org.apache.sqoop.manager.GenericJdbcManager.getConnection(GenericJdbcManager.java:52)       at org.apache.sqoop.manager.CatalogQueryManager.listDatabases(CatalogQueryManager.java:57)       ......还有7个

Note : Port 1433 it's up .

0 个答案:

没有答案