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

Service URLs not rewritten for WebHDFS GET redirects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.2.0
    • 0.3.0
    • Server
    • None

    Description

      In one console from Knox project root run:
      ant verify install-test-home start-test-servers

      In another console from the Knox project root run:
      cd install/knox-incubating-0.3.0-SNAPSHOT
      java -jar bin/shell.jar samples/ExampleHdfs.groovy

      Note: ant install-test-home creates

      {GATEWAY_HOME}

      as install/knox-incubating-0.3.0-SNAPSHOT from the project root.

      Note: ant start-test-servers starts the gateway listening (but not waiting) on port 5005 for a debugger connection.

      Note: Sandbox setup via vagrant from HDP2Beta branch at e693243929583a30edfcc656beff2d96a6966528

      Error output from console shell:
      Caught: org.apache.hadoop.gateway.shell.HadoopException: org.apache.hadoop.gateway.shell.ErrorResponse: HTTP/1.1 404 Not Found
      org.apache.hadoop.gateway.shell.HadoopException: org.apache.hadoop.gateway.shell.ErrorResponse: HTTP/1.1 404 Not Found
      at org.apache.hadoop.gateway.shell.AbstractRequest.now(AbstractRequest.java:72)
      at org.apache.hadoop.gateway.shell.AbstractRequest$now.call(Unknown Source)
      at ExampleHdfs.run(ExampleHdfs.groovy:34)
      at org.apache.hadoop.gateway.shell.Shell.main(Shell.java:40)
      at org.apache.hadoop.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:64)
      at org.apache.hadoop.gateway.launcher.Invoker.invoke(Invoker.java:37)
      at org.apache.hadoop.gateway.launcher.Command.run(Command.java:101)
      at org.apache.hadoop.gateway.launcher.Launcher.run(Launcher.java:70)
      at org.apache.hadoop.gateway.launcher.Launcher.main(Launcher.java:49)
      Caused by: org.apache.hadoop.gateway.shell.ErrorResponse: HTTP/1.1 404 Not Found
      at org.apache.hadoop.gateway.shell.Hadoop.executeNow(Hadoop.java:107)
      at org.apache.hadoop.gateway.shell.AbstractRequest.execute(AbstractRequest.java:47)
      at org.apache.hadoop.gateway.shell.hdfs.Get$Request.access$300(Get.java:34)
      at org.apache.hadoop.gateway.shell.hdfs.Get$Request$1.call(Get.java:61)
      at org.apache.hadoop.gateway.shell.hdfs.Get$Request$1.call(Get.java:55)
      at org.apache.hadoop.gateway.shell.AbstractRequest.now(AbstractRequest.java:70)
      ... 8 more

      No error output from gateway shell. This needs to be fixed as part of this issue or, KNOX-108, KNOX-109

      Attachments

        Activity

          People

            kminder Kevin Minder
            kminder Kevin Minder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: