Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-7078

SqlLine: IOException: Resource temporarily unavailable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.13.0
    • Future
    • Client - CLI
    • None

    Description

      The IOException is thrown from JLine in the process of using Drill WebUI with SPNEGO enabled.
      drill-override.conf content:

      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”]
                  }
      }
      
      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)
      

      After referring to the Drill WebUI and opening any web page the following exception is thrown from Drill SqlLine:

      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>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vitalii Vitalii Diravka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: