Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-8135

Don't load defaults when reconstituting Hadoop Configurations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • Spark Core
    • None

    Description

      Calling "new Configuration()" is an expensive operation because it loads any Hadoop configuration XMLs from disk.

      In SerializableWritable, we call new Configuration needlessly when instantiating an ObjectWritable. The ObjectWritable only needs the Configuration for its class cache, not for any Hadoop properties that might be in XML files, so it should be ok to call new Configuration with loadDefaults = false.

      Attachments

        Activity

          People

            sandyr Sandy Ryza
            sandyr Sandy Ryza
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: