lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1649457 - in /lucene/dev/branches/branch_5x: ./ solr/ solr/contrib/ solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineMapperTest.java
Date Mon, 05 Jan 2015 01:50:58 GMT
Author: erick
Date: Mon Jan  5 01:50:58 2015
New Revision: 1649457

URL: http://svn.apache.org/r1649457
Log:
SOLR-6907, corrected patch, URLEncode documents directory in MorphlineMapperTest to handle
spaces etc in file name

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/solr/   (props changed)
    lucene/dev/branches/branch_5x/solr/contrib/   (props changed)
    lucene/dev/branches/branch_5x/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineMapperTest.java

Modified: lucene/dev/branches/branch_5x/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineMapperTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineMapperTest.java?rev=1649457&r1=1649456&r2=1649457&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineMapperTest.java
(original)
+++ lucene/dev/branches/branch_5x/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineMapperTest.java
Mon Jan  5 01:50:58 2015
@@ -48,7 +48,8 @@ public class MorphlineMapperTest extends
     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");



Mime
View raw message