You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2022/03/04 07:37:50 UTC

[phoenix-queryserver] branch master updated: PHOENIX-6661 Sqlline does not work on PowerPC linux

This is an automated email from the ASF dual-hosted git repository.

stoty pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix-queryserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 78f9a1f  PHOENIX-6661 Sqlline does not work on PowerPC linux
78f9a1f is described below

commit 78f9a1f3013ba6bc9a908f704aae1576f31684f1
Author: Istvan Toth <st...@cloudera.com>
AuthorDate: Thu Mar 3 09:09:43 2022 +0100

    PHOENIX-6661 Sqlline does not work on PowerPC linux
---
 bin/sqlline-thin.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bin/sqlline-thin.py b/bin/sqlline-thin.py
index c763f98..e5ef5f4 100755
--- a/bin/sqlline-thin.py
+++ b/bin/sqlline-thin.py
@@ -145,6 +145,11 @@ colorSetting = tryDecode(args.color)
 if os.name == 'nt':
     colorSetting = "false"
 
+if os.uname()[4].startswith('ppc'):
+    disable_jna = " -Dorg.jline.terminal.jna=false "
+else:
+    disable_jna = ""
+
 # HBase configuration folder path (where hbase-site.xml reside) for
 # HBase/Phoenix client side property override
 hbase_config_path = os.getenv('HBASE_CONF_DIR', phoenix_queryserver_utils.current_dir)
@@ -209,6 +214,7 @@ java_cmd = java + ' $PHOENIX_OPTS ' + \
     os.pathsep + phoenix_queryserver_utils.slf4j_backend_jar + '" -Dlog4j.configuration=file:' + \
     os.path.join(phoenix_queryserver_utils.current_dir, "log4j.properties") + \
     ' -Djavax.security.auth.useSubjectCredsOnly=false ' + \
+    disable_jna + \
     " org.apache.phoenix.queryserver.client.SqllineWrapper -d org.apache.phoenix.queryserver.client.Driver " + \
     ' -u "' + jdbc_url + '"' + " -n none -p none " + \
     " --color=" + colorSetting + " --fastConnect=" + tryDecode(args.fastconnect) + " --verbose=" + tryDecode(args.verbose) + \