Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4442

Eliminate redundant RPC call to get file information in HPath.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.15.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The HPath class makes 2 separate calls to FileSystem#getFileStatus to get the block size and replication. In the case of HDFS, this results in 2 separate but identical RPC transactions with the NameNode. The situation is the same for many other alternative FileSystem implementations too. We can get a minor latency improvement and lighten some RPC load on the remote services by using a single call and getting the block size and replication from the same response.

        Attachments

        1. PIG-4442.001.patch
          1.0 kB
          Chris Nauroth

          Issue Links

            Activity

              People

              • Assignee:
                cnauroth Chris Nauroth
                Reporter:
                cnauroth Chris Nauroth
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: