gpt4 book ai didi

sql-server-2008 - Sqoop:在映射任务期间从SQL Server导入并抛出 "The TCP/IP connection to the host x.x.x.x, port 1433 has failed"

转载 作者:行者123 更新时间:2023-12-04 04:37:55 26 4
gpt4 key购买 nike

在具有Sqoop 1.4.6的HDP 2.3.2上,我正在尝试从SQL Server 2008导入表。

我能够成功连接到SQL Server,因为我可以列出数据库和表等。

但是,在导入期间,每次都会遇到以下错误:

Error: java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host x.x.x.x, port 1433 has failed. Error: "connect timed out. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".



同样,我实际上能够从SQL Server成功导入,但是仅需重试几次即可。但是,无论导入成功还是失败,我总是会遇到上述错误,并且我想知道是什么原因引起的?每当导入失败时都必须重复重复导入是很麻烦的。

我已经关闭了SQL Server上的连接超时,尽管来自Hadoop群集和SQL Server的连接通过了我们的公司防火墙,但我们的管理员告诉我,防火墙上的超时为3600秒。导入在到达该标记附近之前失败。

我使用的一个sqoop命令只是一个例子:
sqoop import \
--connect "jdbc:sqlserver://x.x.x.:1433;database=CEMHistorical" \
--table StreamSummary --username hadoop \
--password-file hdfs:///user/sqoop/.adg.password --hive-import \
--hive-overwrite --create-hive-table --split-by OfferedTime \
--hive-table develop.streamsummary --map-column-hive Call_ID=STRING,Stream_ID=STRING,OriginalCall_ID=STRING,TransactionID=TIMESTAMP

更新:

与我们的网络团队联系后,看来这绝对是网络问题。为了添加上下文,Hadoop群集与SQL Server在不同的VLAN上,并经过许多防火墙。为了进行测试,我尝试从与Hadoop群集相同的VLAN中的其他SQL Server进行导入,而我完全没有遇到此异常。

最佳答案

将其发布在这里作为引用:

对于防火墙日志,我从未收到我们网络团队的回音,但是NameNode的操作系统已损坏,必须重新格式化并重新安装HDP。由于某些原因,我们不再遇到此错误。

原始群集和新安装的群集之间的区别是,我们有4个节点(1个名称节点和3个数据节点)在单个服务器中进行了虚拟化。现在,我们正在运行一个没有服务器虚拟化的单节点群集(HDP 2.3.4)。

关于sql-server-2008 - Sqoop:在映射任务期间从SQL Server导入并抛出 "The TCP/IP connection to the host x.x.x.x, port 1433 has failed",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34586137/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com