Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-6002

Range support when serving a container log

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 2.7.3
    • None
    • nodemanager
    • None

    Description

      Currently, when we access a container's logfile (via /ws/v1/node/containerlogs/) we can only get the full content, not a specified range.

      Support for the Range: header would improve this, special when dealing with big files that need to be tailed or streamed, i.e.:

          curl -H 'Range: bytes=10240' \
            http://node:8042/ws/v1/node/containerlogs/container_XXX/stdout
      

      Attachments

        1. YARN-6002-branch-2.7.001.patch
          8 kB
          Raúl Gutiérrez Segalés

        Activity

          People

            Unassigned Unassigned
            rgs Raúl Gutiérrez Segalés
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: