PHOENIX-3223 Add `hadoop classpath` to PQS classpath when available
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/b1d3933a Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/b1d3933a Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/b1d3933a Branch: refs/heads/4.8-HBase-1.0 Commit: b1d3933a595299504af28bbf0bd2cf13896b5b45 Parents: 8c2642c Author: Josh Elser <els...@apache.org> Authored: Tue Aug 30 15:58:50 2016 -0400 Committer: Josh Elser <els...@apache.org> Committed: Tue Aug 30 18:48:23 2016 -0400 ---------------------------------------------------------------------- bin/queryserver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/b1d3933a/bin/queryserver.py ---------------------------------------------------------------------- diff --git a/bin/queryserver.py b/bin/queryserver.py index 1048adb..1ad8b86 100755 --- a/bin/queryserver.py +++ b/bin/queryserver.py @@ -73,6 +73,7 @@ else: # HBase/Phoenix client side property override hbase_config_path = phoenix_utils.hbase_conf_dir hadoop_config_path = phoenix_utils.hadoop_conf +hadoop_classpath = phoenix_utils.hadoop_classpath # TODO: add windows support phoenix_file_basename = '%s-queryserver' % getpass.getuser() @@ -119,7 +120,8 @@ out_file_path = os.path.join(log_dir, phoenix_out_file) # The command is run through subprocess so environment variables are automatically inherited java_cmd = '%(java)s -cp ' + hbase_config_path + os.pathsep + hadoop_config_path + os.pathsep + \ - phoenix_utils.phoenix_client_jar + os.pathsep + phoenix_utils.phoenix_queryserver_jar + \ + phoenix_utils.phoenix_client_jar + os.pathsep + phoenix_utils.phoenix_queryserver_jar + \ + os.pathsep + hadoop_classpath + \ " -Dproc_phoenixserver" + \ " -Dlog4j.configuration=file:" + os.path.join(phoenix_utils.current_dir, "log4j.properties") + \ " -Dpsql.root.logger=%(root_logger)s" + \