Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-12615 Router-based HDFS federation phase 2
  3. HDFS-13508

RBF: Normalize paths (automatically) when adding, updating, removing or listing mount table entries

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.10.0, 3.2.0, 3.1.1, 2.9.2, 3.0.3
    • None
    • None
    • Reviewed

    Description

      me@gateway-hawaii-all:/mnt/host/bin$ hdfs dfsrouteradmin -ls /home/move 
      Mount Table Entries:
      Source Destinations Owner Group Mode 
      /home/move hdfs-oahu->/home/move me hadoop rwxr-xr-x

      me@gateway-hawaii-all:/mnt/host/bin$ hdfs dfsrouteradmin -ls /home/move/
      Mount Table Entries:
      Source Destinations Owner Group Mode

      me@gateway-hawaii-all:/mnt/host/bin$ hdfs dfsrouteradmin -rm /home/move/
      Cannot remove mount point /home/move/

      me@gateway-hawaii-all:/mnt/host/bin$ hdfs dfsrouteradmin -add /home/move/ hdfs-oahu /home/move/ -readonly
      Cannot add mount point /home/move/

      The slash '/' at the end should be normalized before calling the API from the CLI.

      Note: add command fails with a terminating '/' . when it is an existing entry (it checks the not-normalized value with the normalized value in the mount-table). Adding a new mount point with '/' at the end works because the CLI normalizes the mount before calling the API.

      Attachments

        1. HDFS-13508.003.patch
          10 kB
          Ekanth Sethuramalingam
        2. HDFS-13508.002.patch
          10 kB
          Ekanth Sethuramalingam
        3. HDFS-13508.001.patch
          7 kB
          Ekanth Sethuramalingam

        Activity

          People

            ekanth Ekanth Sethuramalingam
            ekanth Ekanth Sethuramalingam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: