You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Anton Gozhiy (JIRA)" <ji...@apache.org> on 2019/03/06 12:59:00 UTC
[jira] [Commented] (DRILL-7078) SqlLine: IOException: Resource
temporarily unavailable
[ https://issues.apache.org/jira/browse/DRILL-7078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16785602#comment-16785602 ]
Anton Gozhiy commented on DRILL-7078:
-------------------------------------
There are simpler steps:
# Run Drill in embedded mode (no authentication settings are needed)
# Open the Web-UI (http://localhost:8047/)
# Run some query:
{code:java}
select * from cp.`tpch/nation.parquet`
{code}
Note: It is always reproducible the first time after starting Drill in embedded mode. To reproduce it again, restart Drill or wait for some timeout (several minutes).
> SqlLine: IOException: Resource temporarily unavailable
> ------------------------------------------------------
>
> Key: DRILL-7078
> URL: https://issues.apache.org/jira/browse/DRILL-7078
> Project: Apache Drill
> Issue Type: Bug
> Components: Client - CLI
> Affects Versions: 1.15.0
> Reporter: Vitalii Diravka
> Priority: Minor
> Labels: jline, sqlline
> Fix For: Future
>
>
> The IOException is thrown from JLine in the process of using Drill WebUI with SPNEGO enabled.
> *drill-override.conf* content:
> {code:java}
> drill.exec: {
> cluster-id: "drillbits1",
> zk.connect: "localhost:2181",
> impersonation: {
> enabled: true,
> max_chained_user_hops: 3
> },
> security.user.auth: {
> enabled: true,
> packages += "org.apache.drill.exec.rpc.user.security",
> impl: "pam4j",
> pam_profiles: [ "sudo", "login" ]
> }
> drill.exec.http: {
> spnego.auth.principal:"HTTP/hostname@realm",
> spnego.auth.keytab:"path/to/keytab",
> auth.mechanisms: [“SPNEGO”, “FORM”]
> }
> }
> {code}
> {code:java}
> Apache Drill 1.16.0-SNAPSHOT
> "Got Drill?"
> sqlline> !connect jdbc:drill:zk=local [username] [password]
> 0: jdbc:drill:zk=local> select * from sys.boot where name like '%eng%' limit 2;
> +---------------------------------------------------+-------+-------------------+--------------+---------+----------+-------------+-----------+------------+
> | name | kind | accessibleScopes | optionScope | status | num_val | string_val | bool_val | float_val |
> +---------------------------------------------------+-------+-------------------+--------------+---------+----------+-------------+-----------+------------+
> | drill.exec.options.planner.identifier_max_length | LONG | BOOT | BOOT | BOOT | 1024 | null | null | null |
> +---------------------------------------------------+-------+-------------------+--------------+---------+----------+-------------+-----------+------------+
> 1 row selected (2.268 seconds)
> {code}
> After referring to the Drill WebUI and opening any web page the following exception is thrown from Drill SqlLine:
> {code:java}
> 0: jdbc:drill:zk=local>
> java.io.IOError: java.io.IOException: Resource temporarily unavailable
> at org.jline.keymap.BindingReader.readCharacter(BindingReader.java:143)
> at org.jline.keymap.BindingReader.readBinding(BindingReader.java:110)
> at org.jline.keymap.BindingReader.readBinding(BindingReader.java:61)
> at org.jline.reader.impl.LineReaderImpl.readBinding(LineReaderImpl.java:786)
> at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:558)
> at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:443)
> at sqlline.SqlLine.begin(SqlLine.java:541)
> at sqlline.SqlLine.start(SqlLine.java:264)
> at sqlline.SqlLine.main(SqlLine.java:195)
> Caused by: java.io.IOException: Resource temporarily unavailable
> at java.io.FileInputStream.read0(Native Method)
> at java.io.FileInputStream.read(FileInputStream.java:207)
> at org.jline.terminal.impl.AbstractPty$PtyInputStream.read(AbstractPty.java:65)
> at org.jline.utils.NonBlockingInputStream.read(NonBlockingInputStream.java:62)
> at org.jline.utils.NonBlocking$NonBlockingInputStreamReader.read(NonBlocking.java:168)
> at org.jline.utils.NonBlockingReader.read(NonBlockingReader.java:57)
> at org.jline.keymap.BindingReader.readCharacter(BindingReader.java:133)
> ... 8 more
> 0: jdbc:drill:zk=local>
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)