Skip to content

Commit

Permalink
PHOENIX-6661 Sqlline does not work on PowerPC linux
Browse files Browse the repository at this point in the history
  • Loading branch information
stoty committed Mar 4, 2022
1 parent b593892 commit 78f9a1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/sqlline-thin.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ def get_spnego_auth_disabled():
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)
Expand Down Expand Up @@ -209,6 +214,7 @@ def get_spnego_auth_disabled():
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) + \
Expand Down

0 comments on commit 78f9a1f

Please sign in to comment.