lucene-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [lucene-solr] dsmiley commented on a change in pull request #994: SOLR-13662: Package Manager (CLI)
Date Tue, 05 Nov 2019 05:21:44 GMT
dsmiley commented on a change in pull request #994: SOLR-13662: Package Manager (CLI)

 File path: solr/core/src/java/org/apache/solr/packagemanager/
 @@ -0,0 +1,259 @@
+package org.apache.solr.packagemanager;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import org.apache.solr.client.solrj.SolrClient;
+import org.apache.solr.client.solrj.impl.HttpSolrClient;
+import org.apache.solr.common.SolrException;
+import org.apache.solr.common.SolrException.ErrorCode;
+import org.apache.solr.packagemanager.SolrPackage.Command;
+import org.apache.solr.packagemanager.SolrPackage.Metadata;
+import org.apache.solr.packagemanager.SolrPackage.Plugin;
+import org.apache.solr.util.SolrCLI;
+import com.fasterxml.jackson.core.JsonParser;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.jayway.jsonpath.JsonPath;
+public class SolrPackageManager implements Closeable {
+  final String solrBaseUrl;
+  final SolrClient solrClient;
+  final SolrZkClient zkClient;
+  public SolrPackageManager(String solrBaseUrl, String zkHost) {
+    this.solrBaseUrl = solrBaseUrl;
+    this.solrClient = new HttpSolrClient.Builder(solrBaseUrl).build();
+    this.zkClient = new SolrZkClient(zkHost, 30000);
+    System.out.println("Done initializing a zkClient instance...");
 Review comment:
   shouldn't we use a logger?  I'll say this just here but I see stdout all over the place.

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message