Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-3602

hdfs du fails due to prepended / on path

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.24.2, 0.25.1, 0.26.0
    • Component/s: fetcher
    • Labels:
      None

      Description

      hdfs.hpp du() fails to run. It appears to prepend "/" but the path passed in is a uri of something like "hdfs:///a/path/to/artifact.tar.gz".

      W1007 13:46:25.791894 373116928 fetcher.cpp:436] Reverting to fetching directly into the sandbox for 'hdfs:///a/path/to/3.3.2-SNAPSHOT/executor-3.3.2-SNAPSHOT-artifact-with-dependencies-archive.tar.gz', due to failure to fetch through the cache, with error: Could not determine size of cache file for 'lexinator@hdfs:///a/path/to/3.3.2-SNAPSHOT/executor-3.3.2-SNAPSHOT-artifact-with-dependencies-archive.tar.gz' with error: Hadoop client could not determine size: HDFS du returned an unexpected number of results: '2015-10-07 13:46:21,958 WARN  [main] util.NativeCodeLoader (NativeCodeLoader.java:<clinit>(62)) - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      -du: java.net.URISyntaxException: Expected scheme-specific part at index 5: hdfs:
      Usage: hadoop fs [generic options] -du [-s] [-h] <path> ...
      

      The command it's running is:

      /usr/bin/env bash /.../hadoop fs -du -h /hdfs:///a/path/to/3.3.2-SNAPSHOT/executor-3.3.2-SNAPSHOT-artifact-with-dependencies-archive.tar.gz
      

        Issue Links

          Activity

          Hide
          bernd-mesos Bernd Mathiske added a comment -

          commit 870dde216bfe6f959654c4cb9f72d3876f9e2d56
          Author: James Peach <jpeach@apache.org>
          Date: Wed Nov 4 13:07:00 2015 +0100

          Allow hdfs URLs in the HDFS wrapper API.

          Review: https://reviews.apache.org/r/39799

          Show
          bernd-mesos Bernd Mathiske added a comment - commit 870dde216bfe6f959654c4cb9f72d3876f9e2d56 Author: James Peach <jpeach@apache.org> Date: Wed Nov 4 13:07:00 2015 +0100 Allow hdfs URLs in the HDFS wrapper API. Review: https://reviews.apache.org/r/39799
          Hide
          haosdent@gmail.com haosdent added a comment -

          I think you could add Bernd Mathiske as reviewer . He is the author of fetcher.

          Show
          haosdent@gmail.com haosdent added a comment - I think you could add Bernd Mathiske as reviewer . He is the author of fetcher.
          Show
          jamespeach James Peach added a comment - https://reviews.apache.org/r/39799/
          Hide
          jamespeach James Peach added a comment -

          I think the right approach here is to allow the HDFS wrapper to accept hdfs:// URLs, since they are also an absolute path into HDFS. I considered allowing the caller to explicitly set the HFDS namenode, but that seems burdensome when operators can already express that in the HDFS URL.

          Show
          jamespeach James Peach added a comment - I think the right approach here is to allow the HDFS wrapper to accept hdfs:// URLs, since they are also an absolute path into HDFS. I considered allowing the caller to explicitly set the HFDS namenode, but that seems burdensome when operators can already express that in the HDFS URL.

            People

            • Assignee:
              jamespeach James Peach
              Reporter:
              lexinator alexius ludeman
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development