diff options
author | Anderson de Andrade <adeandrade@verticalscope.com> | 2015-12-03 16:37:00 -0800 |
---|---|---|
committer | Marcelo Vanzin <vanzin@cloudera.com> | 2015-12-03 16:37:00 -0800 |
commit | f434f36d508eb4dcade70871611fc022ae0feb56 (patch) | |
tree | 7a667a6e62d87e59bc64ecdef9dbc5dd11d9a34c /sql/core/src/main/resources/META-INF | |
parent | 2213441e5e0fba01e05826257604aa427cdf2598 (diff) | |
download | spark-f434f36d508eb4dcade70871611fc022ae0feb56.tar.gz spark-f434f36d508eb4dcade70871611fc022ae0feb56.tar.bz2 spark-f434f36d508eb4dcade70871611fc022ae0feb56.zip |
[SPARK-12056][CORE] Create a TaskAttemptContext only after calling setConf.
TaskAttemptContext's constructor will clone the configuration instead of referencing it. Calling setConf after creating TaskAttemptContext makes any changes to the configuration made inside setConf unperceived by RecordReader instances.
As an example, Titan's InputFormat will change conf when calling setConf. They wrap their InputFormat around Cassandra's ColumnFamilyInputFormat, and append Cassandra's configuration. This change fixes the following error when using Titan's CassandraInputFormat with Spark:
*java.lang.RuntimeException: org.apache.thrift.protocol.TProtocolException: Required field 'keyspace' was not present! Struct: set_key space_args(keyspace:null)*
There's a discussion of this error here: https://groups.google.com/forum/#!topic/aureliusgraphs/4zpwyrYbGAE
Author: Anderson de Andrade <adeandrade@verticalscope.com>
Closes #10046 from adeandrade/newhadooprdd-fix.
Diffstat (limited to 'sql/core/src/main/resources/META-INF')
0 files changed, 0 insertions, 0 deletions