mirror of https://github.com/apache/lucene.git
SOLR-6907: URLEncode documents directory in MorphlineMapperTest to handle spaces etc in file name
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1649383 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
73837c049e
commit
75e1cafacf
|
@ -399,6 +399,9 @@ Bug Fixes
|
|||
|
||||
* SOLR-6735: Make CloneFieldUpdateProcessorFactory null safe (Steve Davids via ehatcher)
|
||||
|
||||
* SOLR-6907: URLEncode documents directory in MorphlineMapperTest to handle spaces etc.
|
||||
in file name. (Ramkumar Aiyengar via Erick Erickson)
|
||||
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
*/
|
||||
package org.apache.solr.hadoop;
|
||||
|
||||
import java.net.URLEncoder;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.hadoop.conf.Configuration;
|
||||
|
@ -46,7 +47,8 @@ public class MorphlineMapperTest extends MRUnitBase {
|
|||
Configuration config = mapDriver.getConfiguration();
|
||||
setupHadoopConfig(config);
|
||||
|
||||
mapDriver.withInput(new LongWritable(0L), new Text("hdfs://localhost/" + DOCUMENTS_DIR + "/sample-statuses-20120906-141433.avro"));
|
||||
mapDriver.withInput(new LongWritable(0L), new Text("hdfs://localhost/" +
|
||||
URLEncoder.encode(DOCUMENTS_DIR, "UTF-8") + "/sample-statuses-20120906-141433.avro"));
|
||||
|
||||
SolrInputDocument sid = new SolrInputDocument();
|
||||
sid.addField("id", "uniqueid1");
|
||||
|
|
Loading…
Reference in New Issue