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:32:28 UTC

[phoenix] 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.git


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

commit 74c29741799d1c87c2f410c10c21cf08ce402069
Author: Istvan Toth <st...@apache.org>
AuthorDate: Thu Mar 3 08:46:02 2022 +0100

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

diff --git a/bin/sqlline.py b/bin/sqlline.py
index 5d95e0e..615decb 100755
--- a/bin/sqlline.py
+++ b/bin/sqlline.py
@@ -107,6 +107,12 @@ colorSetting = tryDecode(args.color)
 if os.name == 'nt':
     colorSetting = "false"
 
+#See PHOENIX-6661
+if os.uname()[4].startswith('ppc'):
+    disable_jna = " -Dorg.jline.terminal.jna=false "
+else:
+    disable_jna = ""
+
 java_cmd = java + ' $PHOENIX_OPTS ' + \
     ' -cp "' + phoenix_utils.hbase_conf_dir + os.pathsep + \
     phoenix_utils.hadoop_conf + os.pathsep + \
@@ -115,6 +121,7 @@ java_cmd = java + ' $PHOENIX_OPTS ' + \
     phoenix_utils.logging_jar + os.pathsep + \
     phoenix_utils.phoenix_client_embedded_jar + \
     '" -Dlog4j.configuration=file:' + os.path.join(phoenix_utils.current_dir, "log4j.properties") + \
+    disable_jna + \
     " sqlline.SqlLine -d org.apache.phoenix.jdbc.PhoenixDriver" + \
     " -u jdbc:phoenix:" + phoenix_utils.shell_quote([zookeeper]) + \
     " -n none -p none --color=" + colorSetting + " --fastConnect=" + tryDecode(args.fastconnect) + \