- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
hive beeline login says: Could not open connection to the HS2 server. Connection refused.
- Labels:
-
Apache Hive
Created on ‎05-19-2024 12:50 PM - edited ‎05-19-2024 12:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
in hive i am unable to establish a connection,
beeline> !connect jdbc:hive2://localhost:10000/
Connecting to jdbc:hive2://localhost:10000/
Enter username for jdbc:hive2://localhost:10000/:
I don't know what to put for username and password, it is not accepting ENTER Key or my device login details.
Output:
24/05/20 01:19:08 [main]: WARN jdbc.HiveConnection: Failed to connect to localhost:10000
Could not open connection to the HS2 server. Please check the server URI and if the URI is correct, then ask the administrator to check the server status. Enable verbose error messages (--verbose=true) for more information.
Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000/: java.net.ConnectException: Connection refused (Connection refused) (state=08S01,code=0)
Please help.
Created ‎05-20-2024 05:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I switched to mysql and the hiveserver2 is running now.
@tj2007 I setup a new username and password in mysql. Thank you 🙂
Created ‎05-19-2024 07:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @adsejnf Can you check is hive server2 is up and running
Created on ‎05-19-2024 09:41 PM - edited ‎05-19-2024 10:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎05-19-2024 10:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @adsejnf,
have you tried using the username and password as hive & hive respectively? If not, please try it once.
Thanks!
Created ‎05-20-2024 05:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I switched to mysql and the hiveserver2 is running now.
@tj2007 I setup a new username and password in mysql. Thank you 🙂
Created on ‎07-26-2024 09:41 AM - edited ‎07-26-2024 09:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have MSQL and before the servers were turned off Beeline was working, but now it sends me this error message when I connect Beeline version 3.1.3 by Apache Hive
beeline> !connect jdbc:hive2://10.32.14.86:10000/Default; the message is still Could not open connection to the HS2 server. Please check the server URI and if the URI is correct, then ask the administrator to check the server status.
Error: Could not open client transport with JDBC Uri: jdbc:hive2://10.32.14.86:10000/Default;: java.net.ConnectException: Connection refused (state=08S01,code=0). I have already verified in detail all the hive-site.xlm communication files and all the others according to the manuals and they are correct, I have hiveserver & running and with hive I can connect to my databases.
Created on ‎02-20-2025 10:52 AM - edited ‎02-20-2025 10:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you slove this problem?
If you done, please said me solution
