borisnaguet / solr-maven-plugin Goto Github PK
View Code? Open in Web Editor NEWA maven plugin to start/stop Apache Solr Cloud
Home Page: https://borisnaguet.github.io/solr-maven-plugin
License: GNU Lesser General Public License v3.0
A maven plugin to start/stop Apache Solr Cloud
Home Page: https://borisnaguet.github.io/solr-maven-plugin
License: GNU Lesser General Public License v3.0
For the moment, the solr-core jar & dependencies are fixed in the plugin's pom.
It might be possible to override some jars directly in config, but this is quite limited (especially to API compatibility). It has to be tested.
More flexibility would need to download a full solr install and start through script.
Instead of using
mvn -Dsolr.keep.running=true solr:start-solrcloud
create another Mojo for standalone:
mvn solr:run
This is a bug fixes release as we're currently on 5.5.0, so it shouldn't break anything
We should be able to start Solr nodes and Zookeeper with an existing solr home and zookeeper.
It's almost working already.
Doc usage examples (taken from test project).
Full configuration option doc (with "maven site", or on github, or both)
This will require Java 8
We could very easily start more than one node with a new config param.
Maven build logs are full due to INFO logs of this plugin
[INFO] [IW][coreCloseExecutor-203-thread-14]: apply all deletes during flush
[INFO] [IW][coreCloseExecutor-203-thread-14]: now apply all deletes for all segments maxDoc=0
[INFO] [BD][coreCloseExecutor-203-thread-14]: prune sis=segments_1: minGen=9223372036854775807 packetCount=0
[INFO] [DW][coreCloseExecutor-203-thread-14]: coreCloseExecutor-203-thread-14 finishFullFlush success=true
[INFO] [IW][coreCloseExecutor-203-thread-14]: startCommit(): start
[INFO] [IW][coreCloseExecutor-203-thread-14]: skip startCommit(): no changes pending
[INFO] [IW][coreCloseExecutor-203-thread-14]: commit: pendingCommit == null; skip
[INFO] [IW][coreCloseExecutor-203-thread-14]: commit: took 16.5 msec
[INFO] [IW][coreCloseExecutor-203-thread-14]: commit: done
[INFO] [IW][coreCloseExecutor-203-thread-14]: rollback
[INFO] [IW][coreCloseExecutor-203-thread-14]: all running merges have aborted
[INFO] [IW][coreCloseExecutor-203-thread-14]: rollback: done finish merges
[INFO] [DW][coreCloseExecutor-203-thread-14]: abort
[INFO] [DW][cor
When:
uploadConfig
is true (default)confToUploadDir
points to an empty dir (default)"config"
element.These files haven't been updated to Solr 7.5
Workaround: you can define your own files and use the confToUploadDir
NB: solr.xml has been updated, because it's embedded in the code, as can be seen here:
https://github.com/BorisNaguet/solr-maven-plugin/blob/master/solr-maven-plugin/src/main/java/org/apache/solr/cloud/MiniSolrCloudCluster.java#L67
In 0.1.0 the SolrZkClient is created with a default address returned by solrCloud.getZkServer().getZkAddress()
It defaults to a zk path of "/solr/", whereas a default solr install uses the root "/" in ZK.
We'll add a parameter:
true in the pom.xml
or (what you'll use most of the time)
-Dsolr.keep.running=true
Note that it's skipped if you cancel interactive mode (i.e. -B for batch mode)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.