瀏覽代碼

[indexer] Provide a better hint about misconfigured Zookeeper ensemble

Romain Rigaux 11 年之前
父節點
當前提交
69aa132d23
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      desktop/libs/indexer/src/indexer/controller.py

+ 3 - 2
desktop/libs/indexer/src/indexer/controller.py

@@ -125,8 +125,9 @@ class CollectionManagerController(object):
       shutil.rmtree(tmp_path)
 
       if status != 0:
-        LOG.error("Cloud not create instance directory.\nOutput stream: %s\nError stream: %s" % process.communicate())
-        raise PopupException(_('Could not create instance directory. Check error logs for more info.'))
+        LOG.error("Could not create instance directory.\nOutput: %s\nError: %s" % process.communicate())
+        raise PopupException(_('Could not create instance directory. '
+                               'Check if [indexer] solr_zk_ensemble is correct in Hue config and look at the Solr error logs for more info.'))
 
       api = SolrApi(SOLR_URL.get(), self.user, SECURITY_ENABLED.get())
       if not api.create_collection(name):