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

Upgrade Knox 0.9.1 to 0.12 - Url matching failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Cannot Reproduce
    • 0.12.0
    • 0.13.0
    • Release
    • None
    • Hadoop Cluster
      LDAP/Kerberos

    Description

      Hello,
      I'm trying to upgrade our Knox on Preproduction plateform from version 0.9.1 to 0.12, (I deployed the same configuration, i don't see any big differencies on this side).
      Logs seems to be identicals

      I'm trying these commands :

      ./bin/knoxcli.sh user-auth-test --cluster bigdata --u user--p passwd--g --d
      ./bin/knoxcli.sh validate-topology --cluster bigdata
      

      And it works for the two versions.

      But when I'm trying to contact webhdfs with this curl command
      curl -ivk -u user-X GET 'https://knox01:8443/gateway/bigdata/webhdfs/v1/user?OP=LISTSTATUS'

      with 0.9.1 :

      2017-04-03T15:36:24.111779+02:00 localhost 17/04/03 15:36:24 ||e196f2d6-bdbe-4e66-b707-8d52c8bafd98|audit|WEBHDFS||||access|uri|/gateway/bigdata/webhdfs/v1/user/user?OP=LISTSTATUS|unavailable|Request method: GET
      2017-04-03T15:36:24.112571+02:00 localhost 17/04/03 15:36:24 ||e196f2d6-bdbe-4e66-b707-8d52c8bafd98|audit|WEBHDFS|user|||authentication|uri|/gateway/bigdata/webhdfs/v1/user?OP=LISTSTATUS|success|
      2017-04-03T15:36:24.112709+02:00 localhost 17/04/03 15:36:24 ||e196f2d6-bdbe-4e66-b707-8d52c8bafd98|audit|WEBHDFS|user|||authentication|uri|/gateway/bigdata/webhdfs/v1/user?OP=LISTSTATUS|success|Groups: []
      2017-04-03T15:36:24.114225+02:00 localhost 17/04/03 15:36:24 ||e196f2d6-bdbe-4e66-b707-8d52c8bafd98|audit|WEBHDFS|user|||dispatch|uri|http://namenode01:50070/webhdfs/v1/user?doAs=user&OP=LISTSTATUS|unavailable|Request method: GET
      2017-04-03T15:36:24.146810+02:00 localhost 17/04/03 15:36:24 ||e196f2d6-bdbe-4e66-b707-8d52c8bafd98|audit|WEBHDFS|user|||dispatch|uri|http://namenode01:50070/webhdfs/v1/user?doAs=user&OP=LISTSTATUS|success|Response status: 200
      2017-04-03T15:36:24.152511+02:00 localhost 17/04/03 15:36:24 ||e196f2d6-bdbe-4e66-b707-8d52c8bafd98|audit|WEBHDFS|user|||access|uri|/gateway/bigdata/webhdfs/v1/user?OP=LISTSTATUS|success|Response status: 200
      

      whith 0.12 :

      2017-04-03T15:37:01.651295+02:00 localhost 17/04/03 15:37:01 ||8c8c0ef2-db5c-4bc4-83c3-5ef35a7e482e|audit|||||access|uri|/gateway/bigdata/gateway/bigdata/webhdfs/v1/user/gateway/bigdata/webhdfs/v1/user?OP=LISTSTATUS|unavailable|Request method: GET
      2017-04-03T15:37:01+02:00 knox01 knox WARN - org.apache.hadoop.gatewayFailed to match path /gateway/bigdata/webhdfs/v1/user
      2017-04-03T15:37:01.652123+02:00 localhost 17/04/03 15:37:01 ||8c8c0ef2-db5c-4bc4-83c3-5ef35a7e482e|audit|||||access|uri|/gateway/bigdata/gateway/bigdata/webhdfs/v1/user/gateway/bigdata/webhdfs/v1/user?OP=LISTSTATUS|success|Response status: 404
      

      Authentication is not tested and namenode is not call on Knox 0.12 because uri matching reveal an error, i don't know why Knox add "gateway/bigdata" many times on uri...

      Regards.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Yoann Yoann Bellet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: