commit | 236279bd51221955d3f15d6cabf485d4b3bd0994 | [log] [tgz] |
---|---|---|
author | buyingyi <buyingyi@gmail.com> | Fri Sep 06 00:36:53 2013 -0700 |
committer | buyingyi <buyingyi@gmail.com> | Fri Sep 06 00:36:53 2013 -0700 |
tree | 4811124335826da3f943d4db55d217ac3454262f | |
parent | fa537486fedc1fc48e8eccd8b7b31c0eb1216b49 [diff] |
fix classloader in hdfsread
diff --git a/hyracks/hyracks-hdfs/hyracks-hdfs-core/src/main/java/edu/uci/ics/hyracks/hdfs/dataflow/HDFSReadOperatorDescriptor.java b/hyracks/hyracks-hdfs/hyracks-hdfs-core/src/main/java/edu/uci/ics/hyracks/hdfs/dataflow/HDFSReadOperatorDescriptor.java index a45992c..814be7a 100644 --- a/hyracks/hyracks-hdfs/hyracks-hdfs-core/src/main/java/edu/uci/ics/hyracks/hdfs/dataflow/HDFSReadOperatorDescriptor.java +++ b/hyracks/hyracks-hdfs/hyracks-hdfs-core/src/main/java/edu/uci/ics/hyracks/hdfs/dataflow/HDFSReadOperatorDescriptor.java
@@ -98,8 +98,9 @@ public void initialize() throws HyracksDataException { ClassLoader ctxCL = Thread.currentThread().getContextClassLoader(); try { - Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); + Thread.currentThread().setContextClassLoader(ctx.getJobletContext().getClassLoader()); JobConf conf = confFactory.getConf(); + conf.setClassLoader(ctx.getJobletContext().getClassLoader()); IKeyValueParser parser = tupleParserFactory.createKeyValueParser(ctx); writer.open(); parser.open(writer);