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:34:01 UTC

[phoenix] branch 4.16 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 4.16
in repository https://gitbox.apache.org/repos/asf/phoenix.git


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

commit 5a6272bcd419eda3a5c65d8ceb874f1ecb9efd27
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 4a2d62f..39b76d5 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) + \