Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-24233

Client getting stuck infinitely while connecting to thrift2 server in Secure mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.3
    • None
    • Thrift
    • None

    Description

      Tried connecting thrift2 server to test PUT operation from a secure client
      to 1.3.x server . It works fine , But when same operation is performed in
      2.2.3 server, client is getting stuck infinitely. it's unable to connect to
      server .

      Exception in thread "main" java.security.PrivilegedActionException:
      org.apache.thrift.transport.TTransportException: java.net.SocketTimeoutException: Read
      timed out
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:422)
      at org.apache.hadoop.hbase.thrift2.GitDemoClient.main(GitDemoClient.java:80)
      Caused by: org.apache.thrift.transport.TTransportException:
      java.net.SocketTimeoutException: Read timed out
      at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:129)
      at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
      at
      org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:178)
      at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:277)
      at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:38)
      at org.apache.hadoop.hbase.thrift2.GitDemoClient.run(GitDemoClient.java:117)
      at org.apache.hadoop.hbase.thrift2.GitDemoClient$1.run(GitDemoClient.java:84)
      at org.apache.hadoop.hbase.thrift2.GitDemoClient$1.run(GitDemoClient.java:1)
      ... 3 more
      Caused by: java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
      at java.net.SocketInputStream.read(SocketInputStream.java:171)
      at java.net.SocketInputStream.read(SocketInputStream.java:141)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
      at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
      ... 10 more

      Getting above exception when timeout has been set at client side.

      References

      https://github.com/apache/hbase/blob/master/hbase-examples/src/main/java/org/apache/hadoop/hbase/thrift2/DemoClient.java

      https://hbase.apache.org/book.html#hbase.secure.configuration (section
      60.4) Client-side Configuration for Secure operation- Thrift Gateway

      Attachments

        Activity

          People

            Unassigned Unassigned
            Ashok_shetty Ashok shetty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: