Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15599

RBF: Add API to expose resolved destinations (namespace) in Router

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      We have seen quite often requests like where a path in Router is actually pointed. Two main use cases are:

      1) Calculate the HDFS capacity usage allocation of all Hive tables, whose have onboarded to Router.

      2) A failure prevention method for cross-cluster rename. First check the source HDFS location and dest HDFS location, and then issue a distcp cmd if possible to avoid the Exception.

      Inside Router, the function getLocationsForPath does the work but it is internal only and not visible to Clients.

      RouterAdmin has getMountTableEntries but this is a cast of Mount table without any resolving.

       

      We are proposing adding such an API, and there are two ways:

      1) Adding this API in RouterRpcServer, which requires the change in ClientNameNodeProtocol to include this new API. 

      2) Adding this API in RouterAdminServer, which requires the a protocol between Client and the admin server.

       

      There is one existing resolvePath in FileSystem which can be used to implement this call from client side.

      Attachments

        Activity

          People

            qifan_shi Qifan Shi
            fengnanli Fengnan Li
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: