This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch 5.1 in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/5.1 by this push: new 5385f96 PHOENIX-6661 Sqlline does not work on PowerPC linux 5385f96 is described below commit 5385f9683505e27d712dfd25457fe8904f4e3a4e 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) + \