public boolean isContainerReady(ProcessResults pr) {
        return pr.stdout.contains("database system is ready to accept connections") &&
            pr.stderr.contains("database system is ready to accept connections");
    }
MySQLExternalDB is a extension of abstractExternalDB
Designed for MySQL external database connection
itests/util/src/main/java/org/apache/hadoop/hive/ql/externalDB/PostgresExternalDB.java