diff --git standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 9eb1193a27..2d6167d71f 100644 --- standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -613,7 +613,7 @@ private void open() throws MetaException { try { if (!transport.isOpen()) { transport.open(); - LOG.info("Opened a connection to metastore, current connections: " + connCount.incrementAndGet()); + LOG.info("Opened a connection to metastore, URI (" + store + ") current connections: " + connCount.incrementAndGet()); if (LOG.isTraceEnabled()) { LOG.trace("", new LogUtils.StackTraceLogger("METASTORE CONNECTION TRACE - open - " + System.identityHashCode(this))); @@ -623,10 +623,10 @@ private void open() throws MetaException { } catch (TTransportException e) { tte = e; if (LOG.isDebugEnabled()) { - LOG.warn("Failed to connect to the MetaStore Server...", e); + LOG.warn("Failed to connect to the MetaStore Server..." + store, e); } else { // Don't print full exception trace if DEBUG is not on. - LOG.warn("Failed to connect to the MetaStore Server..."); + LOG.warn("Failed to connect to the MetaStore Server..." + store); } }