Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-158

EmptyStackException while getting webhcat job queue in secure cluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.3.0
    • 0.3.0
    • None
    • None

    Description

      Hitting EmptyStackException while getting webhcat job queue in secure cluster

      Using curl command
      curl -v -k -i -u guest:guest-password -X GET https://localhost:8443/gateway/sandbox/templeton/v1/queue

      Snippet from gateway console

      13/09/25 07:21:06 DEBUG http.headers: >> GET /templeton/v1/queue?doAs=guest HTTP/1.1
      13/09/25 07:21:06 DEBUG http.headers: >> Host: localhost:8443
      13/09/25 07:21:06 DEBUG http.headers: >> Accept: /
      13/09/25 07:21:06 DEBUG http.headers: >> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5
      13/09/25 07:21:06 DEBUG http.headers: >> Cookie: hadoop.auth="u=knox&p=knox/knox@EXAMPLE.COM&t=kerberos&e=1380154736701&s=IlZuv3ShpnomJ7S5F0ho6BEb9gQ="
      13/09/25 07:21:06 DEBUG http.headers: >> Connection: Keep-Alive
      13/09/25 07:21:26 DEBUG http.wire: << "HTTP/1.1 200 OK[\r][\n]"
      13/09/25 07:21:26 DEBUG http.wire: << "Content-Type: application/json[\r][\n]"
      13/09/25 07:21:26 DEBUG http.wire: << "Transfer-Encoding: chunked[\r][\n]"
      13/09/25 07:21:26 DEBUG http.wire: << "Server: Jetty(7.6.0.v20120127)[\r][\n]"
      13/09/25 07:21:26 DEBUG http.wire: << "[\r][\n]"
      13/09/25 07:21:26 DEBUG conn.DefaultClientConnection: Receiving response: HTTP/1.1 200 OK
      13/09/25 07:21:26 DEBUG http.headers: << HTTP/1.1 200 OK
      13/09/25 07:21:26 DEBUG http.headers: << Content-Type: application/json
      13/09/25 07:21:26 DEBUG http.headers: << Transfer-Encoding: chunked
      13/09/25 07:21:26 DEBUG http.headers: << Server: Jetty(7.6.0.v20120127)
      13/09/25 07:21:26 DEBUG client.DefaultHttpClient: Connection can be kept alive indefinitely
      13/09/25 07:21:26 INFO hadoop.gateway: Dispatch response status: 200
      13/09/25 07:21:26 DEBUG http.wire: << "1A[\r][\n]"
      13/09/25 07:21:26 DEBUG http.wire: << "["job_1380115296973_0001"]"
      13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter: java.util.EmptyStackException
      13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter: javax.servlet.ServletException: java.util.EmptyStackException
      13/09/25 07:21:26 DEBUG servlet.AdviceFilter: Filter execution resulted in an unexpected Exception (not IOException or ServletException as the Filter API recommends). Wrapping in ServletException and propagating.
      13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter: javax.servlet.ServletException: org.apache.shiro.subject.ExecutionException: java.security.PrivilegedActionException: javax.servlet.ServletException: java.util.EmptyStackException
      13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter: javax.servlet.ServletException: org.apache.shiro.subject.ExecutionException: java.security.PrivilegedActionException: javax.servlet.ServletException: java.util.EmptyStackException
      13/09/25 07:21:26 ERROR hadoop.gateway: Failed to execute filter: javax.servlet.ServletException: org.apache.shiro.subject.ExecutionException: java.security.PrivilegedActionException: javax.servlet.ServletException: java.util.EmptyStackException

      This snippet indicates webhcat responded with 200 ok but Knox runs into EmptyStackException.

      Attachments

        Activity

          People

            kminder Kevin Minder
            darumugam Dilli Arumugam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: