[英]WebSocket connection failed. Error during WebSocket handshake - socketjs
[英]TCP/IP connection to the port is failed. sqoop jdbc connection error
當我嘗試運行sqoop命令導入時
sqoop import --connect jdbc:sqlserver://localhost/db_name--username
user--password user--table table_name.
我收到以下錯誤。
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.".
我的命名管道和TCP / IP均已啟用,並且具有端口1433。SQLServer TCP / IP協議也具有端口1433。我創建了防火牆入站和出站規則以允許連接。仍然出現相同的錯誤。
請嘗試將sqljdbc42.jar添加到sqoop lib路徑並添加
--driver com.microsoft.sqlserver.jdbc.SQLServerDriver
到您的sqoop導入命令。
還要確保db_name和--username之間應該有一個空格,並且username和--password之間應該有一個空格,並且在命令末尾沒有點。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.