Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4576 Webhdfs authentication issues
  3. HDFS-4585

Webhdfs sometimes can't negotiate a SPNEGO token

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.0.0-alpha, 0.23.7, 3.0.0-alpha1
    • None
    • webhdfs
    • None

    Description

      I'm not sure if this is a curl problem or webhdfs problem, but webhdfs will reject some users because the Authorization header is too big. In the case below, the header contains 4041 bytes, whereas a keytab user is generating 1745 bytes. The failed user can use webhdfs via "hadoop fs", but not via curl.

      curl -v --negotiate -u : 'http://host/webhdfs/v1/?op=GETDELEGATIONTOKEN'
      > GET /webhdfs/v1/?op=GETDELEGATIONTOKEN HTTP/1.1
      > Authorization: Negotiate <<4041 bytes>>
      > User-Agent: curl/7.19.5
      > Host: host
      > Accept: */*
      > 
      < HTTP/1.1 413 FULL head
      < Connection: close
      < Server: Jetty(6.1.26)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              daryn Daryn Sharp
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: