Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17028

ViewFS should initialize target filesystems lazily

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Currently viewFS initialize all configured target filesystems when viewfs#init itself.

      Some target file system initialization involve creating heavy objects and proxy connections. Ex: DistributedFileSystem#initialize will create DFSClient object which will create proxy connections to NN etc.
      For example: if ViewFS configured with 10 target fs with hdfs uri and 2 targets with s3a.

      If one of the client only work with s3a target, But ViewFS will initialize all targets irrespective of what clients interested to work with. That means, here client will create 10 DFS initializations and 2 s3a initializations. Its unnecessary to have DFS initialization here. So, it will be a good idea to initialize the target fs only when first time usage call come to particular target fs scheme. 

      Attachments

        Issue Links

          Activity

            People

              abhishekd Abhishek Das
              umamaheswararao Uma Maheswara Rao G
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 7h 50m
                  7h 50m