Hadoop Common
  1. Hadoop Common
  2. HADOOP-1551

libhdfs API is out of sync with Filesystem API

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.14.0
    • Component/s: None
    • Labels:
      None

      Description

      Right now libhdfs only allows to set replication at file creation time. Would be very convenient to have a libhdfs method dedicated to set the replication of a file.

      1. libhdfs_setrep.txt
        11 kB
        Sameer Paranjpye

        Activity

        Hide
        dhruba borthakur added a comment -

        I just committed this. Thanks Sameer.

        Show
        dhruba borthakur added a comment - I just committed this. Thanks Sameer.
        Hide
        Hadoop QA added a comment -

        -1, build or testing failed

        2 attempts failed to build and test the latest attachment http://issues.apache.org/jira/secure/attachment/12362632/libhdfs_setrep.txt against trunk revision r559886.

        Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/474/testReport/
        Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/474/console

        Please note that this message is automatically generated and may represent a problem with the automation system and not the patch.

        Show
        Hadoop QA added a comment - -1, build or testing failed 2 attempts failed to build and test the latest attachment http://issues.apache.org/jira/secure/attachment/12362632/libhdfs_setrep.txt against trunk revision r559886. Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/474/testReport/ Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/474/console Please note that this message is automatically generated and may represent a problem with the automation system and not the patch.
        Hide
        Sameer Paranjpye added a comment -

        The libhdfs API has fallen out of sync with the FileSystem API. It does not have a setReplication method as pointed out above. In addition, getFileStatus is also not implemented, last mod time, block size, replication are not available through libhdfs.

        Show
        Sameer Paranjpye added a comment - The libhdfs API has fallen out of sync with the FileSystem API. It does not have a setReplication method as pointed out above. In addition, getFileStatus is also not implemented, last mod time, block size, replication are not available through libhdfs.
        Hide
        Christian Kunz added a comment -

        I created another issue HADOOP-1595 asking for an option to wait for completion of replication. Once implemented, this option should be available in libhdfs as well.

        Show
        Christian Kunz added a comment - I created another issue HADOOP-1595 asking for an option to wait for completion of replication. Once implemented, this option should be available in libhdfs as well.

          People

          • Assignee:
            Sameer Paranjpye
            Reporter:
            Christian Kunz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development