简体   繁体   English

到端口的TCP / IP连接失败。 sqoop jdbc连接错误

[英]TCP/IP connection to the port is failed. sqoop jdbc connection error

When i try to run the sqoop command to import 当我尝试运行sqoop命令导入时

sqoop import --connect jdbc:sqlserver://localhost/db_name--username 
user--password user--table table_name.

I get the following error. 我收到以下错误。

ERROR: The TCP/IP connection to the host 127.0.0.1, port 1433 has failed. Error: "Connection refused: connect. 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.".

Both my named pipes and TCP/IP are enabled and have port 1433. SQL server TCP/IP protocol also has port 1433. I have created firewall inbound and outbound rules to allow connection.Still I am getting the same error. 我的命名管道和TCP / IP均已启用,并且具有端口1433。SQLServer TCP / IP协议也具有端口1433。我创建了防火墙入站和出站规则以允许连接。仍然出现相同的错误。

Please try to add sqljdbc42.jar to sqoop lib path and add 请尝试将sqljdbc42.jar添加到sqoop lib路径并添加

--driver com.microsoft.sqlserver.jdbc.SQLServerDriver --driver com.microsoft.sqlserver.jdbc.SQLServerDriver

to your sqoop import command. 到您的sqoop导入命令。

Also make sure that there should be a space between db_name and --username and space between username and --password and no dot at the end of the command. 还要确保db_name和--username之间应该有一个空格,并且username和--password之间应该有一个空格,并且在命令末尾没有点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WebSocket 连接失败。 WebSocket 握手期间出错 - socketjs - WebSocket connection failed. Error during WebSocket handshake - socketjs 使用ParseServer快速连接 - 无法连接 <ip> 端口1337,连接超时 - Express with ParseServer - Failed to connect to <ip> port 1337, connection timeout WebSocket 连接到“wss://ip:8080/”失败:连接建立错误:net::ERR_CONNECTION_REFUSED - WebSocket connection to 'wss://ip:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED 有没有办法用JavaScript进行IP连接? - Is there a way to do a tcp connection to an IP with javascript? Google Apps脚本-JDBC连接失败 - Google Apps Script - JDBC Connection Failed 无法打开 TCP 连接到 localhost:3002 - Failed to open TCP connection to localhost:3002 (7) 连接localhost 3000端口失败:连接被拒绝 - (7) Failed to connect to localhost port 3000: Connection refused WebSocket 连接失败:连接建立错误 - WebSocket Connection failed: error in connection establishment IOT tcp 与nodejs和net的连接错误 - IOT tcp connection error with nodejs and net 在JScript中使用服务器IP和端口号检查telnet连接 - Check telnet connection with server IP and Port number in JScript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM