[ 
https://issues.apache.org/jira/browse/HIVE-29709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HIVE-29709:
----------------------------------
    Labels: pull-request-available  (was: )

> Add health check to docker 
> ---------------------------
>
>                 Key: HIVE-29709
>                 URL: https://issues.apache.org/jira/browse/HIVE-29709
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Ayush Saxena
>            Assignee: Ayush Saxena
>            Priority: Major
>              Labels: pull-request-available
>
> Currently once the docker cluster is started, it is isn't in ready state & 
> the beeline connect fails
> {noformat}
> [+] Building 0.0s (0/0)
> [+] Running 7/7
>  ✔ Network hive             Created                                           
>                                                                               
>                             0.0s
>  ✔ Volume "hive_hive-db"    Created                                           
>                                                                               
>                             0.0s
>  ✔ Volume "hive_warehouse"  Created                                           
>                                                                               
>                             0.0s
>  ✔ Volume "hive_scratch"    Created                                           
>                                                                               
>                             0.0s
>  ✔ Container postgres       Started                                           
>                                                                               
>                             1.4s
>  ✔ Container metastore      Started                                           
>                                                                               
>                             1.1s
>  ✔ Container hiveserver2    Started                                           
>                                                                               
>                             1.1s
> ayushsaxena@Q3NW54Y0C5 docker % docker exec -it hiveserver2 beeline -u 
> 'jdbc:hive2://hiveserver2:10000/'
> Connecting to jdbc:hive2://hiveserver2:10000/
> 26/07/06 14:22:15 [main]: WARN jdbc.HiveConnection: Failed to connect to 
> hiveserver2: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://hiveserver2:10000/: java.net.ConnectException: Connection 
> refused (state=08S01,code=0)
> ayushsaxena@Q3NW54Y0C5 docker % docker exec -it hiveserver2 beeline -u 
> 'jdbc:hive2://hiveserver2:10000/'
> Connecting to jdbc:hive2://hiveserver2:10000/
> 26/07/06 14:22:20 [main]: WARN jdbc.HiveConnection: Failed to connect to 
> hiveserver2: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://hiveserver2:10000/: java.net.ConnectException: Connection 
> refused (state=08S01,code=0)
> ayushsaxena@Q3NW54Y0C5 docker % docker exec -it hiveserver2 beeline -u 
> 'jdbc:hive2://hiveserver2:10000/'
> Connecting to jdbc:hive2://hiveserver2:10000/
> 26/07/06 14:22:25 [main]: WARN jdbc.HiveConnection: Failed to connect to 
> hiveserver2: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://hiveserver2:10000/: java.net.ConnectException: Connection 
> refused (state=08S01,code=0)
> ayushsaxena@Q3NW54Y0C5 docker % docker exec -it hiveserver2 beeline -u 
> 'jdbc:hive2://hiveserver2:10000/'
> Connecting to jdbc:hive2://hiveserver2:10000/
> 26/07/06 14:22:37 [main]: WARN jdbc.HiveConnection: Failed to connect to 
> hiveserver2: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://hiveserver2:10000/: java.net.ConnectException: Connection 
> refused (state=08S01,code=0)
> ayushsaxena@Q3NW54Y0C5 docker % docker exec -it hiveserver2 beeline -u 
> 'jdbc:hive2://hiveserver2:10000/'
> Connecting to jdbc:hive2://hiveserver2:10000/
> 26/07/06 14:22:41 [main]: WARN jdbc.HiveConnection: Failed to connect to 
> hiveserver2: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://hiveserver2:10000/: java.net.ConnectException: Connection 
> refused (state=08S01,code=0)
> ayushsaxena@Q3NW54Y0C5 docker %
> {noformat}
> Which is very confusing behaviour, add a health check to make sure when the 
> script ends, the cluster is usable



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to