SOLR-6907, corrected patch, URLEncode documents directory in MorphlineMapperTest to handle spaces etc in file name

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1649455 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erick Erickson 2015-01-05 01:45:07 +00:00
parent b5a484fe1f
commit 633fecf787
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,8 @@ public class MorphlineMapperTest extends MRUnitBase {
setupHadoopConfig(config);
mapDriver.withInput(new LongWritable(0L), new Text("hdfs://localhost/" +
URLEncoder.encode(DOCUMENTS_DIR, "UTF-8") + "/sample-statuses-20120906-141433.avro"));
URLEncoder.encode(DOCUMENTS_DIR, "UTF-8").replace("+", "%20") +
"/sample-statuses-20120906-141433.avro"));
SolrInputDocument sid = new SolrInputDocument();
sid.addField("id", "uniqueid1");