Giter Site home page Giter Site logo

borisnaguet / solr-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 3.0 876 KB

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

Java 100.00%
solr solrcloud maven maven-plugin mavencentral

solr-maven-plugin's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

solr-maven-plugin's Issues

Allow to choose the Solr version

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.

More doc

Doc usage examples (taken from test project).

Full configuration option doc (with "maven site", or on github, or both)

Help: How to configure plugin to log only WARN level logs for SOLR

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

upgrade default Solr config file

When:

  • uploadConfig is true (default)
  • AND confToUploadDir points to an empty dir (default)
    then, default config files are uploaded to zookeeper as a "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

allow to configure ZkTestServer CHROOT

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.

Don't exit when started in interactive mode

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.