Open ghost opened 5 years ago
So far i ended up to have all schemas on local, port-formard the solr api port to local and use curl and bash scripting to insert full configsets with something like :
curl --user "${SOLR_USER}:${SOLR_PASSWORD}" -sS -X POST \
--header "Content-Type:application/octet-stream" \
--data-binary @myconfigset.zip \
"http://${SOLR_HOST}:${SOLR_PORT}/solr/admin/configs?action=UPLOAD&name=${dir}"
@fredleger how are you pushing the configs to zookeeper after upload? I am getting permission denied for zkcli.sh
Also, how did you enable authentication?
Actually we don't use zkcli.sh at all for uploading configsets. Leverage only over the solr-cloud api should be enough to store the configsets in zookeeper.
For authentication i used the following snippet:
${SOLR_HOME}/server/scripts/cloud-scripts/zkcli.sh \
-zkhost ${ZK_HOST}:${ZK_PORT} \
-cmd putfile /security.json ./security.json
What would be the best approach to import your own schema?
Build your own solr image, copy over your schema and then leverage this chart while referencing your own solr image?