[
https://issues.apache.org/jira/browse/PHOENIX-6661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Istvan Toth updated PHOENIX-6661:
---------------------------------
Description:
When trying to run phoenix-sqlline.py or phoenix-sqlline-thin.py on Linux PPC,
we get the following exception:
{noformat}
Exception in thread "main" com.sun.jna.LastErrorException: [25] Inappropriate
ioctl for device
at com.sun.jna.Native.invokeVoid(Native Method)
at com.sun.jna.Function.invoke(Function.java:415)
at com.sun.jna.Function.invoke(Function.java:361)
at com.sun.jna.Library$Handler.invoke(Library.java:265)
at com.sun.proxy.$Proxy0.ioctl(Unknown Source)
at
org.jline.terminal.impl.jna.linux.LinuxNativePty.getSize(LinuxNativePty.java:95)
at
org.jline.terminal.impl.AbstractPosixTerminal.getSize(AbstractPosixTerminal.java:60)
at org.jline.terminal.Terminal.getWidth(Terminal.java:196)
at sqlline.SqlLine.getConsoleReader(SqlLine.java:594)
at sqlline.SqlLine.begin(SqlLine.java:511)
at sqlline.SqlLine.start(SqlLine.java:267)
at sqlline.SqlLine.main(SqlLine.java:206){noformat}
Upgrading to the latest sqlline 1.12 will result in the sqlline.py starting
normally, but it will not accept any keyboard input.
Replacing the currently used sqlline-*-jar-with-dependencies.jar JAR with the
plain sqlline jar, and NOT adding the JNA and JANSI terminal variants and their
dependencies fixes the problem.
Doing that, however, would break or at least seriously degrade sqlline
functionality on Windows.
was:
When trying to run phoenix-sqlline.py or phoenix-sqlline-thin.py on Linux PPC,
we get the following exception:
{noformat}
Exception in thread "main" com.sun.jna.LastErrorException: [25] Inappropriate
ioctl for device
at com.sun.jna.Native.invokeVoid(Native Method)
at com.sun.jna.Function.invoke(Function.java:415)
at com.sun.jna.Function.invoke(Function.java:361)
at com.sun.jna.Library$Handler.invoke(Library.java:265)
at com.sun.proxy.$Proxy0.ioctl(Unknown Source)
at
org.jline.terminal.impl.jna.linux.LinuxNativePty.getSize(LinuxNativePty.java:95)
at
org.jline.terminal.impl.AbstractPosixTerminal.getSize(AbstractPosixTerminal.java:60)
at org.jline.terminal.Terminal.getWidth(Terminal.java:196)
at sqlline.SqlLine.getConsoleReader(SqlLine.java:594)
at sqlline.SqlLine.begin(SqlLine.java:511)
at sqlline.SqlLine.start(SqlLine.java:267)
at sqlline.SqlLine.main(SqlLine.java:206){noformat}
Upgrading to the latest sqlline 1.12 will result in the sqlline.py starting
normally, but it will not accept any keyboard input.
Replacing the currently used sqlline-*-jar-with-dependencies.jar JAR with the
plain sqlline jar, and NOT adding the JNA and JANSI fixes the problem.
Doing that, however, would break or at least seriously degrade sqlline
functionality on Windows.
> Sqlline does not work on PowerPC linux
> --------------------------------------
>
> Key: PHOENIX-6661
> URL: https://issues.apache.org/jira/browse/PHOENIX-6661
> Project: Phoenix
> Issue Type: Bug
> Reporter: Istvan Toth
> Assignee: Istvan Toth
> Priority: Major
>
> When trying to run phoenix-sqlline.py or phoenix-sqlline-thin.py on Linux PPC,
> we get the following exception:
> {noformat}
> Exception in thread "main" com.sun.jna.LastErrorException: [25] Inappropriate
> ioctl for device
> at com.sun.jna.Native.invokeVoid(Native Method)
> at com.sun.jna.Function.invoke(Function.java:415)
> at com.sun.jna.Function.invoke(Function.java:361)
> at com.sun.jna.Library$Handler.invoke(Library.java:265)
> at com.sun.proxy.$Proxy0.ioctl(Unknown Source)
> at
> org.jline.terminal.impl.jna.linux.LinuxNativePty.getSize(LinuxNativePty.java:95)
> at
> org.jline.terminal.impl.AbstractPosixTerminal.getSize(AbstractPosixTerminal.java:60)
> at org.jline.terminal.Terminal.getWidth(Terminal.java:196)
> at sqlline.SqlLine.getConsoleReader(SqlLine.java:594)
> at sqlline.SqlLine.begin(SqlLine.java:511)
> at sqlline.SqlLine.start(SqlLine.java:267)
> at sqlline.SqlLine.main(SqlLine.java:206){noformat}
> Upgrading to the latest sqlline 1.12 will result in the sqlline.py starting
> normally, but it will not accept any keyboard input.
> Replacing the currently used sqlline-*-jar-with-dependencies.jar JAR with the
> plain sqlline jar, and NOT adding the JNA and JANSI terminal variants and
> their dependencies fixes the problem.
> Doing that, however, would break or at least seriously degrade sqlline
> functionality on Windows.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)