Description
1. Change from "System.err.println("err response: " + response);"
to "logger.severe("Error response: " + response);"
2. RemoveĀ invalid code
private void uploadFileToZk(SolrZkClient zkClient, Path filePath, Path configsPath) throws FileNotFoundException { InputStream is = new FileInputStream(filePath.toString()); try { if (zkClient.exists(configsPath.toString(), true)) { zkClient.setData(configsPath.toString(), IOUtils.toByteArray(is), true); } else { zkClient.create(configsPath.toString(), IOUtils.toByteArray(is), CreateMode.PERSISTENT, true); } } catch (Exception e) { throw new IllegalStateException(e); } finally { IOUtils.closeQuietly(is); } } private String getConfigFileName() { private String getConfigFileName() { return SOLR_CONFIG_FILE; }
3. Change the parameter "CrendentialProviderPath" to "crendentialProviderPath"
Attachments
Attachments
Issue Links
- links to