瀏覽代碼

AMBARI-15328 : Exception on manual start of AMS is misleading (avijayan)

Aravindan Vijayan 9 年之前
父節點
當前提交
549e70e270
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ambari-metrics/ambari-metrics-timelineservice/conf/unix/ambari-metrics-collector

+ 1 - 1
ambari-metrics/ambari-metrics-timelineservice/conf/unix/ambari-metrics-collector

@@ -291,7 +291,7 @@ function start()
     # Wait until METRIC_* tables created
     for retry in {1..5}
     do
-      echo 'list' | ${HBASE_CMD} --config ${HBASE_CONF_DIR} shell | grep ^${METRIC_TABLES[0]} > /dev/null 2>&1
+      echo 'list' | ${HBASE_CMD} --config ${HBASE_CONF_DIR} shell 2> /dev/null | grep ^${METRIC_TABLES[0]} > /dev/null 2>&1
       if [ $? -eq 0 ]; then
         echo "$(date) Ambari Metrics data model initialization completed." | tee -a $STARTUPFILE
         break