You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sandy Ryza (JIRA)" <ji...@apache.org> on 2015/06/06 02:37:00 UTC
[jira] [Commented] (SPARK-8135) Don't load defaults when
reconstituting Hadoop Configurations
[ https://issues.apache.org/jira/browse/SPARK-8135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14575463#comment-14575463 ]
Sandy Ryza commented on SPARK-8135:
-----------------------------------
Cool. Updated the PR with SerializableConfiguration.
> Don't load defaults when reconstituting Hadoop Configurations
> -------------------------------------------------------------
>
> Key: SPARK-8135
> URL: https://issues.apache.org/jira/browse/SPARK-8135
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Reporter: Sandy Ryza
> Assignee: Sandy Ryza
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org