Repository: incubator-impala
Updated Branches:
  refs/heads/master 428b5a1bf -> 11ec9f195


IMPALA-5495: Improve error message if no impalad role is configured

"Impala server needs to have a role (EXECUTOR, COORDINATOR)"

replaced with:

"Impala does not have a valid role configured. Either --is_coordinator or
--is_executor must be set to true."

Change-Id: Ib8ae09eeaefeda3fab62e66dbcb4f9134082c039
Reviewed-on: http://gerrit.cloudera.org:8080/7167
Reviewed-by: Dimitris Tsirogiannis <[email protected]>
Tested-by: Impala Public Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/11ec9f19
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/11ec9f19
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/11ec9f19

Branch: refs/heads/master
Commit: 11ec9f1958482bbd5dc224f55e409a8ec907f066
Parents: 428b5a1
Author: Henry Robinson <[email protected]>
Authored: Mon Jun 12 22:27:22 2017 -0700
Committer: Impala Public Jenkins <[email protected]>
Committed: Wed Jun 14 01:50:22 2017 +0000

----------------------------------------------------------------------
 be/src/service/impala-server.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/11ec9f19/be/src/service/impala-server.cc
----------------------------------------------------------------------
diff --git a/be/src/service/impala-server.cc b/be/src/service/impala-server.cc
index 6e51e44..ce18b57 100644
--- a/be/src/service/impala-server.cc
+++ b/be/src/service/impala-server.cc
@@ -1918,7 +1918,8 @@ Status CreateImpalaServer(ExecEnv* exec_env, int 
beeswax_port, int hs2_port, int
   DCHECK((hs2_port == 0) == (hs2_server == nullptr));
   DCHECK((be_port == 0) == (be_server == nullptr));
   if (!FLAGS_is_coordinator && !FLAGS_is_executor) {
-    return Status("Impala server needs to have a role (EXECUTOR, 
COORDINATOR)");
+    return Status("Impala does not have a valid role configured. "
+        "Either --is_coordinator or --is_executor must be set to true.");
   }
 
   impala_server->reset(new ImpalaServer(exec_env));

Reply via email to