I also write java code , that not work well .
 public static void merge() {
    final HttpSolrServer server = new
HttpSolrServer("http://solr2:8983/solr";);
    try {
      CoreAdminRequest.MergeIndexes mergeRequest = new
CoreAdminRequest.MergeIndexes();
      mergeRequest.setCoreName("collection3");
      // mergeRequest.setIndexDirs(Arrays.asList(dir.getPath().toString() +
"/data/index"));
      mergeRequest.setIndexDirs(Arrays
         
.asList("hdfs://solr1:8020/user/solr/outdir/results/part-00000/data/index"));
      CoreAdminResponse rs = mergeRequest.process(server);
      System.out.println(rs);
    } catch (SolrServerException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      System.out.println("end.");
    }
  }

who can give explain.

But I use in one machine, that is true work well, cloudera can give more
explain? or anyone else? thanks.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/MergingSolrIndexes-not-supported-by-SolrCloud-why-tp4127111p4127597.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to