Check also hive metastore port when checking hadoop
It takes the most for hadoop docker image to make metastore available.
Sometimes it happened that product tests got failure due being unable to
connect the metastore.
@@ -25,7 +25,9 @@ function hadoop_master_container(){
}
function check_hadoop() {
- docker exec $(hadoop_master_container) supervisorctl status hive-server2 | grep -iq running
+ HADOOP_MASTER_CONTAINER=$(hadoop_master_container)
+ docker exec ${HADOOP_MASTER_CONTAINER} supervisorctl status hive-server2 | grep -iq running && \
+ docker exec ${HADOOP_MASTER_CONTAINER} netstat -lpn | grep -iq 0.0.0.0:10000
}
function stop_unnecessary_hadoop_services() {
