mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Support for Solr 8.6.3
This commit is contained in:
parent
6664c4a538
commit
6dbd3ef361
@ -16,10 +16,10 @@
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- Solr -->
|
<!-- Solr -->
|
||||||
<dependency conf="solr-war->default" org="org.apache.solr" name="solr" rev="4.9.1" transitive="false" /> <!-- the war file for embedded Solr 4 -->
|
<dependency conf="solr-war->default" org="org.apache.solr" name="solr" rev="4.9.1" transitive="false" /> <!-- the war file for embedded Solr 4 -->
|
||||||
<dependency name="solr-cell" rev="8.6.2" org="org.apache.solr" conf="solr-libs->default"/>
|
<dependency name="solr-cell" rev="8.6.3" org="org.apache.solr" conf="solr-libs->default"/>
|
||||||
|
|
||||||
<!-- Autopsy -->
|
<!-- Autopsy -->
|
||||||
<dependency conf="autopsy->*" org="org.apache.solr" name="solr-solrj" rev="8.6.2"/>
|
<dependency conf="autopsy->*" org="org.apache.solr" name="solr-solrj" rev="8.6.3"/>
|
||||||
<dependency conf="autopsy->*" org="commons-lang" name="commons-lang" rev="2.4"/>
|
<dependency conf="autopsy->*" org="commons-lang" name="commons-lang" rev="2.4"/>
|
||||||
<dependency conf="autopsy->*" org="commons-validator" name="commons-validator" rev="1.5.1"/>
|
<dependency conf="autopsy->*" org="commons-validator" name="commons-validator" rev="1.5.1"/>
|
||||||
<dependency conf="autopsy->*" org="com.optimaize.languagedetector" name="language-detector" rev="0.6"/>
|
<dependency conf="autopsy->*" org="com.optimaize.languagedetector" name="language-detector" rev="0.6"/>
|
||||||
|
@ -5,26 +5,26 @@ file.reference.cdm-4.5.5.jar=release/modules/ext/cdm-4.5.5.jar
|
|||||||
file.reference.cleartk-util-2.0.0.jar=release/modules/ext/cleartk-util-2.0.0.jar
|
file.reference.cleartk-util-2.0.0.jar=release/modules/ext/cleartk-util-2.0.0.jar
|
||||||
file.reference.commons-beanutils-1.9.2.jar=release/modules/ext/commons-beanutils-1.9.2.jar
|
file.reference.commons-beanutils-1.9.2.jar=release/modules/ext/commons-beanutils-1.9.2.jar
|
||||||
file.reference.commons-collections-3.2.2.jar=release/modules/ext/commons-collections-3.2.2.jar
|
file.reference.commons-collections-3.2.2.jar=release/modules/ext/commons-collections-3.2.2.jar
|
||||||
file.reference.commons-digester-1.8.1.jar=release/modules/ext/commons-digester-1.8.1.jar
|
file.reference.commons-digester-1.8.1.jar=release\\modules\\ext\\commons-digester-1.8.1.jar
|
||||||
file.reference.commons-exec-1.3.jar=release/modules/ext/commons-exec-1.3.jar
|
file.reference.commons-exec-1.3.jar=release/modules/ext/commons-exec-1.3.jar
|
||||||
file.reference.commons-lang-2.6.jar=release/modules/ext/commons-lang-2.6.jar
|
file.reference.commons-io-2.6.jar=C:\\cygwin64\\home\\elivis\\autopsy\\KeywordSearch\\release\\modules\\ext\\commons-io-2.6.jar
|
||||||
file.reference.commons-logging-1.2.jar=release/modules/ext/commons-logging-1.2.jar
|
file.reference.commons-lang-2.6.jar=C:\\cygwin64\\home\\elivis\\autopsy\\KeywordSearch\\release\\modules\\ext\\commons-lang-2.6.jar
|
||||||
file.reference.commons-logging-api-1.1.jar=release/modules/ext/commons-logging-api-1.1.jar
|
file.reference.commons-logging-1.2.jar=C:\\cygwin64\\home\\elivis\\autopsy\\KeywordSearch\\release\\modules\\ext\\commons-logging-1.2.jar
|
||||||
file.reference.commons-validator-1.5.1.jar=release/modules/ext/commons-validator-1.5.1.jar
|
file.reference.commons-validator-1.5.1.jar=release/modules/ext/commons-validator-1.5.1.jar
|
||||||
file.reference.ehcache-core-2.6.2.jar=release/modules/ext/ehcache-core-2.6.2.jar
|
file.reference.ehcache-core-2.6.2.jar=release/modules/ext/ehcache-core-2.6.2.jar
|
||||||
file.reference.findstructapi-0.0.1.jar=release/modules/ext/findstructapi-0.0.1.jar
|
file.reference.findstructapi-0.0.1.jar=release/modules/ext/findstructapi-0.0.1.jar
|
||||||
file.reference.grib-4.5.5.jar=release/modules/ext/grib-4.5.5.jar
|
file.reference.grib-4.5.5.jar=release/modules/ext/grib-4.5.5.jar
|
||||||
file.reference.guava-18.0.jar=release/modules/ext/guava-18.0.jar
|
file.reference.guava-18.0.jar=release/modules/ext/guava-18.0.jar
|
||||||
file.reference.httpclient-4.5.10.jar=release/modules/ext/httpclient-4.5.10.jar
|
file.reference.httpclient-4.5.10.jar=C:\\cygwin64\\home\\elivis\\autopsy\\KeywordSearch\\release\\modules\\ext\\httpclient-4.5.10.jar
|
||||||
file.reference.httpcore-4.4.12.jar=release/modules/ext/httpcore-4.4.12.jar
|
file.reference.httpcore-4.4.12.jar=C:\\cygwin64\\home\\elivis\\autopsy\\KeywordSearch\\release\\modules\\ext\\httpcore-4.4.12.jar
|
||||||
file.reference.httpmime-4.5.10.jar=release/modules/ext/httpmime-4.5.10.jar
|
file.reference.httpmime-4.5.10.jar=C:\\cygwin64\\home\\elivis\\autopsy\\KeywordSearch\\release\\modules\\ext\\httpmime-4.5.10.jar
|
||||||
file.reference.httpservices-4.5.5.jar=release/modules/ext/httpservices-4.5.5.jar
|
file.reference.httpservices-4.5.5.jar=release/modules/ext/httpservices-4.5.5.jar
|
||||||
file.reference.icu4j-3.8.jar=release/modules/ext/icu4j-3.8.jar
|
file.reference.icu4j-3.8.jar=release/modules/ext/icu4j-3.8.jar
|
||||||
file.reference.java-libpst-0.8.1.jar=release/modules/ext/java-libpst-0.8.1.jar
|
file.reference.java-libpst-0.8.1.jar=release/modules/ext/java-libpst-0.8.1.jar
|
||||||
file.reference.jcip-annotations-1.0.jar=release/modules/ext/jcip-annotations-1.0.jar
|
file.reference.jcip-annotations-1.0.jar=release/modules/ext/jcip-annotations-1.0.jar
|
||||||
file.reference.jcommander-1.35.jar=release/modules/ext/jcommander-1.35.jar
|
file.reference.jcommander-1.35.jar=release/modules/ext/jcommander-1.35.jar
|
||||||
file.reference.jdom-1.0.jar=release/modules/ext/jdom-1.0.jar
|
file.reference.jdom-1.0.jar=release/modules/ext/jdom-1.0.jar
|
||||||
file.reference.jericho-html-3.3.jar=release/modules/ext/jericho-html-3.3.jar
|
file.reference.jericho-html-3.3.jar=release\\modules\\ext\\jericho-html-3.3.jar
|
||||||
file.reference.joda-time-2.2.jar=release/modules/ext/joda-time-2.2.jar
|
file.reference.joda-time-2.2.jar=release/modules/ext/joda-time-2.2.jar
|
||||||
file.reference.json-simple-1.1.1.jar=release/modules/ext/json-simple-1.1.1.jar
|
file.reference.json-simple-1.1.1.jar=release/modules/ext/json-simple-1.1.1.jar
|
||||||
file.reference.juniversalchardet-1.0.3.jar=release/modules/ext/juniversalchardet-1.0.3.jar
|
file.reference.juniversalchardet-1.0.3.jar=release/modules/ext/juniversalchardet-1.0.3.jar
|
||||||
@ -43,7 +43,9 @@ file.reference.poi-ooxml-schemas-4.0.1.jar=release/modules/ext/poi-ooxml-schemas
|
|||||||
file.reference.poi-scratchpad-4.0.1.jar=release/modules/ext/poi-scratchpad-4.0.1.jar
|
file.reference.poi-scratchpad-4.0.1.jar=release/modules/ext/poi-scratchpad-4.0.1.jar
|
||||||
file.reference.protobuf-java-2.5.0.jar=release/modules/ext/protobuf-java-2.5.0.jar
|
file.reference.protobuf-java-2.5.0.jar=release/modules/ext/protobuf-java-2.5.0.jar
|
||||||
file.reference.quartz-2.2.0.jar=release/modules/ext/quartz-2.2.0.jar
|
file.reference.quartz-2.2.0.jar=release/modules/ext/quartz-2.2.0.jar
|
||||||
|
file.reference.slf4j-api-1.7.25.jar=C:\\cygwin64\\home\\elivis\\autopsy\\KeywordSearch\\release\\modules\\ext\\slf4j-api-1.7.25.jar
|
||||||
file.reference.solr-solrj-8.6.2.jar=release/modules/ext/solr-solrj-8.6.2.jar
|
file.reference.solr-solrj-8.6.2.jar=release/modules/ext/solr-solrj-8.6.2.jar
|
||||||
|
file.reference.solr-solrj-8.6.3.jar=release/modules/ext/solr-solrj-8.6.3.jar
|
||||||
file.reference.sqlwrapper-0.0.1.jar=release/modules/ext/sqlwrapper-0.0.1.jar
|
file.reference.sqlwrapper-0.0.1.jar=release/modules/ext/sqlwrapper-0.0.1.jar
|
||||||
file.reference.stax2-api-3.1.4.jar=release/modules/ext/stax2-api-3.1.4.jar
|
file.reference.stax2-api-3.1.4.jar=release/modules/ext/stax2-api-3.1.4.jar
|
||||||
file.reference.tagsoup-1.2.1.jar=release/modules/ext/tagsoup-1.2.1.jar
|
file.reference.tagsoup-1.2.1.jar=release/modules/ext/tagsoup-1.2.1.jar
|
||||||
@ -58,8 +60,6 @@ file.reference.xmpcore-5.1.3.jar=release/modules/ext/xmpcore-5.1.3.jar
|
|||||||
file.reference.zookeeper-3.5.7.jar=release/modules/ext/zookeeper-3.5.7.jar
|
file.reference.zookeeper-3.5.7.jar=release/modules/ext/zookeeper-3.5.7.jar
|
||||||
file.reference.annotations-12.0.jar=release\\modules\\ext\\annotations-12.0.jar
|
file.reference.annotations-12.0.jar=release\\modules\\ext\\annotations-12.0.jar
|
||||||
file.reference.jsonic-1.2.11.jar=release\\modules\\ext\\jsonic-1.2.11.jar
|
file.reference.jsonic-1.2.11.jar=release\\modules\\ext\\jsonic-1.2.11.jar
|
||||||
file.reference.slf4j-api-1.7.6.jar=release\\modules\\ext\\slf4j-api-1.7.6.jar
|
|
||||||
file.reference.wstx-asl-3.2.7.jar=release\\modules\\ext\\wstx-asl-3.2.7.jar
|
|
||||||
javac.source=1.8
|
javac.source=1.8
|
||||||
javac.compilerargs=-Xlint -Xlint:-serial
|
javac.compilerargs=-Xlint -Xlint:-serial
|
||||||
license.file=../LICENSE-2.0.txt
|
license.file=../LICENSE-2.0.txt
|
||||||
|
@ -142,7 +142,6 @@
|
|||||||
</module-dependencies>
|
</module-dependencies>
|
||||||
<public-packages>
|
<public-packages>
|
||||||
<package>org.apache.commons.logging.impl</package>
|
<package>org.apache.commons.logging.impl</package>
|
||||||
<package>org.apache.tika.parser.txt</package>
|
|
||||||
<package>org.apache.http</package>
|
<package>org.apache.http</package>
|
||||||
<package>org.apache.http.annotation</package>
|
<package>org.apache.http.annotation</package>
|
||||||
<package>org.apache.http.auth</package>
|
<package>org.apache.http.auth</package>
|
||||||
@ -186,9 +185,6 @@
|
|||||||
<package>org.apache.http.protocol</package>
|
<package>org.apache.http.protocol</package>
|
||||||
<package>org.apache.http.ssl</package>
|
<package>org.apache.http.ssl</package>
|
||||||
<package>org.apache.http.util</package>
|
<package>org.apache.http.util</package>
|
||||||
<package>org.apache.jute</package>
|
|
||||||
<package>org.apache.jute.compiler</package>
|
|
||||||
<package>org.apache.jute.compiler.generated</package>
|
|
||||||
<package>org.apache.solr.client.solrj</package>
|
<package>org.apache.solr.client.solrj</package>
|
||||||
<package>org.apache.solr.client.solrj.beans</package>
|
<package>org.apache.solr.client.solrj.beans</package>
|
||||||
<package>org.apache.solr.client.solrj.impl</package>
|
<package>org.apache.solr.client.solrj.impl</package>
|
||||||
@ -203,17 +199,13 @@
|
|||||||
<package>org.apache.zookeeper</package>
|
<package>org.apache.zookeeper</package>
|
||||||
<package>org.apache.zookeeper.client</package>
|
<package>org.apache.zookeeper.client</package>
|
||||||
<package>org.apache.zookeeper.common</package>
|
<package>org.apache.zookeeper.common</package>
|
||||||
<package>org.apache.zookeeper.data</package>
|
|
||||||
<package>org.apache.zookeeper.jmx</package>
|
<package>org.apache.zookeeper.jmx</package>
|
||||||
<package>org.apache.zookeeper.proto</package>
|
|
||||||
<package>org.apache.zookeeper.server</package>
|
<package>org.apache.zookeeper.server</package>
|
||||||
<package>org.apache.zookeeper.server.auth</package>
|
<package>org.apache.zookeeper.server.auth</package>
|
||||||
<package>org.apache.zookeeper.server.persistence</package>
|
<package>org.apache.zookeeper.server.persistence</package>
|
||||||
<package>org.apache.zookeeper.server.quorum</package>
|
<package>org.apache.zookeeper.server.quorum</package>
|
||||||
<package>org.apache.zookeeper.server.quorum.flexible</package>
|
<package>org.apache.zookeeper.server.quorum.flexible</package>
|
||||||
<package>org.apache.zookeeper.server.upgrade</package>
|
|
||||||
<package>org.apache.zookeeper.server.util</package>
|
<package>org.apache.zookeeper.server.util</package>
|
||||||
<package>org.apache.zookeeper.txn</package>
|
|
||||||
<package>org.apache.zookeeper.version</package>
|
<package>org.apache.zookeeper.version</package>
|
||||||
<package>org.apache.zookeeper.version.util</package>
|
<package>org.apache.zookeeper.version.util</package>
|
||||||
<package>org.codehaus.stax2</package>
|
<package>org.codehaus.stax2</package>
|
||||||
@ -224,8 +216,20 @@
|
|||||||
<package>org.sleuthkit.autopsy.keywordsearch</package>
|
<package>org.sleuthkit.autopsy.keywordsearch</package>
|
||||||
</public-packages>
|
</public-packages>
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/guava-18.0.jar</runtime-relative-path>
|
<runtime-relative-path>ext/findstructapi-0.0.1.jar</runtime-relative-path>
|
||||||
<binary-origin>release\modules\ext\guava-18.0.jar</binary-origin>
|
<binary-origin>release/modules/ext/findstructapi-0.0.1.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/commons-digester-1.8.1.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release\modules\ext\commons-digester-1.8.1.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/jcommander-1.35.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/jcommander-1.35.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/vorbis-java-core-0.8.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/vorbis-java-core-0.8.jar</binary-origin>
|
||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/lucene-sandbox-4.0.0.jar</runtime-relative-path>
|
<runtime-relative-path>ext/lucene-sandbox-4.0.0.jar</runtime-relative-path>
|
||||||
@ -237,7 +241,11 @@
|
|||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/jericho-html-3.3.jar</runtime-relative-path>
|
<runtime-relative-path>ext/jericho-html-3.3.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/jericho-html-3.3.jar</binary-origin>
|
<binary-origin>release\modules\ext\jericho-html-3.3.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/netcdf4-4.5.5.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/netcdf4-4.5.5.jar</binary-origin>
|
||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/cdm-4.5.5.jar</runtime-relative-path>
|
<runtime-relative-path>ext/cdm-4.5.5.jar</runtime-relative-path>
|
||||||
@ -247,118 +255,6 @@
|
|||||||
<runtime-relative-path>ext/httpservices-4.5.5.jar</runtime-relative-path>
|
<runtime-relative-path>ext/httpservices-4.5.5.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/httpservices-4.5.5.jar</binary-origin>
|
<binary-origin>release/modules/ext/httpservices-4.5.5.jar</binary-origin>
|
||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/boilerpipe-1.1.0.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/boilerpipe-1.1.0.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/commons-logging-api-1.1.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/commons-logging-api-1.1.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/quartz-2.2.0.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/quartz-2.2.0.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/icu4j-3.8.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/icu4j-3.8.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/language-detector-0.6.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\language-detector-0.6.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/guava-18.0.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/guava-18.0.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/joda-time-2.2.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/joda-time-2.2.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/commons-digester-1.8.1.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\commons-digester-1.8.1.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/httpmime-4.5.6.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\httpmime-4.5.6.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/httpclient-4.5.6.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\httpclient-4.5.6.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/commons-validator-1.5.1.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\commons-validator-1.5.1.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/commons-lang-2.4.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\commons-lang-2.4.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/commons-logging-1.2.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\commons-logging-1.2.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/jericho-html-3.3.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\jericho-html-3.3.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/httpcore-4.4.10.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\httpcore-4.4.10.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/slf4j-api-1.7.6.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\slf4j-api-1.7.6.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/commons-beanutils-1.9.2.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\commons-beanutils-1.9.2.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/commons-io-2.3.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\commons-io-2.3.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/wstx-asl-3.2.7.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\wstx-asl-3.2.7.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/annotations-12.0.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release\modules\ext\annotations-12.0.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/commons-collections-3.2.2.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/commons-collections-3.2.2.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/openaifsm-0.0.1.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/openaifsm-0.0.1.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/stax2-api-3.1.4.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/stax2-api-3.1.4.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/xmpcore-5.1.3.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/xmpcore-5.1.3.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/findstructapi-0.0.1.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/findstructapi-0.0.1.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/jcommander-1.35.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/jcommander-1.35.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/vorbis-java-core-0.8.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/vorbis-java-core-0.8.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/netcdf4-4.5.5.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/netcdf4-4.5.5.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/java-libpst-0.8.1.jar</runtime-relative-path>
|
<runtime-relative-path>ext/java-libpst-0.8.1.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/java-libpst-0.8.1.jar</binary-origin>
|
<binary-origin>release/modules/ext/java-libpst-0.8.1.jar</binary-origin>
|
||||||
@ -371,6 +267,10 @@
|
|||||||
<runtime-relative-path>ext/lucene-queries-4.0.0.jar</runtime-relative-path>
|
<runtime-relative-path>ext/lucene-queries-4.0.0.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/lucene-queries-4.0.0.jar</binary-origin>
|
<binary-origin>release/modules/ext/lucene-queries-4.0.0.jar</binary-origin>
|
||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/boilerpipe-1.1.0.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/boilerpipe-1.1.0.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/juniversalchardet-1.0.3.jar</runtime-relative-path>
|
<runtime-relative-path>ext/juniversalchardet-1.0.3.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/juniversalchardet-1.0.3.jar</binary-origin>
|
<binary-origin>release/modules/ext/juniversalchardet-1.0.3.jar</binary-origin>
|
||||||
@ -379,14 +279,38 @@
|
|||||||
<runtime-relative-path>ext/commons-lang-2.6.jar</runtime-relative-path>
|
<runtime-relative-path>ext/commons-lang-2.6.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/commons-lang-2.6.jar</binary-origin>
|
<binary-origin>release/modules/ext/commons-lang-2.6.jar</binary-origin>
|
||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/quartz-2.2.0.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/quartz-2.2.0.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/libsvm-3.1.jar</runtime-relative-path>
|
<runtime-relative-path>ext/libsvm-3.1.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/libsvm-3.1.jar</binary-origin>
|
<binary-origin>release/modules/ext/libsvm-3.1.jar</binary-origin>
|
||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/slf4j-api-1.7.25.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/slf4j-api-1.7.25.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/icu4j-3.8.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/icu4j-3.8.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/poi-4.0.1.jar</runtime-relative-path>
|
<runtime-relative-path>ext/poi-4.0.1.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/poi-4.0.1.jar</binary-origin>
|
<binary-origin>release/modules/ext/poi-4.0.1.jar</binary-origin>
|
||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/language-detector-0.6.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release\modules\ext\language-detector-0.6.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/guava-18.0.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/guava-18.0.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/joda-time-2.2.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/joda-time-2.2.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/jcip-annotations-1.0.jar</runtime-relative-path>
|
<runtime-relative-path>ext/jcip-annotations-1.0.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/jcip-annotations-1.0.jar</binary-origin>
|
<binary-origin>release/modules/ext/jcip-annotations-1.0.jar</binary-origin>
|
||||||
@ -395,6 +319,10 @@
|
|||||||
<runtime-relative-path>ext/commons-validator-1.5.1.jar</runtime-relative-path>
|
<runtime-relative-path>ext/commons-validator-1.5.1.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/commons-validator-1.5.1.jar</binary-origin>
|
<binary-origin>release/modules/ext/commons-validator-1.5.1.jar</binary-origin>
|
||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/commons-logging-1.2.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release\modules\ext\commons-logging-1.2.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/bzip2-0.9.1.jar</runtime-relative-path>
|
<runtime-relative-path>ext/bzip2-0.9.1.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/bzip2-0.9.1.jar</binary-origin>
|
<binary-origin>release/modules/ext/bzip2-0.9.1.jar</binary-origin>
|
||||||
@ -415,10 +343,6 @@
|
|||||||
<runtime-relative-path>ext/jdom-1.0.jar</runtime-relative-path>
|
<runtime-relative-path>ext/jdom-1.0.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/jdom-1.0.jar</binary-origin>
|
<binary-origin>release/modules/ext/jdom-1.0.jar</binary-origin>
|
||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
<class-path-extension>
|
|
||||||
<runtime-relative-path>ext/solr-solrj-8.6.2.jar</runtime-relative-path>
|
|
||||||
<binary-origin>release/modules/ext/solr-solrj-8.6.2.jar</binary-origin>
|
|
||||||
</class-path-extension>
|
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/commons-beanutils-1.9.2.jar</runtime-relative-path>
|
<runtime-relative-path>ext/commons-beanutils-1.9.2.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/commons-beanutils-1.9.2.jar</binary-origin>
|
<binary-origin>release/modules/ext/commons-beanutils-1.9.2.jar</binary-origin>
|
||||||
@ -436,17 +360,41 @@
|
|||||||
<binary-origin>release/modules/ext/zookeeper-3.5.7.jar</binary-origin>
|
<binary-origin>release/modules/ext/zookeeper-3.5.7.jar</binary-origin>
|
||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/language-detector-0.6.jar</runtime-relative-path>
|
<runtime-relative-path>ext/commons-collections-3.2.2.jar</runtime-relative-path>
|
||||||
<binary-origin>release\modules\ext\language-detector-0.6.jar</binary-origin>
|
<binary-origin>release/modules/ext/commons-collections-3.2.2.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/commons-io-2.6.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/commons-io-2.6.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/annotations-12.0.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release\modules\ext\annotations-12.0.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/openaifsm-0.0.1.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/openaifsm-0.0.1.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/stax2-api-3.1.4.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/stax2-api-3.1.4.jar</binary-origin>
|
||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/httpclient-4.5.10.jar</runtime-relative-path>
|
<runtime-relative-path>ext/httpclient-4.5.10.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/httpclient-4.5.10.jar</binary-origin>
|
<binary-origin>release/modules/ext/httpclient-4.5.10.jar</binary-origin>
|
||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/solr-solrj-8.6.3.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/solr-solrj-8.6.3.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
<class-path-extension>
|
<class-path-extension>
|
||||||
<runtime-relative-path>ext/vorbis-java-tika-0.8.jar</runtime-relative-path>
|
<runtime-relative-path>ext/vorbis-java-tika-0.8.jar</runtime-relative-path>
|
||||||
<binary-origin>release/modules/ext/vorbis-java-tika-0.8.jar</binary-origin>
|
<binary-origin>release/modules/ext/vorbis-java-tika-0.8.jar</binary-origin>
|
||||||
</class-path-extension>
|
</class-path-extension>
|
||||||
|
<class-path-extension>
|
||||||
|
<runtime-relative-path>ext/xmpcore-5.1.3.jar</runtime-relative-path>
|
||||||
|
<binary-origin>release/modules/ext/xmpcore-5.1.3.jar</binary-origin>
|
||||||
|
</class-path-extension>
|
||||||
</data>
|
</data>
|
||||||
</configuration>
|
</configuration>
|
||||||
</project>
|
</project>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,173 +0,0 @@
|
|||||||
@REM
|
|
||||||
@REM Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
@REM contributor license agreements. See the NOTICE file distributed with
|
|
||||||
@REM this work for additional information regarding copyright ownership.
|
|
||||||
@REM The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
@REM (the "License"); you may not use this file except in compliance with
|
|
||||||
@REM the License. You may obtain a copy of the License at
|
|
||||||
@REM
|
|
||||||
@REM http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
@REM
|
|
||||||
@REM Unless required by applicable law or agreed to in writing, software
|
|
||||||
@REM distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
@REM See the License for the specific language governing permissions and
|
|
||||||
@REM limitations under the License.
|
|
||||||
|
|
||||||
@REM @echo off
|
|
||||||
|
|
||||||
REM Settings here will override settings in existing env vars or in bin/solr. The default shipped state
|
|
||||||
REM of this file is completely commented.
|
|
||||||
|
|
||||||
REM By default the script will use JAVA_HOME to determine which java
|
|
||||||
REM to use, but you can set a specific path for Solr to use without
|
|
||||||
REM affecting other Java applications on your server/workstation.
|
|
||||||
REM set SOLR_JAVA_HOME=
|
|
||||||
|
|
||||||
REM Increase Java Min/Max Heap as needed to support your indexing / query needs
|
|
||||||
REM set SOLR_JAVA_MEM=-Xms512m -Xmx512m
|
|
||||||
|
|
||||||
REM Configure verbose GC logging:
|
|
||||||
REM For Java 8: if this is set, additional params will be added to specify the log file & rotation
|
|
||||||
REM For Java 9 or higher: GC_LOG_OPTS is currently not supported. If you set it, the startup script will exit with failure.
|
|
||||||
REM set GC_LOG_OPTS=-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime
|
|
||||||
|
|
||||||
REM Various GC settings have shown to work well for a number of common Solr workloads.
|
|
||||||
REM See solr.cmd GC_TUNE for the default list.
|
|
||||||
REM set GC_TUNE=-XX:SurvivorRatio=4
|
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:TargetSurvivorRatio=90
|
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:MaxTenuringThreshold=8
|
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:+UseConcMarkSweepGC
|
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:ConcGCThreads=4
|
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:ParallelGCThreads=4
|
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:+CMSScavengeBeforeRemark
|
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:PretenureSizeThreshold=64m
|
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:+UseCMSInitiatingOccupancyOnly
|
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:CMSInitiatingOccupancyFraction=50
|
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:CMSMaxAbortablePrecleanTime=6000
|
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:+CMSParallelRemarkEnabled
|
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:+ParallelRefProcEnabled
|
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:-OmitStackTraceInFastThrow etc.
|
|
||||||
|
|
||||||
REM Set the ZooKeeper connection string if using an external ZooKeeper ensemble
|
|
||||||
REM e.g. host1:2181,host2:2181/chroot
|
|
||||||
REM Leave empty if not using SolrCloud
|
|
||||||
REM set ZK_HOST=
|
|
||||||
|
|
||||||
REM Set the ZooKeeper client timeout (for SolrCloud mode)
|
|
||||||
REM set ZK_CLIENT_TIMEOUT=15000
|
|
||||||
|
|
||||||
REM By default the start script uses "localhost"; override the hostname here
|
|
||||||
REM for production SolrCloud environments to control the hostname exposed to cluster state
|
|
||||||
REM set SOLR_HOST=192.168.1.1
|
|
||||||
|
|
||||||
REM By default Solr will try to connect to Zookeeper with 30 seconds in timeout; override the timeout if needed
|
|
||||||
REM set SOLR_WAIT_FOR_ZK=30
|
|
||||||
|
|
||||||
REM By default the start script uses UTC; override the timezone if needed
|
|
||||||
REM set SOLR_TIMEZONE=UTC
|
|
||||||
|
|
||||||
REM Set to true to activate the JMX RMI connector to allow remote JMX client applications
|
|
||||||
REM to monitor the JVM hosting Solr; set to "false" to disable that behavior
|
|
||||||
REM (false is recommended in production environments)
|
|
||||||
REM set ENABLE_REMOTE_JMX_OPTS=false
|
|
||||||
|
|
||||||
REM The script will use SOLR_PORT+10000 for the RMI_PORT or you can set it here
|
|
||||||
REM set RMI_PORT=18983
|
|
||||||
|
|
||||||
REM Anything you add to the SOLR_OPTS variable will be included in the java
|
|
||||||
REM start command line as-is, in ADDITION to other options. If you specify the
|
|
||||||
REM -a option on start script, those options will be appended as well. Examples:
|
|
||||||
set SOLR_OPTS=%SOLR_OPTS% -Dbootstrap_confdir=../solr/configsets/AutopsyConfig/conf -Dcollection.configName=AutopsyConfig -Dsolr.default.confdir=../solr/configsets/AutopsyConfig/conf
|
|
||||||
|
|
||||||
REM Path to a directory for Solr to store cores and their data. By default, Solr will use server\solr
|
|
||||||
REM If solr.xml is not stored in ZooKeeper, this directory needs to contain solr.xml
|
|
||||||
REM set SOLR_HOME=
|
|
||||||
|
|
||||||
REM Path to a directory that Solr will use as root for data folders for each core.
|
|
||||||
REM If not set, defaults to <instance_dir>/data. Overridable per core through 'dataDir' core property
|
|
||||||
REM set SOLR_DATA_HOME=
|
|
||||||
|
|
||||||
REM Changes the logging level. Valid values: ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF. Default is INFO
|
|
||||||
REM This is an alternative to changing the rootLogger in log4j2.xml
|
|
||||||
REM set SOLR_LOG_LEVEL=INFO
|
|
||||||
|
|
||||||
REM Location where Solr should write logs to. Absolute or relative to solr start dir
|
|
||||||
REM set SOLR_LOGS_DIR=logs
|
|
||||||
|
|
||||||
REM Enables log rotation before starting Solr. Setting SOLR_LOG_PRESTART_ROTATION=true will let Solr take care of pre
|
|
||||||
REM start rotation of logs. This is false by default as log4j2 handles this for us. If you choose to use another log
|
|
||||||
REM framework that cannot do startup rotation, you may want to enable this to let Solr rotate logs on startup.
|
|
||||||
REM set SOLR_LOG_PRESTART_ROTATION=false
|
|
||||||
|
|
||||||
REM Set the host interface to listen on. Jetty will listen on all interfaces (0.0.0.0) by default.
|
|
||||||
REM This must be an IPv4 ("a.b.c.d") or bracketed IPv6 ("[x::y]") address, not a hostname!
|
|
||||||
REM set SOLR_JETTY_HOST=0.0.0.0
|
|
||||||
|
|
||||||
REM Sets the port Solr binds to, default is 8983
|
|
||||||
REM set SOLR_PORT=8983
|
|
||||||
|
|
||||||
REM Enables HTTPS. It is implictly true if you set SOLR_SSL_KEY_STORE. Use this config
|
|
||||||
REM to enable https module with custom jetty configuration.
|
|
||||||
REM set SOLR_SSL_ENABLED=true
|
|
||||||
REM Uncomment to set SSL-related system properties
|
|
||||||
REM Be sure to update the paths to the correct keystore for your environment
|
|
||||||
REM set SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks
|
|
||||||
REM set SOLR_SSL_KEY_STORE_PASSWORD=secret
|
|
||||||
REM set SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks
|
|
||||||
REM set SOLR_SSL_TRUST_STORE_PASSWORD=secret
|
|
||||||
REM Require clients to authenticate
|
|
||||||
REM set SOLR_SSL_NEED_CLIENT_AUTH=false
|
|
||||||
REM Enable clients to authenticate (but not require)
|
|
||||||
REM set SOLR_SSL_WANT_CLIENT_AUTH=false
|
|
||||||
REM SSL Certificates contain host/ip "peer name" information that is validated by default. Setting
|
|
||||||
REM this to false can be useful to disable these checks when re-using a certificate on many hosts
|
|
||||||
REM set SOLR_SSL_CHECK_PEER_NAME=true
|
|
||||||
REM Override Key/Trust Store types if necessary
|
|
||||||
REM set SOLR_SSL_KEY_STORE_TYPE=JKS
|
|
||||||
REM set SOLR_SSL_TRUST_STORE_TYPE=JKS
|
|
||||||
|
|
||||||
REM Uncomment if you want to override previously defined SSL values for HTTP client
|
|
||||||
REM otherwise keep them commented and the above values will automatically be set for HTTP clients
|
|
||||||
REM set SOLR_SSL_CLIENT_KEY_STORE=
|
|
||||||
REM set SOLR_SSL_CLIENT_KEY_STORE_PASSWORD=
|
|
||||||
REM set SOLR_SSL_CLIENT_TRUST_STORE=
|
|
||||||
REM set SOLR_SSL_CLIENT_TRUST_STORE_PASSWORD=
|
|
||||||
REM set SOLR_SSL_CLIENT_KEY_STORE_TYPE=
|
|
||||||
REM set SOLR_SSL_CLIENT_TRUST_STORE_TYPE=
|
|
||||||
|
|
||||||
REM Sets path of Hadoop credential provider (hadoop.security.credential.provider.path property) and
|
|
||||||
REM enables usage of credential store.
|
|
||||||
REM Credential provider should store the following keys:
|
|
||||||
REM * solr.jetty.keystore.password
|
|
||||||
REM * solr.jetty.truststore.password
|
|
||||||
REM Set the two below if you want to set specific store passwords for HTTP client
|
|
||||||
REM * javax.net.ssl.keyStorePassword
|
|
||||||
REM * javax.net.ssl.trustStorePassword
|
|
||||||
REM More info: https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/CredentialProviderAPI.html
|
|
||||||
REM set SOLR_HADOOP_CREDENTIAL_PROVIDER_PATH=localjceks://file/home/solr/hadoop-credential-provider.jceks
|
|
||||||
REM set SOLR_OPTS=" -Dsolr.ssl.credential.provider.chain=hadoop"
|
|
||||||
|
|
||||||
REM Settings for authentication
|
|
||||||
REM Please configure only one of SOLR_AUTHENTICATION_CLIENT_BUILDER or SOLR_AUTH_TYPE parameters
|
|
||||||
REM set SOLR_AUTHENTICATION_CLIENT_BUILDER=org.apache.solr.client.solrj.impl.PreemptiveBasicAuthClientBuilderFactory
|
|
||||||
REM set SOLR_AUTH_TYPE=basic
|
|
||||||
REM set SOLR_AUTHENTICATION_OPTS="-Dbasicauth=solr:SolrRocks"
|
|
||||||
|
|
||||||
REM Settings for ZK ACL
|
|
||||||
REM set SOLR_ZK_CREDS_AND_ACLS=-DzkACLProvider=org.apache.solr.common.cloud.VMParamsAllAndReadonlyDigestZkACLProvider ^
|
|
||||||
REM -DzkCredentialsProvider=org.apache.solr.common.cloud.VMParamsSingleSetCredentialsDigestZkCredentialsProvider ^
|
|
||||||
REM -DzkDigestUsername=admin-user -DzkDigestPassword=CHANGEME-ADMIN-PASSWORD ^
|
|
||||||
REM -DzkDigestReadonlyUsername=readonly-user -DzkDigestReadonlyPassword=CHANGEME-READONLY-PASSWORD
|
|
||||||
REM set SOLR_OPTS=%SOLR_OPTS% %SOLR_ZK_CREDS_AND_ACLS%
|
|
||||||
|
|
||||||
REM When running Solr in non-cloud mode and if planning to do distributed search (using the "shards" parameter), the
|
|
||||||
REM list of hosts needs to be whitelisted or Solr will forbid the request. The whitelist can be configured in solr.xml,
|
|
||||||
REM or if you are using the OOTB solr.xml, can be specified using the system property "solr.shardsWhitelist". Alternatively
|
|
||||||
REM host checking can be disabled by using the system property "solr.disable.shardsWhitelist"
|
|
||||||
REM set SOLR_OPTS="%SOLR_OPTS% -Dsolr.shardsWhitelist=http://localhost:8983,http://localhost:8984"
|
|
||||||
|
|
||||||
REM For a visual indication in the Admin UI of what type of environment this cluster is, configure
|
|
||||||
REM a -Dsolr.environment property below. Valid values are prod, stage, test, dev, with an optional
|
|
||||||
REM label or color, e.g. -Dsolr.environment=test,label=Functional+test,color=brown
|
|
||||||
REM SOLR_OPTS="$SOLR_OPTS -Dsolr.environment=prod"
|
|
33
KeywordSearch/solr/bin/postlogs
Executable file
33
KeywordSearch/solr/bin/postlogs
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
|
# contributor license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright ownership.
|
||||||
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||||
|
# (the "License"); you may not use this file except in compliance with
|
||||||
|
# the License. You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
############################################################################################
|
||||||
|
#
|
||||||
|
# A command line tool for indexing Solr logs in the out-of-the-box log format.
|
||||||
|
#
|
||||||
|
# First build the Solr distribution. Then run postlogs from inside the Solr distribution
|
||||||
|
# home directory as described below:
|
||||||
|
#
|
||||||
|
# parameters:
|
||||||
|
#
|
||||||
|
# -- baseUrl: Example http://localhost:8983/solr/collection1
|
||||||
|
# -- rootDir: All files found at or below the root will be indexed
|
||||||
|
#
|
||||||
|
# Sample syntax: ./bin/postlogs http://localhost:8983/solr/collection1 /user/foo/logs");
|
||||||
|
#
|
||||||
|
#
|
||||||
|
############################################################################################
|
||||||
|
|
||||||
|
java -classpath dist/*:dist/solrj-lib/*: org.apache.solr.util.SolrLogPostTool $1 $2
|
@ -102,10 +102,17 @@ fi
|
|||||||
|
|
||||||
if [ -n "$SOLR_JAVA_HOME" ]; then
|
if [ -n "$SOLR_JAVA_HOME" ]; then
|
||||||
JAVA="$SOLR_JAVA_HOME/bin/java"
|
JAVA="$SOLR_JAVA_HOME/bin/java"
|
||||||
|
JSTACK="$SOLR_JAVA_HOME/bin/jstack"
|
||||||
elif [ -n "$JAVA_HOME" ]; then
|
elif [ -n "$JAVA_HOME" ]; then
|
||||||
for java in "$JAVA_HOME"/bin/amd64/java "$JAVA_HOME"/bin/java; do
|
for java in "$JAVA_HOME"/bin/amd64 "$JAVA_HOME"/bin; do
|
||||||
if [ -x "$java" ]; then
|
if [ -x "$java/java" ]; then
|
||||||
JAVA="$java"
|
JAVA="$java/java"
|
||||||
|
if [ -x "$java/jstack" ]; then
|
||||||
|
JSTACK="$java/jstack"
|
||||||
|
else
|
||||||
|
echo >&2 "The currently defined JAVA_HOME ($JAVA_HOME) refers to a location"
|
||||||
|
echo >&2 "where java was found but jstack was not found. Continuing."
|
||||||
|
fi
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -118,6 +125,7 @@ elif [ -n "$JAVA_HOME" ]; then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
JAVA=java
|
JAVA=java
|
||||||
|
JSTACK=jstack
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$SOLR_STOP_WAIT" ]; then
|
if [ -z "$SOLR_STOP_WAIT" ]; then
|
||||||
@ -206,6 +214,10 @@ if [ "$SOLR_SSL_ENABLED" == "true" ]; then
|
|||||||
SOLR_SSL_OPTS+=" -Dsolr.jetty.truststore.type=$SOLR_SSL_TRUST_STORE_TYPE"
|
SOLR_SSL_OPTS+=" -Dsolr.jetty.truststore.type=$SOLR_SSL_TRUST_STORE_TYPE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$SOLR_SSL_CLIENT_HOSTNAME_VERIFICATION" ] ; then
|
||||||
|
SOLR_SSL_OPTS+=" -Dsolr.jetty.ssl.verifyClientHostName=HTTPS"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$SOLR_SSL_NEED_CLIENT_AUTH" ]; then
|
if [ -n "$SOLR_SSL_NEED_CLIENT_AUTH" ]; then
|
||||||
SOLR_SSL_OPTS+=" -Dsolr.jetty.ssl.needClientAuth=$SOLR_SSL_NEED_CLIENT_AUTH"
|
SOLR_SSL_OPTS+=" -Dsolr.jetty.ssl.needClientAuth=$SOLR_SSL_NEED_CLIENT_AUTH"
|
||||||
fi
|
fi
|
||||||
@ -257,6 +269,11 @@ else
|
|||||||
SOLR_JETTY_CONFIG+=("--module=http")
|
SOLR_JETTY_CONFIG+=("--module=http")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Requestlog options
|
||||||
|
if [ "$SOLR_REQUESTLOG_ENABLED" == "true" ]; then
|
||||||
|
SOLR_JETTY_CONFIG+=("--module=requestlog")
|
||||||
|
fi
|
||||||
|
|
||||||
# Authentication options
|
# Authentication options
|
||||||
if [ -z "$SOLR_AUTH_TYPE" ] && [ -n "$SOLR_AUTHENTICATION_OPTS" ]; then
|
if [ -z "$SOLR_AUTH_TYPE" ] && [ -n "$SOLR_AUTHENTICATION_OPTS" ]; then
|
||||||
echo "WARNING: SOLR_AUTHENTICATION_OPTS environment variable configured without associated SOLR_AUTH_TYPE variable"
|
echo "WARNING: SOLR_AUTHENTICATION_OPTS environment variable configured without associated SOLR_AUTH_TYPE variable"
|
||||||
@ -312,7 +329,7 @@ function print_usage() {
|
|||||||
if [ -z "$CMD" ]; then
|
if [ -z "$CMD" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "Usage: solr COMMAND OPTIONS"
|
echo "Usage: solr COMMAND OPTIONS"
|
||||||
echo " where COMMAND is one of: start, stop, restart, status, healthcheck, create, create_core, create_collection, delete, version, zk, auth, assert, config, autoscaling"
|
echo " where COMMAND is one of: start, stop, restart, status, healthcheck, create, create_core, create_collection, delete, version, zk, auth, assert, config, autoscaling, export"
|
||||||
echo ""
|
echo ""
|
||||||
echo " Standalone server example (start Solr running in the background on port 8984):"
|
echo " Standalone server example (start Solr running in the background on port 8984):"
|
||||||
echo ""
|
echo ""
|
||||||
@ -705,7 +722,7 @@ function jetty_port() {
|
|||||||
function run_tool() {
|
function run_tool() {
|
||||||
|
|
||||||
"$JAVA" $SOLR_SSL_OPTS $AUTHC_OPTS $SOLR_ZK_CREDS_AND_ACLS -Dsolr.install.dir="$SOLR_TIP" \
|
"$JAVA" $SOLR_SSL_OPTS $AUTHC_OPTS $SOLR_ZK_CREDS_AND_ACLS -Dsolr.install.dir="$SOLR_TIP" \
|
||||||
-Dlog4j.configurationFile="file:$DEFAULT_SERVER_DIR/resources/log4j2-console.xml" \
|
-Dlog4j.configurationFile="$DEFAULT_SERVER_DIR/resources/log4j2-console.xml" \
|
||||||
-classpath "$DEFAULT_SERVER_DIR/solr-webapp/webapp/WEB-INF/lib/*:$DEFAULT_SERVER_DIR/lib/ext/*:$DEFAULT_SERVER_DIR/lib/*" \
|
-classpath "$DEFAULT_SERVER_DIR/solr-webapp/webapp/WEB-INF/lib/*:$DEFAULT_SERVER_DIR/lib/ext/*:$DEFAULT_SERVER_DIR/lib/*" \
|
||||||
org.apache.solr.util.SolrCLI "$@"
|
org.apache.solr.util.SolrCLI "$@"
|
||||||
|
|
||||||
@ -759,8 +776,59 @@ function get_info() {
|
|||||||
return $CODE
|
return $CODE
|
||||||
} # end get_info
|
} # end get_info
|
||||||
|
|
||||||
|
function run_package() {
|
||||||
|
runningSolrUrl=""
|
||||||
|
|
||||||
|
numSolrs=`find "$SOLR_PID_DIR" -name "solr-*.pid" -type f | wc -l | tr -d ' '`
|
||||||
|
if [ "$numSolrs" != "0" ]; then
|
||||||
|
#echo -e "\nFound $numSolrs Solr nodes: "
|
||||||
|
while read PIDF
|
||||||
|
do
|
||||||
|
ID=`cat "$PIDF"`
|
||||||
|
port=`jetty_port "$ID"`
|
||||||
|
if [ "$port" != "" ]; then
|
||||||
|
#echo -e "\nSolr process $ID running on port $port"
|
||||||
|
runningSolrUrl="$SOLR_URL_SCHEME://$SOLR_TOOL_HOST:$port/solr"
|
||||||
|
break
|
||||||
|
CODE=$?
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo -e "\nSolr process $ID from $PIDF not found."
|
||||||
|
CODE=1
|
||||||
|
fi
|
||||||
|
done < <(find "$SOLR_PID_DIR" -name "solr-*.pid" -type f)
|
||||||
|
else
|
||||||
|
# no pid files but check using ps just to be sure
|
||||||
|
numSolrs=`ps auxww | grep start\.jar | grep solr\.solr\.home | grep -v grep | wc -l | sed -e 's/^[ \t]*//'`
|
||||||
|
if [ "$numSolrs" != "0" ]; then
|
||||||
|
echo -e "\nFound $numSolrs Solr nodes: "
|
||||||
|
PROCESSES=$(ps auxww | grep start\.jar | grep solr\.solr\.home | grep -v grep | awk '{print $2}' | sort -r)
|
||||||
|
for ID in $PROCESSES
|
||||||
|
do
|
||||||
|
port=`jetty_port "$ID"`
|
||||||
|
if [ "$port" != "" ]; then
|
||||||
|
echo ""
|
||||||
|
echo "Solr process $ID running on port $port"
|
||||||
|
runningSolrUrl="$SOLR_URL_SCHEME://$SOLR_TOOL_HOST:$port/solr"
|
||||||
|
break
|
||||||
|
CODE=$?
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
else
|
||||||
|
echo -e "\nNo Solr nodes are running.\n"
|
||||||
|
exit 1
|
||||||
|
CODE=3
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
run_tool package -solrUrl "$runningSolrUrl" $@
|
||||||
|
#exit $?
|
||||||
|
}
|
||||||
|
|
||||||
# tries to gracefully stop Solr using the Jetty
|
# tries to gracefully stop Solr using the Jetty
|
||||||
# stop command and if that fails, then uses kill -9
|
# stop command and if that fails, then uses kill -9
|
||||||
|
# (will attempt to jstack before killing)
|
||||||
function stop_solr() {
|
function stop_solr() {
|
||||||
|
|
||||||
DIR="$1"
|
DIR="$1"
|
||||||
@ -797,11 +865,15 @@ function stop_solr() {
|
|||||||
|
|
||||||
CHECK_PID=`ps auxww | awk '{print $2}' | grep -w $SOLR_PID | sort -r | tr -d ' '`
|
CHECK_PID=`ps auxww | awk '{print $2}' | grep -w $SOLR_PID | sort -r | tr -d ' '`
|
||||||
if [ "$CHECK_PID" != "" ]; then
|
if [ "$CHECK_PID" != "" ]; then
|
||||||
|
if [ "$JSTACK" != "" ]; then
|
||||||
|
echo -e "Solr process $SOLR_PID is still running; jstacking it now."
|
||||||
|
$JSTACK $SOLR_PID
|
||||||
|
fi
|
||||||
echo -e "Solr process $SOLR_PID is still running; forcefully killing it now."
|
echo -e "Solr process $SOLR_PID is still running; forcefully killing it now."
|
||||||
kill -9 $SOLR_PID
|
kill -9 $SOLR_PID
|
||||||
echo "Killed process $SOLR_PID"
|
echo "Killed process $SOLR_PID"
|
||||||
rm -f "$SOLR_PID_DIR/solr-$SOLR_PORT.pid"
|
rm -f "$SOLR_PID_DIR/solr-$SOLR_PORT.pid"
|
||||||
sleep 1
|
sleep 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CHECK_PID=`ps auxww | awk '{print $2}' | grep -w $SOLR_PID | sort -r | tr -d ' '`
|
CHECK_PID=`ps auxww | awk '{print $2}' | grep -w $SOLR_PID | sort -r | tr -d ' '`
|
||||||
@ -1086,7 +1158,7 @@ if [[ "$SCRIPT_CMD" == "create" || "$SCRIPT_CMD" == "create_core" || "$SCRIPT_CM
|
|||||||
echo " To turn off: bin/solr config -c $CREATE_NAME -p $CREATE_PORT -action set-user-property -property update.autoCreateFields -value false"
|
echo " To turn off: bin/solr config -c $CREATE_NAME -p $CREATE_PORT -action set-user-property -property update.autoCreateFields -value false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$(whoami)" == "root" ]] && [[ "$FORCE" == "false" ]] ; then
|
if [[ $EUID -eq 0 ]] && [[ "$FORCE" == "false" ]] ; then
|
||||||
echo "WARNING: Creating cores as the root user can cause Solr to fail and is not advisable. Exiting."
|
echo "WARNING: Creating cores as the root user can cause Solr to fail and is not advisable. Exiting."
|
||||||
echo " If you started Solr as root (not advisable either), force core creation by adding argument -force"
|
echo " If you started Solr as root (not advisable either), force core creation by adding argument -force"
|
||||||
exit 1
|
exit 1
|
||||||
@ -1349,6 +1421,16 @@ if [[ "$SCRIPT_CMD" == "autoscaling" ]]; then
|
|||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$SCRIPT_CMD" == "export" ]]; then
|
||||||
|
run_tool export $@
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$SCRIPT_CMD" == "package" ]]; then
|
||||||
|
run_package $@
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$SCRIPT_CMD" == "auth" ]]; then
|
if [[ "$SCRIPT_CMD" == "auth" ]]; then
|
||||||
|
|
||||||
VERBOSE=""
|
VERBOSE=""
|
||||||
@ -1511,6 +1593,8 @@ if [ -z "$SOLR_ULIMIT_CHECKS" ] || [ "$SOLR_ULIMIT_CHECKS" != "false" ]; then
|
|||||||
if hash ulimit 2>/dev/null; then
|
if hash ulimit 2>/dev/null; then
|
||||||
openFiles=$(ulimit -n)
|
openFiles=$(ulimit -n)
|
||||||
maxProcs=$(ulimit -u)
|
maxProcs=$(ulimit -u)
|
||||||
|
virtualMemory=$(ulimit -v)
|
||||||
|
maxMemory=$(ulimit -m)
|
||||||
if [ $openFiles != "unlimited" ] && [ $openFiles -lt "$SOLR_RECOMMENDED_OPEN_FILES" ]; then
|
if [ $openFiles != "unlimited" ] && [ $openFiles -lt "$SOLR_RECOMMENDED_OPEN_FILES" ]; then
|
||||||
echo "*** [WARN] *** Your open file limit is currently $openFiles. "
|
echo "*** [WARN] *** Your open file limit is currently $openFiles. "
|
||||||
echo " It should be set to $SOLR_RECOMMENDED_OPEN_FILES to avoid operational disruption. "
|
echo " It should be set to $SOLR_RECOMMENDED_OPEN_FILES to avoid operational disruption. "
|
||||||
@ -1522,10 +1606,23 @@ if [ -z "$SOLR_ULIMIT_CHECKS" ] || [ "$SOLR_ULIMIT_CHECKS" != "false" ]; then
|
|||||||
echo " It should be set to $SOLR_RECOMMENDED_MAX_PROCESSES to avoid operational disruption. "
|
echo " It should be set to $SOLR_RECOMMENDED_MAX_PROCESSES to avoid operational disruption. "
|
||||||
echo " If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh"
|
echo " If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh"
|
||||||
fi
|
fi
|
||||||
|
if [ $virtualMemory != "unlimited" ]; then
|
||||||
|
echo "*** [WARN] *** Your Virtual Memory limit is $virtualMemory. "
|
||||||
|
echo " It should be set to 'unlimited' to avoid operational disruption. "
|
||||||
|
echo " If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh"
|
||||||
|
fi
|
||||||
|
if [ $maxMemory != "unlimited" ]; then
|
||||||
|
echo "*** [WARN] *** Your Max Memory Size limit is $maxMemory. "
|
||||||
|
echo " It should be set to 'unlimited' to avoid operational disruption. "
|
||||||
|
echo " If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Could not check ulimits for processes and open files, recommended values are"
|
echo "Could not check ulimits for processes and open files, recommended values are"
|
||||||
echo " max processes: $SOLR_RECOMMENDED_MAX_PROCESSES "
|
echo " max processes: $SOLR_RECOMMENDED_MAX_PROCESSES "
|
||||||
echo " open files: $SOLR_RECOMMENDED_OPEN_FILES"
|
echo " open files: $SOLR_RECOMMENDED_OPEN_FILES"
|
||||||
|
echo " virtual memory: unlimited"
|
||||||
|
echo " max memorh size: unlimited"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -1657,10 +1754,12 @@ if [ $# -gt 0 ]; then
|
|||||||
;;
|
;;
|
||||||
-v)
|
-v)
|
||||||
SOLR_LOG_LEVEL=DEBUG
|
SOLR_LOG_LEVEL=DEBUG
|
||||||
|
PASS_TO_RUN_EXAMPLE+=" -Dsolr.log.level=$SOLR_LOG_LEVEL"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-q)
|
-q)
|
||||||
SOLR_LOG_LEVEL=WARN
|
SOLR_LOG_LEVEL=WARN
|
||||||
|
PASS_TO_RUN_EXAMPLE+=" -Dsolr.log.level=$SOLR_LOG_LEVEL"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-all)
|
-all)
|
||||||
@ -1797,7 +1896,7 @@ if [ -z "$STOP_PORT" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$SCRIPT_CMD" == "start" ] || [ "$SCRIPT_CMD" == "restart" ] ; then
|
if [ "$SCRIPT_CMD" == "start" ] || [ "$SCRIPT_CMD" == "restart" ] ; then
|
||||||
if [[ "$(whoami)" == "root" ]] && [[ "$FORCE" == "false" ]] ; then
|
if [[ $EUID -eq 0 ]] && [[ "$FORCE" == "false" ]] ; then
|
||||||
echo "WARNING: Starting Solr as the root user is a security risk and not considered best practice. Exiting."
|
echo "WARNING: Starting Solr as the root user is a security risk and not considered best practice. Exiting."
|
||||||
echo " Please consult the Reference Guide. To override this check, start with argument '-force'"
|
echo " Please consult the Reference Guide. To override this check, start with argument '-force'"
|
||||||
exit 1
|
exit 1
|
||||||
@ -1864,7 +1963,7 @@ fi
|
|||||||
|
|
||||||
LOG4J_CONFIG=()
|
LOG4J_CONFIG=()
|
||||||
if [ -n "$LOG4J_PROPS" ]; then
|
if [ -n "$LOG4J_PROPS" ]; then
|
||||||
LOG4J_CONFIG+=("-Dlog4j.configurationFile=file:$LOG4J_PROPS")
|
LOG4J_CONFIG+=("-Dlog4j.configurationFile=$LOG4J_PROPS")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$SCRIPT_CMD" == "stop" ]; then
|
if [ "$SCRIPT_CMD" == "stop" ]; then
|
||||||
@ -1963,6 +2062,10 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# IP-based access control
|
||||||
|
IP_ACL_OPTS=("-Dsolr.jetty.inetaccess.includes=${SOLR_IP_WHITELIST}" \
|
||||||
|
"-Dsolr.jetty.inetaccess.excludes=${SOLR_IP_BLACKLIST}")
|
||||||
|
|
||||||
# These are useful for attaching remote profilers like VisualVM/JConsole
|
# These are useful for attaching remote profilers like VisualVM/JConsole
|
||||||
if [ "$ENABLE_REMOTE_JMX_OPTS" == "true" ]; then
|
if [ "$ENABLE_REMOTE_JMX_OPTS" == "true" ]; then
|
||||||
|
|
||||||
@ -1989,6 +2092,16 @@ else
|
|||||||
REMOTE_JMX_OPTS=()
|
REMOTE_JMX_OPTS=()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Enable java security manager (limiting filesystem access and other things)
|
||||||
|
if [ "$SOLR_SECURITY_MANAGER_ENABLED" == "true" ]; then
|
||||||
|
SECURITY_MANAGER_OPTS=('-Djava.security.manager' \
|
||||||
|
"-Djava.security.policy=${SOLR_SERVER_DIR}/etc/security.policy" \
|
||||||
|
"-Djava.security.properties=${SOLR_SERVER_DIR}/etc/security.properties" \
|
||||||
|
'-Dsolr.internal.network.permission=*')
|
||||||
|
else
|
||||||
|
SECURITY_MANAGER_OPTS=()
|
||||||
|
fi
|
||||||
|
|
||||||
JAVA_MEM_OPTS=()
|
JAVA_MEM_OPTS=()
|
||||||
if [ -z "$SOLR_HEAP" ] && [ -n "$SOLR_JAVA_MEM" ]; then
|
if [ -z "$SOLR_HEAP" ] && [ -n "$SOLR_JAVA_MEM" ]; then
|
||||||
JAVA_MEM_OPTS=($SOLR_JAVA_MEM)
|
JAVA_MEM_OPTS=($SOLR_JAVA_MEM)
|
||||||
@ -2023,7 +2136,8 @@ function start_solr() {
|
|||||||
'-XX:+ParallelRefProcEnabled' \
|
'-XX:+ParallelRefProcEnabled' \
|
||||||
'-XX:MaxGCPauseMillis=250' \
|
'-XX:MaxGCPauseMillis=250' \
|
||||||
'-XX:+UseLargePages' \
|
'-XX:+UseLargePages' \
|
||||||
'-XX:+AlwaysPreTouch')
|
'-XX:+AlwaysPreTouch' \
|
||||||
|
'-XX:+ExplicitGCInvokesConcurrent')
|
||||||
else
|
else
|
||||||
GC_TUNE=($GC_TUNE)
|
GC_TUNE=($GC_TUNE)
|
||||||
fi
|
fi
|
||||||
@ -2093,12 +2207,14 @@ function start_solr() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SOLR_START_OPTS=('-server' "${JAVA_MEM_OPTS[@]}" "${GC_TUNE[@]}" "${GC_LOG_OPTS[@]}" \
|
SOLR_START_OPTS=('-server' "${JAVA_MEM_OPTS[@]}" "${GC_TUNE[@]}" "${GC_LOG_OPTS[@]}" "${IP_ACL_OPTS[@]}" \
|
||||||
"${REMOTE_JMX_OPTS[@]}" "${CLOUD_MODE_OPTS[@]}" $SOLR_LOG_LEVEL_OPT -Dsolr.log.dir="$SOLR_LOGS_DIR" \
|
"${REMOTE_JMX_OPTS[@]}" "${CLOUD_MODE_OPTS[@]}" $SOLR_LOG_LEVEL_OPT -Dsolr.log.dir="$SOLR_LOGS_DIR" \
|
||||||
"-Djetty.port=$SOLR_PORT" "-DSTOP.PORT=$stop_port" "-DSTOP.KEY=$STOP_KEY" \
|
"-Djetty.port=$SOLR_PORT" "-DSTOP.PORT=$stop_port" "-DSTOP.KEY=$STOP_KEY" \
|
||||||
"${SOLR_HOST_ARG[@]}" "-Duser.timezone=$SOLR_TIMEZONE" \
|
# '-OmitStackTraceInFastThrow' ensures stack traces in errors,
|
||||||
|
# users who don't care about useful error msgs can override in SOLR_OPTS with +OmitStackTraceInFastThrow
|
||||||
|
"${SOLR_HOST_ARG[@]}" "-Duser.timezone=$SOLR_TIMEZONE" "-XX:-OmitStackTraceInFastThrow" \
|
||||||
"-Djetty.home=$SOLR_SERVER_DIR" "-Dsolr.solr.home=$SOLR_HOME" "-Dsolr.data.home=$SOLR_DATA_HOME" "-Dsolr.install.dir=$SOLR_TIP" \
|
"-Djetty.home=$SOLR_SERVER_DIR" "-Dsolr.solr.home=$SOLR_HOME" "-Dsolr.data.home=$SOLR_DATA_HOME" "-Dsolr.install.dir=$SOLR_TIP" \
|
||||||
"-Dsolr.default.confdir=$DEFAULT_CONFDIR" "${LOG4J_CONFIG[@]}" "${SOLR_OPTS[@]}")
|
"-Dsolr.default.confdir=$DEFAULT_CONFDIR" "${LOG4J_CONFIG[@]}" "${SOLR_OPTS[@]}" "${SECURITY_MANAGER_OPTS[@]}")
|
||||||
|
|
||||||
if [ "$SOLR_MODE" == "solrcloud" ]; then
|
if [ "$SOLR_MODE" == "solrcloud" ]; then
|
||||||
IN_CLOUD_MODE=" in SolrCloud mode"
|
IN_CLOUD_MODE=" in SolrCloud mode"
|
||||||
@ -2136,13 +2252,13 @@ function start_solr() {
|
|||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
# no lsof on cygwin though
|
# no lsof on cygwin though
|
||||||
if hash lsof 2>/dev/null ; then # hash returns true if lsof is on the path
|
if lsof -v 2>&1 | grep -q revision; then
|
||||||
echo -n "Waiting up to $SOLR_STOP_WAIT seconds to see Solr running on port $SOLR_PORT"
|
echo -n "Waiting up to $SOLR_STOP_WAIT seconds to see Solr running on port $SOLR_PORT"
|
||||||
# Launch in a subshell to show the spinner
|
# Launch in a subshell to show the spinner
|
||||||
(loops=0
|
(loops=0
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
running=`lsof -PniTCP:$SOLR_PORT -sTCP:LISTEN`
|
running=$(lsof -t -PniTCP:$SOLR_PORT -sTCP:LISTEN)
|
||||||
if [ -z "$running" ]; then
|
if [ -z "$running" ]; then
|
||||||
slept=$((loops * 2))
|
slept=$((loops * 2))
|
||||||
if [ $slept -lt $SOLR_STOP_WAIT ]; then
|
if [ $slept -lt $SOLR_STOP_WAIT ]; then
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
REM set JAVA_HOME=C:\Program Files\ojdkbuild\java-1.8.0-openjdk-1.8.0.222-1
|
|
||||||
REM set SOLR_SERVER_DIR=C:\Bitnami\solr-8.2.0-2/apache-solr/server
|
|
||||||
set SOLR_PORT=8983
|
|
||||||
set STOP_PORT=8079
|
|
||||||
|
|
||||||
@REM
|
@REM
|
||||||
@REM Licensed to the Apache Software Foundation (ASF) under one or more
|
@REM Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
@REM contributor license agreements. See the NOTICE file distributed with
|
@REM contributor license agreements. See the NOTICE file distributed with
|
||||||
@ -21,6 +16,8 @@ set STOP_PORT=8079
|
|||||||
|
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
@REM Make sure to keep line endings as CRLF for .cmd files
|
||||||
|
|
||||||
IF "%OS%"=="Windows_NT" setlocal enabledelayedexpansion enableextensions
|
IF "%OS%"=="Windows_NT" setlocal enabledelayedexpansion enableextensions
|
||||||
|
|
||||||
set "PASS_TO_RUN_EXAMPLE="
|
set "PASS_TO_RUN_EXAMPLE="
|
||||||
@ -85,6 +82,10 @@ IF "%SOLR_SSL_ENABLED%"=="true" (
|
|||||||
set "SOLR_SSL_OPTS=!SOLR_SSL_OPTS! -Dsolr.jetty.truststore.type=%SOLR_SSL_TRUST_STORE_TYPE%"
|
set "SOLR_SSL_OPTS=!SOLR_SSL_OPTS! -Dsolr.jetty.truststore.type=%SOLR_SSL_TRUST_STORE_TYPE%"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
IF NOT DEFINED SOLR_SSL_CLIENT_HOSTNAME_VERIFICATION (
|
||||||
|
set "SOLR_SSL_OPTS=!SOLR_SSL_OPTS! -Dsolr.jetty.ssl.verifyClientHostName=HTTPS"
|
||||||
|
)
|
||||||
|
|
||||||
IF DEFINED SOLR_SSL_NEED_CLIENT_AUTH (
|
IF DEFINED SOLR_SSL_NEED_CLIENT_AUTH (
|
||||||
set "SOLR_SSL_OPTS=!SOLR_SSL_OPTS! -Dsolr.jetty.ssl.needClientAuth=%SOLR_SSL_NEED_CLIENT_AUTH%"
|
set "SOLR_SSL_OPTS=!SOLR_SSL_OPTS! -Dsolr.jetty.ssl.needClientAuth=%SOLR_SSL_NEED_CLIENT_AUTH%"
|
||||||
)
|
)
|
||||||
@ -128,6 +129,11 @@ IF "%SOLR_SSL_ENABLED%"=="true" (
|
|||||||
set SOLR_SSL_OPTS=
|
set SOLR_SSL_OPTS=
|
||||||
)
|
)
|
||||||
|
|
||||||
|
REM Requestlog options
|
||||||
|
IF "%SOLR_REQUESTLOG_ENABLED%"=="true" (
|
||||||
|
set "SOLR_JETTY_CONFIG=!SOLR_JETTY_CONFIG! --module=requestlog"
|
||||||
|
)
|
||||||
|
|
||||||
REM Authentication options
|
REM Authentication options
|
||||||
|
|
||||||
IF NOT DEFINED SOLR_AUTH_TYPE (
|
IF NOT DEFINED SOLR_AUTH_TYPE (
|
||||||
@ -219,6 +225,8 @@ IF "%1"=="-v" goto get_version
|
|||||||
IF "%1"=="-version" goto get_version
|
IF "%1"=="-version" goto get_version
|
||||||
IF "%1"=="assert" goto run_assert
|
IF "%1"=="assert" goto run_assert
|
||||||
IF "%1"=="autoscaling" goto run_autoscaling
|
IF "%1"=="autoscaling" goto run_autoscaling
|
||||||
|
IF "%1"=="export" goto run_export
|
||||||
|
IF "%1"=="package" goto run_package
|
||||||
|
|
||||||
REM Only allow the command to be the first argument, assume start if not supplied
|
REM Only allow the command to be the first argument, assume start if not supplied
|
||||||
IF "%1"=="start" goto set_script_cmd
|
IF "%1"=="start" goto set_script_cmd
|
||||||
@ -295,7 +303,7 @@ goto done
|
|||||||
:script_usage
|
:script_usage
|
||||||
@echo.
|
@echo.
|
||||||
@echo Usage: solr COMMAND OPTIONS
|
@echo Usage: solr COMMAND OPTIONS
|
||||||
@echo where COMMAND is one of: start, stop, restart, healthcheck, create, create_core, create_collection, delete, version, zk, auth, assert, config, autoscaling
|
@echo where COMMAND is one of: start, stop, restart, healthcheck, create, create_core, create_collection, delete, version, zk, auth, assert, config, autoscaling, export
|
||||||
@echo.
|
@echo.
|
||||||
@echo Standalone server example (start Solr running in the background on port 8984):
|
@echo Standalone server example (start Solr running in the background on port 8984):
|
||||||
@echo.
|
@echo.
|
||||||
@ -719,11 +727,13 @@ goto parse_args
|
|||||||
|
|
||||||
:set_debug
|
:set_debug
|
||||||
set SOLR_LOG_LEVEL=DEBUG
|
set SOLR_LOG_LEVEL=DEBUG
|
||||||
|
set "PASS_TO_RUN_EXAMPLE=!PASS_TO_RUN_EXAMPLE! -Dsolr.log.level=%SOLR_LOG_LEVEL%"
|
||||||
SHIFT
|
SHIFT
|
||||||
goto parse_args
|
goto parse_args
|
||||||
|
|
||||||
:set_warn
|
:set_warn
|
||||||
set SOLR_LOG_LEVEL=WARN
|
set SOLR_LOG_LEVEL=WARN
|
||||||
|
set "PASS_TO_RUN_EXAMPLE=!PASS_TO_RUN_EXAMPLE! -Dsolr.log.level=%SOLR_LOG_LEVEL%"
|
||||||
SHIFT
|
SHIFT
|
||||||
goto parse_args
|
goto parse_args
|
||||||
|
|
||||||
@ -995,7 +1005,7 @@ set "EXAMPLE_DIR=%SOLR_TIP%\example"
|
|||||||
set TMP_SOLR_HOME=!SOLR_HOME:%EXAMPLE_DIR%=!
|
set TMP_SOLR_HOME=!SOLR_HOME:%EXAMPLE_DIR%=!
|
||||||
IF NOT "%TMP_SOLR_HOME%"=="%SOLR_HOME%" (
|
IF NOT "%TMP_SOLR_HOME%"=="%SOLR_HOME%" (
|
||||||
set "SOLR_LOGS_DIR=%SOLR_HOME%\..\logs"
|
set "SOLR_LOGS_DIR=%SOLR_HOME%\..\logs"
|
||||||
set "LOG4J_CONFIG=file:///%SOLR_SERVER_DIR%\resources\log4j2.xml"
|
set "LOG4J_CONFIG=%SOLR_SERVER_DIR%\resources\log4j2.xml"
|
||||||
)
|
)
|
||||||
|
|
||||||
set IS_RESTART=0
|
set IS_RESTART=0
|
||||||
@ -1028,13 +1038,10 @@ IF "%SCRIPT_CMD%"=="stop" (
|
|||||||
del "%SOLR_TIP%"\bin\solr-!SOME_SOLR_PORT!.port
|
del "%SOLR_TIP%"\bin\solr-!SOME_SOLR_PORT!.port
|
||||||
timeout /T 5
|
timeout /T 5
|
||||||
REM Kill it if it is still running after the graceful shutdown
|
REM Kill it if it is still running after the graceful shutdown
|
||||||
For /f "tokens=2,5" %%M in ('netstat -nao ^| find "TCP " ^| find ":0 " ^| find ":!SOME_SOLR_PORT! "') do (
|
IF EXIST "%JAVA_HOME%\bin\jstack.exe" (
|
||||||
IF "%%N"=="%%k" (
|
qprocess "%%k" >nul 2>nul && "%JAVA_HOME%\bin\jstack.exe" %%k && taskkill /f /PID %%k
|
||||||
IF "%%M"=="%SOLR_JETTY_HOST%:!SOME_SOLR_PORT!" (
|
) else (
|
||||||
@echo Forcefully killing process %%N
|
qprocess "%%k" >nul 2>nul && taskkill /f /PID %%k
|
||||||
taskkill /f /PID %%N
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -1058,13 +1065,10 @@ IF "%SCRIPT_CMD%"=="stop" (
|
|||||||
del "%SOLR_TIP%"\bin\solr-%SOLR_PORT%.port
|
del "%SOLR_TIP%"\bin\solr-%SOLR_PORT%.port
|
||||||
timeout /T 5
|
timeout /T 5
|
||||||
REM Kill it if it is still running after the graceful shutdown
|
REM Kill it if it is still running after the graceful shutdown
|
||||||
For /f "tokens=2,5" %%j in ('netstat -nao ^| find "TCP " ^| find ":0 " ^| find ":%SOLR_PORT% "') do (
|
IF EXIST "%JAVA_HOME%\bin\jstack.exe" (
|
||||||
IF "%%N"=="%%k" (
|
qprocess "%%N" >nul 2>nul && "%JAVA_HOME%\bin\jstack.exe" %%N && taskkill /f /PID %%N
|
||||||
IF "%%j"=="%SOLR_JETTY_HOST%:%SOLR_PORT%" (
|
) else (
|
||||||
@echo Forcefully killing process %%N
|
qprocess "%%N" >nul 2>nul && taskkill /f /PID %%N
|
||||||
taskkill /f /PID %%N
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -1150,6 +1154,10 @@ IF "%SOLR_MODE%"=="solrcloud" (
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
REM IP-based access control
|
||||||
|
set IP_ACL_OPTS=-Dsolr.jetty.inetaccess.includes="%SOLR_IP_WHITELIST%" ^
|
||||||
|
-Dsolr.jetty.inetaccess.excludes="%SOLR_IP_BLACKLIST%"
|
||||||
|
|
||||||
REM These are useful for attaching remove profilers like VisualVM/JConsole
|
REM These are useful for attaching remove profilers like VisualVM/JConsole
|
||||||
IF "%ENABLE_REMOTE_JMX_OPTS%"=="true" (
|
IF "%ENABLE_REMOTE_JMX_OPTS%"=="true" (
|
||||||
IF "!RMI_PORT!"=="" set RMI_PORT=1%SOLR_PORT%
|
IF "!RMI_PORT!"=="" set RMI_PORT=1%SOLR_PORT%
|
||||||
@ -1165,6 +1173,14 @@ IF "%ENABLE_REMOTE_JMX_OPTS%"=="true" (
|
|||||||
set REMOTE_JMX_OPTS=
|
set REMOTE_JMX_OPTS=
|
||||||
)
|
)
|
||||||
|
|
||||||
|
REM Enable java security manager (limiting filesystem access and other things)
|
||||||
|
IF "%SOLR_SECURITY_MANAGER_ENABLED%"=="true" (
|
||||||
|
set SECURITY_MANAGER_OPTS=-Djava.security.manager ^
|
||||||
|
-Djava.security.policy="%SOLR_SERVER_DIR%\etc\security.policy" ^
|
||||||
|
-Djava.security.properties="%SOLR_SERVER_DIR%\etc\security.properties" ^
|
||||||
|
-Dsolr.internal.network.permission=*
|
||||||
|
)
|
||||||
|
|
||||||
IF NOT "%SOLR_HEAP%"=="" set SOLR_JAVA_MEM=-Xms%SOLR_HEAP% -Xmx%SOLR_HEAP%
|
IF NOT "%SOLR_HEAP%"=="" set SOLR_JAVA_MEM=-Xms%SOLR_HEAP% -Xmx%SOLR_HEAP%
|
||||||
IF "%SOLR_JAVA_MEM%"=="" set SOLR_JAVA_MEM=-Xms512m -Xmx512m
|
IF "%SOLR_JAVA_MEM%"=="" set SOLR_JAVA_MEM=-Xms512m -Xmx512m
|
||||||
IF "%SOLR_JAVA_STACK_SIZE%"=="" set SOLR_JAVA_STACK_SIZE=-Xss256k
|
IF "%SOLR_JAVA_STACK_SIZE%"=="" set SOLR_JAVA_STACK_SIZE=-Xss256k
|
||||||
@ -1177,7 +1193,8 @@ IF "%GC_TUNE%"=="" (
|
|||||||
-XX:+ParallelRefProcEnabled ^
|
-XX:+ParallelRefProcEnabled ^
|
||||||
-XX:MaxGCPauseMillis=250 ^
|
-XX:MaxGCPauseMillis=250 ^
|
||||||
-XX:+UseLargePages ^
|
-XX:+UseLargePages ^
|
||||||
-XX:+AlwaysPreTouch
|
-XX:+AlwaysPreTouch ^
|
||||||
|
-XX:+ExplicitGCInvokesConcurrent
|
||||||
)
|
)
|
||||||
|
|
||||||
if !JAVA_MAJOR_VERSION! GEQ 9 (
|
if !JAVA_MAJOR_VERSION! GEQ 9 (
|
||||||
@ -1250,12 +1267,17 @@ IF "%verbose%"=="1" (
|
|||||||
)
|
)
|
||||||
|
|
||||||
set START_OPTS=-Duser.timezone=%SOLR_TIMEZONE%
|
set START_OPTS=-Duser.timezone=%SOLR_TIMEZONE%
|
||||||
|
REM '-OmitStackTraceInFastThrow' ensures stack traces in errors,
|
||||||
|
REM users who don't care about useful error msgs can override in SOLR_OPTS with +OmitStackTraceInFastThrow
|
||||||
|
set "START_OPTS=%START_OPTS% -XX:-OmitStackTraceInFastThrow"
|
||||||
set START_OPTS=%START_OPTS% !GC_TUNE! %GC_LOG_OPTS%
|
set START_OPTS=%START_OPTS% !GC_TUNE! %GC_LOG_OPTS%
|
||||||
IF NOT "!CLOUD_MODE_OPTS!"=="" set "START_OPTS=%START_OPTS% !CLOUD_MODE_OPTS!"
|
IF NOT "!CLOUD_MODE_OPTS!"=="" set "START_OPTS=%START_OPTS% !CLOUD_MODE_OPTS!"
|
||||||
|
IF NOT "!IP_ACL_OPTS!"=="" set "START_OPTS=%START_OPTS% !IP_ACL_OPTS!"
|
||||||
IF NOT "%REMOTE_JMX_OPTS%"=="" set "START_OPTS=%START_OPTS% %REMOTE_JMX_OPTS%"
|
IF NOT "%REMOTE_JMX_OPTS%"=="" set "START_OPTS=%START_OPTS% %REMOTE_JMX_OPTS%"
|
||||||
IF NOT "%SOLR_ADDL_ARGS%"=="" set "START_OPTS=%START_OPTS% %SOLR_ADDL_ARGS%"
|
IF NOT "%SOLR_ADDL_ARGS%"=="" set "START_OPTS=%START_OPTS% %SOLR_ADDL_ARGS%"
|
||||||
IF NOT "%SOLR_HOST_ARG%"=="" set "START_OPTS=%START_OPTS% %SOLR_HOST_ARG%"
|
IF NOT "%SOLR_HOST_ARG%"=="" set "START_OPTS=%START_OPTS% %SOLR_HOST_ARG%"
|
||||||
IF NOT "%SOLR_OPTS%"=="" set "START_OPTS=%START_OPTS% %SOLR_OPTS%"
|
IF NOT "%SOLR_OPTS%"=="" set "START_OPTS=%START_OPTS% %SOLR_OPTS%"
|
||||||
|
IF NOT "!SECURITY_MANAGER_OPTS!"=="" set "START_OPTS=%START_OPTS% !SECURITY_MANAGER_OPTS!"
|
||||||
IF "%SOLR_SSL_ENABLED%"=="true" (
|
IF "%SOLR_SSL_ENABLED%"=="true" (
|
||||||
set "SSL_PORT_PROP=-Dsolr.jetty.https.port=%SOLR_PORT%"
|
set "SSL_PORT_PROP=-Dsolr.jetty.https.port=%SOLR_PORT%"
|
||||||
set "START_OPTS=%START_OPTS% %SOLR_SSL_OPTS% !SSL_PORT_PROP!"
|
set "START_OPTS=%START_OPTS% %SOLR_SSL_OPTS% !SSL_PORT_PROP!"
|
||||||
@ -1267,7 +1289,7 @@ set SOLR_DATA_HOME_QUOTED="%SOLR_DATA_HOME%"
|
|||||||
|
|
||||||
set "START_OPTS=%START_OPTS% -Dsolr.log.dir=%SOLR_LOGS_DIR_QUOTED%"
|
set "START_OPTS=%START_OPTS% -Dsolr.log.dir=%SOLR_LOGS_DIR_QUOTED%"
|
||||||
IF NOT "%SOLR_DATA_HOME%"=="" set "START_OPTS=%START_OPTS% -Dsolr.data.home=%SOLR_DATA_HOME_QUOTED%"
|
IF NOT "%SOLR_DATA_HOME%"=="" set "START_OPTS=%START_OPTS% -Dsolr.data.home=%SOLR_DATA_HOME_QUOTED%"
|
||||||
IF NOT DEFINED LOG4J_CONFIG set "LOG4J_CONFIG=file:///%SOLR_SERVER_DIR%\resources\log4j2.xml"
|
IF NOT DEFINED LOG4J_CONFIG set "LOG4J_CONFIG=%SOLR_SERVER_DIR%\resources\log4j2.xml"
|
||||||
|
|
||||||
cd /d "%SOLR_SERVER_DIR%"
|
cd /d "%SOLR_SERVER_DIR%"
|
||||||
|
|
||||||
@ -1417,7 +1439,23 @@ goto done
|
|||||||
-Dlog4j.configurationFile="file:///%DEFAULT_SERVER_DIR%\resources\log4j2-console.xml" ^
|
-Dlog4j.configurationFile="file:///%DEFAULT_SERVER_DIR%\resources\log4j2-console.xml" ^
|
||||||
-classpath "%DEFAULT_SERVER_DIR%\solr-webapp\webapp\WEB-INF\lib\*;%DEFAULT_SERVER_DIR%\lib\ext\*" ^
|
-classpath "%DEFAULT_SERVER_DIR%\solr-webapp\webapp\WEB-INF\lib\*;%DEFAULT_SERVER_DIR%\lib\ext\*" ^
|
||||||
org.apache.solr.util.SolrCLI %*
|
org.apache.solr.util.SolrCLI %*
|
||||||
goto done
|
goto done:
|
||||||
|
|
||||||
|
:run_export
|
||||||
|
"%JAVA%" %SOLR_SSL_OPTS% %AUTHC_OPTS% %SOLR_ZK_CREDS_AND_ACLS% -Dsolr.install.dir="%SOLR_TIP%" ^
|
||||||
|
-Dlog4j.configurationFile="file:///%DEFAULT_SERVER_DIR%\resources\log4j2-console.xml" ^
|
||||||
|
-classpath "%DEFAULT_SERVER_DIR%\solr-webapp\webapp\WEB-INF\lib\*;%DEFAULT_SERVER_DIR%\lib\ext\*" ^
|
||||||
|
org.apache.solr.util.SolrCLI %*
|
||||||
|
goto done:
|
||||||
|
|
||||||
|
:run_package
|
||||||
|
REM TODO: Compute the running Solr URL and populate it as a parameter (as has been done for the shell script)
|
||||||
|
REM Without that, users will have to supply -solrUrl parameter in every request. Life can be so hard for Windows users!
|
||||||
|
"%JAVA%" %SOLR_SSL_OPTS% %AUTHC_OPTS% %SOLR_ZK_CREDS_AND_ACLS% -Dsolr.install.dir="%SOLR_TIP%" ^
|
||||||
|
-Dlog4j.configurationFile="file:///%DEFAULT_SERVER_DIR%\resources\log4j2-console.xml" ^
|
||||||
|
-classpath "%DEFAULT_SERVER_DIR%\solr-webapp\webapp\WEB-INF\lib\*;%DEFAULT_SERVER_DIR%\lib\ext\*" ^
|
||||||
|
org.apache.solr.util.SolrCLI %*
|
||||||
|
goto done:
|
||||||
|
|
||||||
:parse_config_args
|
:parse_config_args
|
||||||
IF [%1]==[] goto run_config
|
IF [%1]==[] goto run_config
|
||||||
|
@ -22,10 +22,10 @@ REM of this file is completely commented.
|
|||||||
REM By default the script will use JAVA_HOME to determine which java
|
REM By default the script will use JAVA_HOME to determine which java
|
||||||
REM to use, but you can set a specific path for Solr to use without
|
REM to use, but you can set a specific path for Solr to use without
|
||||||
REM affecting other Java applications on your server/workstation.
|
REM affecting other Java applications on your server/workstation.
|
||||||
REM set SOLR_JAVA_HOME=
|
set JAVA_HOME=C:\Program Files\ojdkbuild\java-1.8.0-openjdk-1.8.0.222-1
|
||||||
|
|
||||||
REM Increase Java Min/Max Heap as needed to support your indexing / query needs
|
REM Increase Java Min/Max Heap as needed to support your indexing / query needs
|
||||||
REM set SOLR_JAVA_MEM=-Xms512m -Xmx512m
|
set SOLR_JAVA_MEM=-Xms512m -Xmx4G
|
||||||
|
|
||||||
REM Configure verbose GC logging:
|
REM Configure verbose GC logging:
|
||||||
REM For Java 8: if this is set, additional params will be added to specify the log file & rotation
|
REM For Java 8: if this is set, additional params will be added to specify the log file & rotation
|
||||||
@ -34,6 +34,7 @@ REM set GC_LOG_OPTS=-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+Prin
|
|||||||
|
|
||||||
REM Various GC settings have shown to work well for a number of common Solr workloads.
|
REM Various GC settings have shown to work well for a number of common Solr workloads.
|
||||||
REM See solr.cmd GC_TUNE for the default list.
|
REM See solr.cmd GC_TUNE for the default list.
|
||||||
|
REM set GC_TUNE=-XX:+ExplicitGCInvokesConcurrent
|
||||||
REM set GC_TUNE=-XX:SurvivorRatio=4
|
REM set GC_TUNE=-XX:SurvivorRatio=4
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:TargetSurvivorRatio=90
|
REM set GC_TUNE=%GC_TUNE% -XX:TargetSurvivorRatio=90
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:MaxTenuringThreshold=8
|
REM set GC_TUNE=%GC_TUNE% -XX:MaxTenuringThreshold=8
|
||||||
@ -46,8 +47,7 @@ REM set GC_TUNE=%GC_TUNE% -XX:+UseCMSInitiatingOccupancyOnly
|
|||||||
REM set GC_TUNE=%GC_TUNE% -XX:CMSInitiatingOccupancyFraction=50
|
REM set GC_TUNE=%GC_TUNE% -XX:CMSInitiatingOccupancyFraction=50
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:CMSMaxAbortablePrecleanTime=6000
|
REM set GC_TUNE=%GC_TUNE% -XX:CMSMaxAbortablePrecleanTime=6000
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:+CMSParallelRemarkEnabled
|
REM set GC_TUNE=%GC_TUNE% -XX:+CMSParallelRemarkEnabled
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:+ParallelRefProcEnabled
|
REM set GC_TUNE=%GC_TUNE% -XX:+ParallelRefProcEnabled etc.
|
||||||
REM set GC_TUNE=%GC_TUNE% -XX:-OmitStackTraceInFastThrow etc.
|
|
||||||
|
|
||||||
REM Set the ZooKeeper connection string if using an external ZooKeeper ensemble
|
REM Set the ZooKeeper connection string if using an external ZooKeeper ensemble
|
||||||
REM e.g. host1:2181,host2:2181/chroot
|
REM e.g. host1:2181,host2:2181/chroot
|
||||||
@ -55,11 +55,11 @@ REM Leave empty if not using SolrCloud
|
|||||||
REM set ZK_HOST=
|
REM set ZK_HOST=
|
||||||
|
|
||||||
REM Set the ZooKeeper client timeout (for SolrCloud mode)
|
REM Set the ZooKeeper client timeout (for SolrCloud mode)
|
||||||
REM set ZK_CLIENT_TIMEOUT=15000
|
set ZK_CLIENT_TIMEOUT=60000
|
||||||
|
|
||||||
REM By default the start script uses "localhost"; override the hostname here
|
REM By default the start script uses "localhost"; override the hostname here
|
||||||
REM for production SolrCloud environments to control the hostname exposed to cluster state
|
REM for production SolrCloud environments to control the hostname exposed to cluster state
|
||||||
REM set SOLR_HOST=192.168.1.1
|
set SOLR_HOST=localhost
|
||||||
|
|
||||||
REM By default Solr will try to connect to Zookeeper with 30 seconds in timeout; override the timeout if needed
|
REM By default Solr will try to connect to Zookeeper with 30 seconds in timeout; override the timeout if needed
|
||||||
REM set SOLR_WAIT_FOR_ZK=30
|
REM set SOLR_WAIT_FOR_ZK=30
|
||||||
@ -78,9 +78,12 @@ REM set RMI_PORT=18983
|
|||||||
REM Anything you add to the SOLR_OPTS variable will be included in the java
|
REM Anything you add to the SOLR_OPTS variable will be included in the java
|
||||||
REM start command line as-is, in ADDITION to other options. If you specify the
|
REM start command line as-is, in ADDITION to other options. If you specify the
|
||||||
REM -a option on start script, those options will be appended as well. Examples:
|
REM -a option on start script, those options will be appended as well. Examples:
|
||||||
set SOLR_OPTS=%SOLR_OPTS% -Dbootstrap_confdir="C:\Bitnami\solr-8.2.0-2\apache-solr\server\solr\configsets\AutopsyConfig\conf"
|
REM set SOLR_OPTS=%SOLR_OPTS% -Dsolr.autoSoftCommit.maxTime=3000
|
||||||
|
REM set SOLR_OPTS=%SOLR_OPTS% -Dsolr.autoCommit.maxTime=60000
|
||||||
|
REM set SOLR_OPTS=%SOLR_OPTS% -Dsolr.clustering.enabled=true
|
||||||
|
set SOLR_OPTS=%SOLR_OPTS% -Dbootstrap_confdir="C:\Bitnami\solr-8.6.3\server\solr\configsets\AutopsyConfig\conf"
|
||||||
set SOLR_OPTS=%SOLR_OPTS% -Dcollection.configName=AutopsyConfig
|
set SOLR_OPTS=%SOLR_OPTS% -Dcollection.configName=AutopsyConfig
|
||||||
set SOLR_OPTS=%SOLR_OPTS% -Dsolr.default.confdir="C:\Bitnami\solr-8.2.0-2\apache-solr\server\solr\configsets\AutopsyConfig\conf"
|
set DEFAULT_CONFDIR="C:\Bitnami\solr-8.6.3\server\solr\configsets\AutopsyConfig\conf"
|
||||||
|
|
||||||
REM Path to a directory for Solr to store cores and their data. By default, Solr will use server\solr
|
REM Path to a directory for Solr to store cores and their data. By default, Solr will use server\solr
|
||||||
REM If solr.xml is not stored in ZooKeeper, this directory needs to contain solr.xml
|
REM If solr.xml is not stored in ZooKeeper, this directory needs to contain solr.xml
|
||||||
@ -88,7 +91,7 @@ REM set SOLR_HOME=
|
|||||||
|
|
||||||
REM Path to a directory that Solr will use as root for data folders for each core.
|
REM Path to a directory that Solr will use as root for data folders for each core.
|
||||||
REM If not set, defaults to <instance_dir>/data. Overridable per core through 'dataDir' core property
|
REM If not set, defaults to <instance_dir>/data. Overridable per core through 'dataDir' core property
|
||||||
REM set SOLR_DATA_HOME=
|
set SOLR_DATA_HOME=C:\TEST\DELETE\SOLR_SHARDS
|
||||||
|
|
||||||
REM Changes the logging level. Valid values: ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF. Default is INFO
|
REM Changes the logging level. Valid values: ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF. Default is INFO
|
||||||
REM This is an alternative to changing the rootLogger in log4j2.xml
|
REM This is an alternative to changing the rootLogger in log4j2.xml
|
||||||
@ -102,32 +105,48 @@ REM start rotation of logs. This is false by default as log4j2 handles this for
|
|||||||
REM framework that cannot do startup rotation, you may want to enable this to let Solr rotate logs on startup.
|
REM framework that cannot do startup rotation, you may want to enable this to let Solr rotate logs on startup.
|
||||||
REM set SOLR_LOG_PRESTART_ROTATION=false
|
REM set SOLR_LOG_PRESTART_ROTATION=false
|
||||||
|
|
||||||
|
REM Enables jetty request log for all requests
|
||||||
|
REM set SOLR_REQUESTLOG_ENABLED=false
|
||||||
|
|
||||||
REM Set the host interface to listen on. Jetty will listen on all interfaces (0.0.0.0) by default.
|
REM Set the host interface to listen on. Jetty will listen on all interfaces (0.0.0.0) by default.
|
||||||
REM This must be an IPv4 ("a.b.c.d") or bracketed IPv6 ("[x::y]") address, not a hostname!
|
REM This must be an IPv4 ("a.b.c.d") or bracketed IPv6 ("[x::y]") address, not a hostname!
|
||||||
REM set SOLR_JETTY_HOST=0.0.0.0
|
REM set SOLR_JETTY_HOST=0.0.0.0
|
||||||
|
|
||||||
REM Sets the port Solr binds to, default is 8983
|
REM Sets the port Solr binds to, default is 8983
|
||||||
REM set SOLR_PORT=8983
|
set SOLR_PORT=18983
|
||||||
|
set STOP_PORT=8079
|
||||||
|
|
||||||
|
REM Restrict access to solr by IP address.
|
||||||
|
REM Specify a comma-separated list of addresses or networks, for example:
|
||||||
|
REM 127.0.0.1, 192.168.0.0/24, [::1], [2000:123:4:5::]/64
|
||||||
|
REM set SOLR_IP_WHITELIST=
|
||||||
|
|
||||||
|
REM Block access to solr from specific IP addresses.
|
||||||
|
REM Specify a comma-separated list of addresses or networks, for example:
|
||||||
|
REM 127.0.0.1, 192.168.0.0/24, [::1], [2000:123:4:5::]/64
|
||||||
|
REM set SOLR_IP_BLACKLIST=
|
||||||
|
|
||||||
REM Enables HTTPS. It is implictly true if you set SOLR_SSL_KEY_STORE. Use this config
|
REM Enables HTTPS. It is implictly true if you set SOLR_SSL_KEY_STORE. Use this config
|
||||||
REM to enable https module with custom jetty configuration.
|
REM to enable https module with custom jetty configuration.
|
||||||
REM set SOLR_SSL_ENABLED=true
|
REM set SOLR_SSL_ENABLED=true
|
||||||
REM Uncomment to set SSL-related system properties
|
REM Uncomment to set SSL-related system properties
|
||||||
REM Be sure to update the paths to the correct keystore for your environment
|
REM Be sure to update the paths to the correct keystore for your environment
|
||||||
REM set SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks
|
REM set SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.p12
|
||||||
REM set SOLR_SSL_KEY_STORE_PASSWORD=secret
|
REM set SOLR_SSL_KEY_STORE_PASSWORD=secret
|
||||||
REM set SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks
|
REM set SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.p12
|
||||||
REM set SOLR_SSL_TRUST_STORE_PASSWORD=secret
|
REM set SOLR_SSL_TRUST_STORE_PASSWORD=secret
|
||||||
REM Require clients to authenticate
|
REM Require clients to authenticate
|
||||||
REM set SOLR_SSL_NEED_CLIENT_AUTH=false
|
REM set SOLR_SSL_NEED_CLIENT_AUTH=false
|
||||||
REM Enable clients to authenticate (but not require)
|
REM Enable clients to authenticate (but not require)
|
||||||
REM set SOLR_SSL_WANT_CLIENT_AUTH=false
|
REM set SOLR_SSL_WANT_CLIENT_AUTH=false
|
||||||
|
REM Verify client hostname during SSL handshake
|
||||||
|
REM set SOLR_SSL_CLIENT_HOSTNAME_VERIFICATION=false
|
||||||
REM SSL Certificates contain host/ip "peer name" information that is validated by default. Setting
|
REM SSL Certificates contain host/ip "peer name" information that is validated by default. Setting
|
||||||
REM this to false can be useful to disable these checks when re-using a certificate on many hosts
|
REM this to false can be useful to disable these checks when re-using a certificate on many hosts
|
||||||
REM set SOLR_SSL_CHECK_PEER_NAME=true
|
REM set SOLR_SSL_CHECK_PEER_NAME=true
|
||||||
REM Override Key/Trust Store types if necessary
|
REM Override Key/Trust Store types if necessary
|
||||||
REM set SOLR_SSL_KEY_STORE_TYPE=JKS
|
REM set SOLR_SSL_KEY_STORE_TYPE=PKCS12
|
||||||
REM set SOLR_SSL_TRUST_STORE_TYPE=JKS
|
REM set SOLR_SSL_TRUST_STORE_TYPE=PKCS12
|
||||||
|
|
||||||
REM Uncomment if you want to override previously defined SSL values for HTTP client
|
REM Uncomment if you want to override previously defined SSL values for HTTP client
|
||||||
REM otherwise keep them commented and the above values will automatically be set for HTTP clients
|
REM otherwise keep them commented and the above values will automatically be set for HTTP clients
|
||||||
@ -148,13 +167,13 @@ REM * javax.net.ssl.keyStorePassword
|
|||||||
REM * javax.net.ssl.trustStorePassword
|
REM * javax.net.ssl.trustStorePassword
|
||||||
REM More info: https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/CredentialProviderAPI.html
|
REM More info: https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/CredentialProviderAPI.html
|
||||||
REM set SOLR_HADOOP_CREDENTIAL_PROVIDER_PATH=localjceks://file/home/solr/hadoop-credential-provider.jceks
|
REM set SOLR_HADOOP_CREDENTIAL_PROVIDER_PATH=localjceks://file/home/solr/hadoop-credential-provider.jceks
|
||||||
REM set SOLR_OPTS=" -Dsolr.ssl.credential.provider.chain=hadoop"
|
REM set SOLR_OPTS=%SOLR_OPTS% -Dsolr.ssl.credential.provider.chain=hadoop
|
||||||
|
|
||||||
REM Settings for authentication
|
REM Settings for authentication
|
||||||
REM Please configure only one of SOLR_AUTHENTICATION_CLIENT_BUILDER or SOLR_AUTH_TYPE parameters
|
REM Please configure only one of SOLR_AUTHENTICATION_CLIENT_BUILDER or SOLR_AUTH_TYPE parameters
|
||||||
REM set SOLR_AUTHENTICATION_CLIENT_BUILDER=org.apache.solr.client.solrj.impl.PreemptiveBasicAuthClientBuilderFactory
|
REM set SOLR_AUTHENTICATION_CLIENT_BUILDER=org.apache.solr.client.solrj.impl.PreemptiveBasicAuthClientBuilderFactory
|
||||||
REM set SOLR_AUTH_TYPE=basic
|
REM set SOLR_AUTH_TYPE=basic
|
||||||
REM set SOLR_AUTHENTICATION_OPTS="-Dbasicauth=solr:SolrRocks"
|
REM set SOLR_AUTHENTICATION_OPTS=-Dbasicauth=solr:SolrRocks
|
||||||
|
|
||||||
REM Settings for ZK ACL
|
REM Settings for ZK ACL
|
||||||
REM set SOLR_ZK_CREDS_AND_ACLS=-DzkACLProvider=org.apache.solr.common.cloud.VMParamsAllAndReadonlyDigestZkACLProvider ^
|
REM set SOLR_ZK_CREDS_AND_ACLS=-DzkACLProvider=org.apache.solr.common.cloud.VMParamsAllAndReadonlyDigestZkACLProvider ^
|
||||||
@ -167,9 +186,25 @@ REM When running Solr in non-cloud mode and if planning to do distributed search
|
|||||||
REM list of hosts needs to be whitelisted or Solr will forbid the request. The whitelist can be configured in solr.xml,
|
REM list of hosts needs to be whitelisted or Solr will forbid the request. The whitelist can be configured in solr.xml,
|
||||||
REM or if you are using the OOTB solr.xml, can be specified using the system property "solr.shardsWhitelist". Alternatively
|
REM or if you are using the OOTB solr.xml, can be specified using the system property "solr.shardsWhitelist". Alternatively
|
||||||
REM host checking can be disabled by using the system property "solr.disable.shardsWhitelist"
|
REM host checking can be disabled by using the system property "solr.disable.shardsWhitelist"
|
||||||
REM set SOLR_OPTS="%SOLR_OPTS% -Dsolr.shardsWhitelist=http://localhost:8983,http://localhost:8984"
|
REM set SOLR_OPTS=%SOLR_OPTS% -Dsolr.shardsWhitelist=http://localhost:8983,http://localhost:8984
|
||||||
|
|
||||||
REM For a visual indication in the Admin UI of what type of environment this cluster is, configure
|
REM For a visual indication in the Admin UI of what type of environment this cluster is, configure
|
||||||
REM a -Dsolr.environment property below. Valid values are prod, stage, test, dev, with an optional
|
REM a -Dsolr.environment property below. Valid values are prod, stage, test, dev, with an optional
|
||||||
REM label or color, e.g. -Dsolr.environment=test,label=Functional+test,color=brown
|
REM label or color, e.g. -Dsolr.environment=test,label=Functional+test,color=brown
|
||||||
REM SOLR_OPTS="$SOLR_OPTS -Dsolr.environment=prod"
|
REM set SOLR_OPTS=%SOLR_OPTS% -Dsolr.environment=prod
|
||||||
|
|
||||||
|
REM Specifies the path to a common library directory that will be shared across all cores.
|
||||||
|
REM Any JAR files in this directory will be added to the search path for Solr plugins.
|
||||||
|
REM If the specified path is not absolute, it will be relative to `%SOLR_HOME%`.
|
||||||
|
REM set SOLR_OPTS=%SOLR_OPTS% -Dsolr.sharedLib=/path/to/lib
|
||||||
|
|
||||||
|
REM Runs solr in a java security manager sandbox. This can protect against some attacks.
|
||||||
|
REM Runtime properties are passed to the security policy file (server\etc\security.policy)
|
||||||
|
REM You can also tweak via standard JDK files such as ~\.java.policy, see https://s.apache.org/java8policy
|
||||||
|
REM This is experimental! It may not work at all with Hadoop/HDFS features.
|
||||||
|
REM set SOLR_SECURITY_MANAGER_ENABLED=false
|
||||||
|
|
||||||
|
REM Solr is by default allowed to read and write data from/to SOLR_HOME and a few other well defined locations
|
||||||
|
REM Sometimes it may be necessary to place a core or a backup on a different location or a different disk
|
||||||
|
REM This parameter lets you specify file system path(s) to explicitly allow. The special value of '*' will allow any path
|
||||||
|
REM SOLR_OPTS="%SOLR_OPTS% -Dsolr.allowPaths=D:\,E:\other\path"
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
# By default the script will use JAVA_HOME to determine which java
|
# By default the script will use JAVA_HOME to determine which java
|
||||||
# to use, but you can set a specific path for Solr to use without
|
# to use, but you can set a specific path for Solr to use without
|
||||||
# affecting other Java applications on your server/workstation.
|
# affecting other Java applications on your server/workstation.
|
||||||
SOLR_JAVA_HOME="C:\Program Files\ojdkbuild\java-1.8.0-openjdk-1.8.0.222-1"
|
#SOLR_JAVA_HOME=""
|
||||||
|
|
||||||
# This controls the number of seconds that the solr script will wait for
|
# This controls the number of seconds that the solr script will wait for
|
||||||
# Solr to stop gracefully or Solr to start. If the graceful stop fails,
|
# Solr to stop gracefully or Solr to start. If the graceful stop fails,
|
||||||
@ -47,6 +47,7 @@ SOLR_JAVA_HOME="C:\Program Files\ojdkbuild\java-1.8.0-openjdk-1.8.0.222-1"
|
|||||||
|
|
||||||
# These GC settings have shown to work well for a number of common Solr workloads
|
# These GC settings have shown to work well for a number of common Solr workloads
|
||||||
#GC_TUNE=" \
|
#GC_TUNE=" \
|
||||||
|
#-XX:+ExplicitGCInvokesConcurrent \
|
||||||
#-XX:SurvivorRatio=4 \
|
#-XX:SurvivorRatio=4 \
|
||||||
#-XX:TargetSurvivorRatio=90 \
|
#-XX:TargetSurvivorRatio=90 \
|
||||||
#-XX:MaxTenuringThreshold=8 \
|
#-XX:MaxTenuringThreshold=8 \
|
||||||
@ -58,8 +59,7 @@ SOLR_JAVA_HOME="C:\Program Files\ojdkbuild\java-1.8.0-openjdk-1.8.0.222-1"
|
|||||||
#-XX:CMSInitiatingOccupancyFraction=50 \
|
#-XX:CMSInitiatingOccupancyFraction=50 \
|
||||||
#-XX:CMSMaxAbortablePrecleanTime=6000 \
|
#-XX:CMSMaxAbortablePrecleanTime=6000 \
|
||||||
#-XX:+CMSParallelRemarkEnabled \
|
#-XX:+CMSParallelRemarkEnabled \
|
||||||
#-XX:+ParallelRefProcEnabled \
|
#-XX:+ParallelRefProcEnabled etc.
|
||||||
#-XX:-OmitStackTraceInFastThrow etc.
|
|
||||||
|
|
||||||
# Set the ZooKeeper connection string if using an external ZooKeeper ensemble
|
# Set the ZooKeeper connection string if using an external ZooKeeper ensemble
|
||||||
# e.g. host1:2181,host2:2181/chroot
|
# e.g. host1:2181,host2:2181/chroot
|
||||||
@ -82,7 +82,7 @@ SOLR_JAVA_HOME="C:\Program Files\ojdkbuild\java-1.8.0-openjdk-1.8.0.222-1"
|
|||||||
# Set to true to activate the JMX RMI connector to allow remote JMX client applications
|
# Set to true to activate the JMX RMI connector to allow remote JMX client applications
|
||||||
# to monitor the JVM hosting Solr; set to "false" to disable that behavior
|
# to monitor the JVM hosting Solr; set to "false" to disable that behavior
|
||||||
# (false is recommended in production environments)
|
# (false is recommended in production environments)
|
||||||
ENABLE_REMOTE_JMX_OPTS="true"
|
#ENABLE_REMOTE_JMX_OPTS="false"
|
||||||
|
|
||||||
# The script will use SOLR_PORT+10000 for the RMI_PORT or you can set it here
|
# The script will use SOLR_PORT+10000 for the RMI_PORT or you can set it here
|
||||||
# RMI_PORT=18983
|
# RMI_PORT=18983
|
||||||
@ -90,9 +90,9 @@ ENABLE_REMOTE_JMX_OPTS="true"
|
|||||||
# Anything you add to the SOLR_OPTS variable will be included in the java
|
# Anything you add to the SOLR_OPTS variable will be included in the java
|
||||||
# start command line as-is, in ADDITION to other options. If you specify the
|
# start command line as-is, in ADDITION to other options. If you specify the
|
||||||
# -a option on start script, those options will be appended as well. Examples:
|
# -a option on start script, those options will be appended as well. Examples:
|
||||||
SOLR_OPTS="$SOLR_OPTS -Dcollection.configName=AutopsyConfig"
|
#SOLR_OPTS="$SOLR_OPTS -Dsolr.autoSoftCommit.maxTime=3000"
|
||||||
SOLR_OPTS="$SOLR_OPTS -Dbootstrap_confdir=C:\Bitnami\solr-8.2.0-2\apache-solr\server\solr\configsets\AutopsyConfig\conf"
|
#SOLR_OPTS="$SOLR_OPTS -Dsolr.autoCommit.maxTime=60000"
|
||||||
SOLR_OPTS="$SOLR_OPTS -Dsolr.default.confdir=C:\Bitnami\solr-8.2.0-2\apache-solr\server\solr\configsets\AutopsyConfig\conf"
|
#SOLR_OPTS="$SOLR_OPTS -Dsolr.clustering.enabled=true"
|
||||||
|
|
||||||
# Location where the bin/solr script will save PID files for running instances
|
# Location where the bin/solr script will save PID files for running instances
|
||||||
# If not set, the script will create PID files in $SOLR_TIP/bin
|
# If not set, the script will create PID files in $SOLR_TIP/bin
|
||||||
@ -123,28 +123,43 @@ SOLR_OPTS="$SOLR_OPTS -Dsolr.default.confdir=C:\Bitnami\solr-8.2.0-2\apache-solr
|
|||||||
# framework that cannot do startup rotation, you may want to enable this to let Solr rotate logs on startup.
|
# framework that cannot do startup rotation, you may want to enable this to let Solr rotate logs on startup.
|
||||||
#SOLR_LOG_PRESTART_ROTATION=false
|
#SOLR_LOG_PRESTART_ROTATION=false
|
||||||
|
|
||||||
|
# Enables jetty request log for all requests
|
||||||
|
#SOLR_REQUESTLOG_ENABLED=false
|
||||||
|
|
||||||
# Sets the port Solr binds to, default is 8983
|
# Sets the port Solr binds to, default is 8983
|
||||||
#SOLR_PORT=8983
|
#SOLR_PORT=8983
|
||||||
|
|
||||||
|
# Restrict access to solr by IP address.
|
||||||
|
# Specify a comma-separated list of addresses or networks, for example:
|
||||||
|
# 127.0.0.1, 192.168.0.0/24, [::1], [2000:123:4:5::]/64
|
||||||
|
#SOLR_IP_WHITELIST=
|
||||||
|
|
||||||
|
# Block access to solr from specific IP addresses.
|
||||||
|
# Specify a comma-separated list of addresses or networks, for example:
|
||||||
|
# 127.0.0.1, 192.168.0.0/24, [::1], [2000:123:4:5::]/64
|
||||||
|
#SOLR_IP_BLACKLIST=
|
||||||
|
|
||||||
# Enables HTTPS. It is implictly true if you set SOLR_SSL_KEY_STORE. Use this config
|
# Enables HTTPS. It is implictly true if you set SOLR_SSL_KEY_STORE. Use this config
|
||||||
# to enable https module with custom jetty configuration.
|
# to enable https module with custom jetty configuration.
|
||||||
#SOLR_SSL_ENABLED=true
|
#SOLR_SSL_ENABLED=true
|
||||||
# Uncomment to set SSL-related system properties
|
# Uncomment to set SSL-related system properties
|
||||||
# Be sure to update the paths to the correct keystore for your environment
|
# Be sure to update the paths to the correct keystore for your environment
|
||||||
#SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks
|
#SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.p12
|
||||||
#SOLR_SSL_KEY_STORE_PASSWORD=secret
|
#SOLR_SSL_KEY_STORE_PASSWORD=secret
|
||||||
#SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks
|
#SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.p12
|
||||||
#SOLR_SSL_TRUST_STORE_PASSWORD=secret
|
#SOLR_SSL_TRUST_STORE_PASSWORD=secret
|
||||||
# Require clients to authenticate
|
# Require clients to authenticate
|
||||||
#SOLR_SSL_NEED_CLIENT_AUTH=false
|
#SOLR_SSL_NEED_CLIENT_AUTH=false
|
||||||
# Enable clients to authenticate (but not require)
|
# Enable clients to authenticate (but not require)
|
||||||
#SOLR_SSL_WANT_CLIENT_AUTH=false
|
#SOLR_SSL_WANT_CLIENT_AUTH=false
|
||||||
|
# Verify client's hostname during SSL handshake
|
||||||
|
#SOLR_SSL_CLIENT_HOSTNAME_VERIFICATION=false
|
||||||
# SSL Certificates contain host/ip "peer name" information that is validated by default. Setting
|
# SSL Certificates contain host/ip "peer name" information that is validated by default. Setting
|
||||||
# this to false can be useful to disable these checks when re-using a certificate on many hosts
|
# this to false can be useful to disable these checks when re-using a certificate on many hosts
|
||||||
#SOLR_SSL_CHECK_PEER_NAME=true
|
#SOLR_SSL_CHECK_PEER_NAME=true
|
||||||
# Override Key/Trust Store types if necessary
|
# Override Key/Trust Store types if necessary
|
||||||
#SOLR_SSL_KEY_STORE_TYPE=JKS
|
#SOLR_SSL_KEY_STORE_TYPE=PKCS12
|
||||||
#SOLR_SSL_TRUST_STORE_TYPE=JKS
|
#SOLR_SSL_TRUST_STORE_TYPE=PKCS12
|
||||||
|
|
||||||
# Uncomment if you want to override previously defined SSL values for HTTP client
|
# Uncomment if you want to override previously defined SSL values for HTTP client
|
||||||
# otherwise keep them commented and the above values will automatically be set for HTTP clients
|
# otherwise keep them commented and the above values will automatically be set for HTTP clients
|
||||||
@ -201,3 +216,19 @@ SOLR_OPTS="$SOLR_OPTS -Dsolr.default.confdir=C:\Bitnami\solr-8.2.0-2\apache-solr
|
|||||||
# a -Dsolr.environment property below. Valid values are prod, stage, test, dev, with an optional
|
# a -Dsolr.environment property below. Valid values are prod, stage, test, dev, with an optional
|
||||||
# label or color, e.g. -Dsolr.environment=test,label=Functional+test,color=brown
|
# label or color, e.g. -Dsolr.environment=test,label=Functional+test,color=brown
|
||||||
#SOLR_OPTS="$SOLR_OPTS -Dsolr.environment=prod"
|
#SOLR_OPTS="$SOLR_OPTS -Dsolr.environment=prod"
|
||||||
|
|
||||||
|
# Specifies the path to a common library directory that will be shared across all cores.
|
||||||
|
# Any JAR files in this directory will be added to the search path for Solr plugins.
|
||||||
|
# If the specified path is not absolute, it will be relative to `$SOLR_HOME`.
|
||||||
|
#SOLR_OPTS="$SOLR_OPTS -Dsolr.sharedLib=/path/to/lib"
|
||||||
|
|
||||||
|
# Runs solr in java security manager sandbox. This can protect against some attacks.
|
||||||
|
# Runtime properties are passed to the security policy file (server/etc/security.policy)
|
||||||
|
# You can also tweak via standard JDK files such as ~/.java.policy, see https://s.apache.org/java8policy
|
||||||
|
# This is experimental! It may not work at all with Hadoop/HDFS features.
|
||||||
|
#SOLR_SECURITY_MANAGER_ENABLED=false
|
||||||
|
|
||||||
|
# Solr is by default allowed to read and write data from/to SOLR_HOME and a few other well defined locations
|
||||||
|
# Sometimes it may be necessary to place a core or a backup on a different location or a different disk
|
||||||
|
# This parameter lets you specify file system path(s) to explicitly allow. The special value of '*' will allow any path
|
||||||
|
#SOLR_OPTS="$SOLR_OPTS -Dsolr.allowPaths=/mnt/bigdisk,/other/path"
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
|
|
||||||
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
|
|
||||||
<Set name="contextPath"><SystemProperty name="hostContext" default="/solr"/></Set>
|
|
||||||
<Set name="war"><SystemProperty name="jetty.home"/>/webapps/solr.war</Set>
|
|
||||||
<Set name="defaultsDescriptor"><SystemProperty name="jetty.home"/>/etc/webdefault.xml</Set>
|
|
||||||
|
|
||||||
</Configure>
|
|
@ -1,204 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
|
|
||||||
|
|
||||||
<!-- =============================================================== -->
|
|
||||||
<!-- Configure the Jetty Server -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- Documentation of this file format can be found at: -->
|
|
||||||
<!-- http://wiki.eclipse.org/Jetty/Reference/jetty.xml_syntax -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- =============================================================== -->
|
|
||||||
|
|
||||||
|
|
||||||
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
|
||||||
|
|
||||||
<!-- =========================================================== -->
|
|
||||||
<!-- Server Thread Pool -->
|
|
||||||
<!-- =========================================================== -->
|
|
||||||
<Set name="ThreadPool">
|
|
||||||
<!-- Default queued blocking threadpool -->
|
|
||||||
<New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
|
|
||||||
<Set name="minThreads">10</Set>
|
|
||||||
<Set name="maxThreads">10000</Set>
|
|
||||||
<Set name="detailedDump">false</Set>
|
|
||||||
</New>
|
|
||||||
</Set>
|
|
||||||
|
|
||||||
<!-- =========================================================== -->
|
|
||||||
<!-- Set connectors -->
|
|
||||||
<!-- =========================================================== -->
|
|
||||||
|
|
||||||
<!--
|
|
||||||
<Call name="addConnector">
|
|
||||||
<Arg>
|
|
||||||
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
|
|
||||||
<Set name="host"><SystemProperty name="jetty.host" /></Set>
|
|
||||||
<Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
|
|
||||||
<Set name="maxIdleTime">50000</Set>
|
|
||||||
<Set name="Acceptors">2</Set>
|
|
||||||
<Set name="statsOn">false</Set>
|
|
||||||
<Set name="confidentialPort">8443</Set>
|
|
||||||
<Set name="lowResourcesConnections">5000</Set>
|
|
||||||
<Set name="lowResourcesMaxIdleTime">5000</Set>
|
|
||||||
</New>
|
|
||||||
</Arg>
|
|
||||||
</Call>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- This connector is currently being used for Solr because it
|
|
||||||
showed better performance than nio.SelectChannelConnector
|
|
||||||
for typical Solr requests. -->
|
|
||||||
<Call name="addConnector">
|
|
||||||
<Arg>
|
|
||||||
<New class="org.eclipse.jetty.server.bio.SocketConnector">
|
|
||||||
<Set name="host"><SystemProperty name="jetty.host" default="localhost"/></Set>
|
|
||||||
<Set name="port"><SystemProperty name="jetty.port" default="23232"/></Set>
|
|
||||||
<Set name="maxIdleTime">50000</Set>
|
|
||||||
<Set name="lowResourceMaxIdleTime">1500</Set>
|
|
||||||
<Set name="statsOn">false</Set>
|
|
||||||
</New>
|
|
||||||
</Arg>
|
|
||||||
</Call>
|
|
||||||
|
|
||||||
<!-- if the connector below is uncommented, then jetty will also accept SSL
|
|
||||||
connections on port 8984, using a self signed certificate and can
|
|
||||||
optionally require the client to authenticate with a certificate.
|
|
||||||
(which can be the same as the server certificate_
|
|
||||||
|
|
||||||
# Run solr example with SSL on port 8984
|
|
||||||
java -jar start.jar
|
|
||||||
#
|
|
||||||
# Run post.jar so that it trusts the server cert...
|
|
||||||
java -Djavax.net.ssl.trustStore=../etc/solrtest.keystore -Durl=https://localhost:8984/solr/update -jar post.jar *.xml
|
|
||||||
|
|
||||||
# Run solr example with SSL requiring client certs on port 8984
|
|
||||||
java -Djetty.ssl.clientAuth=true -jar start.jar
|
|
||||||
#
|
|
||||||
# Run post.jar so that it trusts the server cert,
|
|
||||||
# and authenticates with a client cert
|
|
||||||
java -Djavax.net.ssl.keyStorePassword=secret -Djavax.net.ssl.keyStore=../etc/solrtest.keystore -Djavax.net.ssl.trustStore=../etc/solrtest.keystore -Durl=https://localhost:8984/solr/update -jar post.jar *.xml
|
|
||||||
|
|
||||||
-->
|
|
||||||
<!--
|
|
||||||
<Call name="addConnector">
|
|
||||||
<Arg>
|
|
||||||
<New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
|
|
||||||
<Arg>
|
|
||||||
<New class="org.eclipse.jetty.http.ssl.SslContextFactory">
|
|
||||||
<Set name="keyStore"><SystemProperty name="jetty.home" default="."/>/etc/solrtest.keystore</Set>
|
|
||||||
<Set name="keyStorePassword">secret</Set>
|
|
||||||
<Set name="needClientAuth"><SystemProperty name="jetty.ssl.clientAuth" default="false"/></Set>
|
|
||||||
</New>
|
|
||||||
</Arg>
|
|
||||||
<Set name="port"><SystemProperty name="jetty.ssl.port" default="8984"/></Set>
|
|
||||||
<Set name="maxIdleTime">30000</Set>
|
|
||||||
</New>
|
|
||||||
</Arg>
|
|
||||||
</Call>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- =========================================================== -->
|
|
||||||
<!-- Set handler Collection Structure -->
|
|
||||||
<!-- =========================================================== -->
|
|
||||||
<Set name="handler">
|
|
||||||
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
|
|
||||||
<Set name="handlers">
|
|
||||||
<Array type="org.eclipse.jetty.server.Handler">
|
|
||||||
<Item>
|
|
||||||
<New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
|
|
||||||
</Item>
|
|
||||||
<Item>
|
|
||||||
<New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
|
|
||||||
</Item>
|
|
||||||
<Item>
|
|
||||||
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
|
|
||||||
</Item>
|
|
||||||
</Array>
|
|
||||||
</Set>
|
|
||||||
</New>
|
|
||||||
</Set>
|
|
||||||
|
|
||||||
<!-- =========================================================== -->
|
|
||||||
<!-- Configure Request Log -->
|
|
||||||
<!-- =========================================================== -->
|
|
||||||
<!--
|
|
||||||
<Ref id="Handlers">
|
|
||||||
<Call name="addHandler">
|
|
||||||
<Arg>
|
|
||||||
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
|
|
||||||
<Set name="requestLog">
|
|
||||||
<New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
|
|
||||||
<Set name="filename">
|
|
||||||
logs/request.yyyy_mm_dd.log
|
|
||||||
</Set>
|
|
||||||
<Set name="filenameDateFormat">yyyy_MM_dd</Set>
|
|
||||||
<Set name="retainDays">90</Set>
|
|
||||||
<Set name="append">true</Set>
|
|
||||||
<Set name="extended">false</Set>
|
|
||||||
<Set name="logCookies">false</Set>
|
|
||||||
<Set name="LogTimeZone">UTC</Set>
|
|
||||||
</New>
|
|
||||||
</Set>
|
|
||||||
</New>
|
|
||||||
</Arg>
|
|
||||||
</Call>
|
|
||||||
</Ref>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- =========================================================== -->
|
|
||||||
<!-- extra options -->
|
|
||||||
<!-- =========================================================== -->
|
|
||||||
<Set name="stopAtShutdown">true</Set>
|
|
||||||
<Set name="sendServerVersion">false</Set>
|
|
||||||
<Set name="sendDateHeader">false</Set>
|
|
||||||
<Set name="gracefulShutdown">1000</Set>
|
|
||||||
<Set name="dumpAfterStart">false</Set>
|
|
||||||
<Set name="dumpBeforeStop">false</Set>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<Call name="addBean">
|
|
||||||
<Arg>
|
|
||||||
<New id="DeploymentManager" class="org.eclipse.jetty.deploy.DeploymentManager">
|
|
||||||
<Set name="contexts">
|
|
||||||
<Ref id="Contexts" />
|
|
||||||
</Set>
|
|
||||||
<Call name="setContextAttribute">
|
|
||||||
<Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
|
|
||||||
<Arg>.*/servlet-api-[^/]*\.jar$</Arg>
|
|
||||||
</Call>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Add a customize step to the deployment lifecycle -->
|
|
||||||
<!-- uncomment and replace DebugBinding with your extended AppLifeCycle.Binding class
|
|
||||||
<Call name="insertLifeCycleNode">
|
|
||||||
<Arg>deployed</Arg>
|
|
||||||
<Arg>starting</Arg>
|
|
||||||
<Arg>customise</Arg>
|
|
||||||
</Call>
|
|
||||||
<Call name="addLifeCycleBinding">
|
|
||||||
<Arg>
|
|
||||||
<New class="org.eclipse.jetty.deploy.bindings.DebugBinding">
|
|
||||||
<Arg>customise</Arg>
|
|
||||||
</New>
|
|
||||||
</Arg>
|
|
||||||
</Call>
|
|
||||||
-->
|
|
||||||
|
|
||||||
</New>
|
|
||||||
</Arg>
|
|
||||||
</Call>
|
|
||||||
|
|
||||||
<Ref id="DeploymentManager">
|
|
||||||
<Call name="addAppProvider">
|
|
||||||
<Arg>
|
|
||||||
<New class="org.eclipse.jetty.deploy.providers.ContextProvider">
|
|
||||||
<Set name="monitoredDirName"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
|
|
||||||
<Set name="scanInterval">0</Set>
|
|
||||||
</New>
|
|
||||||
</Arg>
|
|
||||||
</Call>
|
|
||||||
</Ref>
|
|
||||||
|
|
||||||
</Configure>
|
|
@ -1,527 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
||||||
|
|
||||||
<!-- ===================================================================== -->
|
|
||||||
<!-- This file contains the default descriptor for web applications. -->
|
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
||||||
<!-- The intent of this descriptor is to include jetty specific or common -->
|
|
||||||
<!-- configuration for all webapps. If a context has a webdefault.xml -->
|
|
||||||
<!-- descriptor, it is applied before the contexts own web.xml file -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- A context may be assigned a default descriptor by: -->
|
|
||||||
<!-- + Calling WebApplicationContext.setDefaultsDescriptor -->
|
|
||||||
<!-- + Passed an arg to addWebApplications -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- This file is used both as the resource within the jetty.jar (which is -->
|
|
||||||
<!-- used as the default if no explicit defaults descriptor is set) and it -->
|
|
||||||
<!-- is copied to the etc directory of the Jetty distro and explicitly -->
|
|
||||||
<!-- by the jetty.xml file. -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- ===================================================================== -->
|
|
||||||
<web-app
|
|
||||||
xmlns="http://java.sun.com/xml/ns/javaee"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
|
||||||
metadata-complete="true"
|
|
||||||
version="2.5"
|
|
||||||
>
|
|
||||||
|
|
||||||
<description>
|
|
||||||
Default web.xml file.
|
|
||||||
This file is applied to a Web application before it's own WEB_INF/web.xml file
|
|
||||||
</description>
|
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
|
||||||
<!-- Removes static references to beans from javax.el.BeanELResolver to -->
|
|
||||||
<!-- ensure webapp classloader can be released on undeploy -->
|
|
||||||
<!-- ==================================================================== -->
|
|
||||||
<listener>
|
|
||||||
<listener-class>org.eclipse.jetty.servlet.listener.ELContextCleaner</listener-class>
|
|
||||||
</listener>
|
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
|
||||||
<!-- Removes static cache of Methods from java.beans.Introspector to -->
|
|
||||||
<!-- ensure webapp classloader can be released on undeploy -->
|
|
||||||
<!-- ==================================================================== -->
|
|
||||||
<listener>
|
|
||||||
<listener-class>org.eclipse.jetty.servlet.listener.IntrospectorCleaner</listener-class>
|
|
||||||
</listener>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
|
||||||
<!-- Context params to control Session Cookies -->
|
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
||||||
<!--
|
|
||||||
UNCOMMENT TO ACTIVATE <context-param> <param-name>org.eclipse.jetty.servlet.SessionDomain</param-name> <param-value>127.0.0.1</param-value> </context-param> <context-param>
|
|
||||||
<param-name>org.eclipse.jetty.servlet.SessionPath</param-name> <param-value>/</param-value> </context-param> <context-param> <param-name>org.eclipse.jetty.servlet.MaxAge</param-name>
|
|
||||||
<param-value>-1</param-value> </context-param>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
|
||||||
<!-- The default servlet. -->
|
|
||||||
<!-- This servlet, normally mapped to /, provides the handling for static -->
|
|
||||||
<!-- content, OPTIONS and TRACE methods for the context. -->
|
|
||||||
<!-- The following initParameters are supported: -->
|
|
||||||
<!--
|
|
||||||
* acceptRanges If true, range requests and responses are
|
|
||||||
* supported
|
|
||||||
*
|
|
||||||
* dirAllowed If true, directory listings are returned if no
|
|
||||||
* welcome file is found. Else 403 Forbidden.
|
|
||||||
*
|
|
||||||
* welcomeServlets If true, attempt to dispatch to welcome files
|
|
||||||
* that are servlets, but only after no matching static
|
|
||||||
* resources could be found. If false, then a welcome
|
|
||||||
* file must exist on disk. If "exact", then exact
|
|
||||||
* servlet matches are supported without an existing file.
|
|
||||||
* Default is true.
|
|
||||||
*
|
|
||||||
* This must be false if you want directory listings,
|
|
||||||
* but have index.jsp in your welcome file list.
|
|
||||||
*
|
|
||||||
* redirectWelcome If true, welcome files are redirected rather than
|
|
||||||
* forwarded to.
|
|
||||||
*
|
|
||||||
* gzip If set to true, then static content will be served as
|
|
||||||
* gzip content encoded if a matching resource is
|
|
||||||
* found ending with ".gz"
|
|
||||||
*
|
|
||||||
* resourceBase Set to replace the context resource base
|
|
||||||
*
|
|
||||||
* resourceCache If set, this is a context attribute name, which the servlet
|
|
||||||
* will use to look for a shared ResourceCache instance.
|
|
||||||
*
|
|
||||||
* relativeResourceBase
|
|
||||||
* Set with a pathname relative to the base of the
|
|
||||||
* servlet context root. Useful for only serving static content out
|
|
||||||
* of only specific subdirectories.
|
|
||||||
*
|
|
||||||
* aliases If True, aliases of resources are allowed (eg. symbolic
|
|
||||||
* links and caps variations). May bypass security constraints.
|
|
||||||
*
|
|
||||||
* maxCacheSize The maximum total size of the cache or 0 for no cache.
|
|
||||||
* maxCachedFileSize The maximum size of a file to cache
|
|
||||||
* maxCachedFiles The maximum number of files to cache
|
|
||||||
*
|
|
||||||
* useFileMappedBuffer
|
|
||||||
* If set to true, it will use mapped file buffer to serve static content
|
|
||||||
* when using NIO connector. Setting this value to false means that
|
|
||||||
* a direct buffer will be used instead of a mapped file buffer.
|
|
||||||
* By default, this is set to true.
|
|
||||||
*
|
|
||||||
* cacheControl If set, all static content will have this value set as the cache-control
|
|
||||||
* header.
|
|
||||||
-->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
||||||
<servlet>
|
|
||||||
<servlet-name>default</servlet-name>
|
|
||||||
<servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
|
|
||||||
<init-param>
|
|
||||||
<param-name>aliases</param-name>
|
|
||||||
<param-value>false</param-value>
|
|
||||||
</init-param>
|
|
||||||
<init-param>
|
|
||||||
<param-name>acceptRanges</param-name>
|
|
||||||
<param-value>true</param-value>
|
|
||||||
</init-param>
|
|
||||||
<init-param>
|
|
||||||
<param-name>dirAllowed</param-name>
|
|
||||||
<param-value>true</param-value>
|
|
||||||
</init-param>
|
|
||||||
<init-param>
|
|
||||||
<param-name>welcomeServlets</param-name>
|
|
||||||
<param-value>false</param-value>
|
|
||||||
</init-param>
|
|
||||||
<init-param>
|
|
||||||
<param-name>redirectWelcome</param-name>
|
|
||||||
<param-value>false</param-value>
|
|
||||||
</init-param>
|
|
||||||
<init-param>
|
|
||||||
<param-name>maxCacheSize</param-name>
|
|
||||||
<param-value>256000000</param-value>
|
|
||||||
</init-param>
|
|
||||||
<init-param>
|
|
||||||
<param-name>maxCachedFileSize</param-name>
|
|
||||||
<param-value>200000000</param-value>
|
|
||||||
</init-param>
|
|
||||||
<init-param>
|
|
||||||
<param-name>maxCachedFiles</param-name>
|
|
||||||
<param-value>2048</param-value>
|
|
||||||
</init-param>
|
|
||||||
<init-param>
|
|
||||||
<param-name>gzip</param-name>
|
|
||||||
<param-value>true</param-value>
|
|
||||||
</init-param>
|
|
||||||
<init-param>
|
|
||||||
<param-name>useFileMappedBuffer</param-name>
|
|
||||||
<param-value>true</param-value>
|
|
||||||
</init-param>
|
|
||||||
<!--
|
|
||||||
<init-param>
|
|
||||||
<param-name>resourceCache</param-name>
|
|
||||||
<param-value>resourceCache</param-value>
|
|
||||||
</init-param>
|
|
||||||
-->
|
|
||||||
<!--
|
|
||||||
<init-param>
|
|
||||||
<param-name>cacheControl</param-name>
|
|
||||||
<param-value>max-age=3600,public</param-value>
|
|
||||||
</init-param>
|
|
||||||
-->
|
|
||||||
<load-on-startup>0</load-on-startup>
|
|
||||||
</servlet>
|
|
||||||
|
|
||||||
<servlet-mapping>
|
|
||||||
<servlet-name>default</servlet-name>
|
|
||||||
<url-pattern>/</url-pattern>
|
|
||||||
</servlet-mapping>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
|
||||||
<!-- JSP Servlet -->
|
|
||||||
<!-- This is the jasper JSP servlet from the jakarta project -->
|
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
||||||
<!-- The JSP page compiler and execution servlet, which is the mechanism -->
|
|
||||||
<!-- used by Glassfish to support JSP pages. Traditionally, this servlet -->
|
|
||||||
<!-- is mapped to URL patterh "*.jsp". This servlet supports the -->
|
|
||||||
<!-- following initialization parameters (default values are in square -->
|
|
||||||
<!-- brackets): -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- checkInterval If development is false and reloading is true, -->
|
|
||||||
<!-- background compiles are enabled. checkInterval -->
|
|
||||||
<!-- is the time in seconds between checks to see -->
|
|
||||||
<!-- if a JSP page needs to be recompiled. [300] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- compiler Which compiler Ant should use to compile JSP -->
|
|
||||||
<!-- pages. See the Ant documenation for more -->
|
|
||||||
<!-- information. [javac] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- classdebuginfo Should the class file be compiled with -->
|
|
||||||
<!-- debugging information? [true] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- classpath What class path should I use while compiling -->
|
|
||||||
<!-- generated servlets? [Created dynamically -->
|
|
||||||
<!-- based on the current web application] -->
|
|
||||||
<!-- Set to ? to make the container explicitly set -->
|
|
||||||
<!-- this parameter. -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- development Is Jasper used in development mode (will check -->
|
|
||||||
<!-- for JSP modification on every access)? [true] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- enablePooling Determines whether tag handler pooling is -->
|
|
||||||
<!-- enabled [true] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- fork Tell Ant to fork compiles of JSP pages so that -->
|
|
||||||
<!-- a separate JVM is used for JSP page compiles -->
|
|
||||||
<!-- from the one Tomcat is running in. [true] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- ieClassId The class-id value to be sent to Internet -->
|
|
||||||
<!-- Explorer when using <jsp:plugin> tags. -->
|
|
||||||
<!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- javaEncoding Java file encoding to use for generating java -->
|
|
||||||
<!-- source files. [UTF-8] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- keepgenerated Should we keep the generated Java source code -->
|
|
||||||
<!-- for each page instead of deleting it? [true] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- logVerbosityLevel The level of detailed messages to be produced -->
|
|
||||||
<!-- by this servlet. Increasing levels cause the -->
|
|
||||||
<!-- generation of more messages. Valid values are -->
|
|
||||||
<!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
|
|
||||||
<!-- [WARNING] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- mappedfile Should we generate static content with one -->
|
|
||||||
<!-- print statement per input line, to ease -->
|
|
||||||
<!-- debugging? [false] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- reloading Should Jasper check for modified JSPs? [true] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- suppressSmap Should the generation of SMAP info for JSR45 -->
|
|
||||||
<!-- debugging be suppressed? [false] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- dumpSmap Should the SMAP info for JSR45 debugging be -->
|
|
||||||
<!-- dumped to a file? [false] -->
|
|
||||||
<!-- False if suppressSmap is true -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- scratchdir What scratch directory should we use when -->
|
|
||||||
<!-- compiling JSP pages? [default work directory -->
|
|
||||||
<!-- for the current web application] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- tagpoolMaxSize The maximum tag handler pool size [5] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- xpoweredBy Determines whether X-Powered-By response -->
|
|
||||||
<!-- header is added by generated servlet [false] -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- If you wish to use Jikes to compile JSP pages: -->
|
|
||||||
<!-- Set the init parameter "compiler" to "jikes". Define -->
|
|
||||||
<!-- the property "-Dbuild.compiler.emacs=true" when starting Jetty -->
|
|
||||||
<!-- to cause Jikes to emit error messages in a format compatible with -->
|
|
||||||
<!-- Jasper. -->
|
|
||||||
<!-- If you get an error reporting that jikes can't use UTF-8 encoding, -->
|
|
||||||
<!-- try setting the init parameter "javaEncoding" to "ISO-8859-1". -->
|
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
||||||
<servlet
|
|
||||||
id="jsp"
|
|
||||||
>
|
|
||||||
<servlet-name>jsp</servlet-name>
|
|
||||||
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
|
|
||||||
<init-param>
|
|
||||||
<param-name>logVerbosityLevel</param-name>
|
|
||||||
<param-value>DEBUG</param-value>
|
|
||||||
</init-param>
|
|
||||||
<init-param>
|
|
||||||
<param-name>fork</param-name>
|
|
||||||
<param-value>false</param-value>
|
|
||||||
</init-param>
|
|
||||||
<init-param>
|
|
||||||
<param-name>xpoweredBy</param-name>
|
|
||||||
<param-value>false</param-value>
|
|
||||||
</init-param>
|
|
||||||
<!--
|
|
||||||
<init-param>
|
|
||||||
<param-name>classpath</param-name>
|
|
||||||
<param-value>?</param-value>
|
|
||||||
</init-param>
|
|
||||||
-->
|
|
||||||
<load-on-startup>0</load-on-startup>
|
|
||||||
</servlet>
|
|
||||||
|
|
||||||
<servlet-mapping>
|
|
||||||
<servlet-name>jsp</servlet-name>
|
|
||||||
<url-pattern>*.jsp</url-pattern>
|
|
||||||
<url-pattern>*.jspf</url-pattern>
|
|
||||||
<url-pattern>*.jspx</url-pattern>
|
|
||||||
<url-pattern>*.xsp</url-pattern>
|
|
||||||
<url-pattern>*.JSP</url-pattern>
|
|
||||||
<url-pattern>*.JSPF</url-pattern>
|
|
||||||
<url-pattern>*.JSPX</url-pattern>
|
|
||||||
<url-pattern>*.XSP</url-pattern>
|
|
||||||
</servlet-mapping>
|
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
|
||||||
<!-- Dynamic Servlet Invoker. -->
|
|
||||||
<!-- This servlet invokes anonymous servlets that have not been defined -->
|
|
||||||
<!-- in the web.xml or by other means. The first element of the pathInfo -->
|
|
||||||
<!-- of a request passed to the envoker is treated as a servlet name for -->
|
|
||||||
<!-- an existing servlet, or as a class name of a new servlet. -->
|
|
||||||
<!-- This servlet is normally mapped to /servlet/* -->
|
|
||||||
<!-- This servlet support the following initParams: -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- nonContextServlets If false, the invoker can only load -->
|
|
||||||
<!-- servlets from the contexts classloader. -->
|
|
||||||
<!-- This is false by default and setting this -->
|
|
||||||
<!-- to true may have security implications. -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- verbose If true, log dynamic loads -->
|
|
||||||
<!-- -->
|
|
||||||
<!-- * All other parameters are copied to the -->
|
|
||||||
<!-- each dynamic servlet as init parameters -->
|
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
||||||
<!--
|
|
||||||
Uncomment for dynamic invocation <servlet> <servlet-name>invoker</servlet-name> <servlet-class>org.eclipse.jetty.servlet.Invoker</servlet-class> <init-param> <param-name>verbose</param-name>
|
|
||||||
<param-value>false</param-value> </init-param> <init-param> <param-name>nonContextServlets</param-name> <param-value>false</param-value> </init-param> <init-param>
|
|
||||||
<param-name>dynamicParam</param-name> <param-value>anyValue</param-value> </init-param> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>invoker</servlet-name>
|
|
||||||
<url-pattern>/servlet/*</url-pattern> </servlet-mapping>
|
|
||||||
-->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
|
||||||
<session-config>
|
|
||||||
<session-timeout>30</session-timeout>
|
|
||||||
</session-config>
|
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
|
||||||
<!-- Default MIME mappings -->
|
|
||||||
<!-- The default MIME mappings are provided by the mime.properties -->
|
|
||||||
<!-- resource in the org.eclipse.jetty.server.jar file. Additional or modified -->
|
|
||||||
<!-- mappings may be specified here -->
|
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
||||||
<!-- UNCOMMENT TO ACTIVATE
|
|
||||||
<mime-mapping>
|
|
||||||
<extension>mysuffix</extension>
|
|
||||||
<mime-type>mymime/type</mime-type>
|
|
||||||
</mime-mapping>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
|
||||||
<welcome-file-list>
|
|
||||||
<welcome-file>index.html</welcome-file>
|
|
||||||
<welcome-file>index.htm</welcome-file>
|
|
||||||
<welcome-file>index.jsp</welcome-file>
|
|
||||||
</welcome-file-list>
|
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
|
||||||
<locale-encoding-mapping-list>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>ar</locale>
|
|
||||||
<encoding>ISO-8859-6</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>be</locale>
|
|
||||||
<encoding>ISO-8859-5</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>bg</locale>
|
|
||||||
<encoding>ISO-8859-5</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>ca</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>cs</locale>
|
|
||||||
<encoding>ISO-8859-2</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>da</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>de</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>el</locale>
|
|
||||||
<encoding>ISO-8859-7</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>en</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>es</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>et</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>fi</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>fr</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>hr</locale>
|
|
||||||
<encoding>ISO-8859-2</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>hu</locale>
|
|
||||||
<encoding>ISO-8859-2</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>is</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>it</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>iw</locale>
|
|
||||||
<encoding>ISO-8859-8</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>ja</locale>
|
|
||||||
<encoding>Shift_JIS</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>ko</locale>
|
|
||||||
<encoding>EUC-KR</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>lt</locale>
|
|
||||||
<encoding>ISO-8859-2</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>lv</locale>
|
|
||||||
<encoding>ISO-8859-2</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>mk</locale>
|
|
||||||
<encoding>ISO-8859-5</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>nl</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>no</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>pl</locale>
|
|
||||||
<encoding>ISO-8859-2</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>pt</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>ro</locale>
|
|
||||||
<encoding>ISO-8859-2</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>ru</locale>
|
|
||||||
<encoding>ISO-8859-5</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>sh</locale>
|
|
||||||
<encoding>ISO-8859-5</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>sk</locale>
|
|
||||||
<encoding>ISO-8859-2</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>sl</locale>
|
|
||||||
<encoding>ISO-8859-2</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>sq</locale>
|
|
||||||
<encoding>ISO-8859-2</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>sr</locale>
|
|
||||||
<encoding>ISO-8859-5</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>sv</locale>
|
|
||||||
<encoding>ISO-8859-1</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>tr</locale>
|
|
||||||
<encoding>ISO-8859-9</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>uk</locale>
|
|
||||||
<encoding>ISO-8859-5</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>zh</locale>
|
|
||||||
<encoding>GB2312</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
<locale-encoding-mapping>
|
|
||||||
<locale>zh_TW</locale>
|
|
||||||
<encoding>Big5</encoding>
|
|
||||||
</locale-encoding-mapping>
|
|
||||||
</locale-encoding-mapping-list>
|
|
||||||
|
|
||||||
<security-constraint>
|
|
||||||
<web-resource-collection>
|
|
||||||
<web-resource-name>Disable TRACE</web-resource-name>
|
|
||||||
<url-pattern>/</url-pattern>
|
|
||||||
<http-method>TRACE</http-method>
|
|
||||||
</web-resource-collection>
|
|
||||||
<auth-constraint/>
|
|
||||||
</security-constraint>
|
|
||||||
|
|
||||||
</web-app>
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
# Logging level
|
|
||||||
solr.log=logs/
|
|
||||||
log4j.rootLogger=WARN, CONSOLE
|
|
||||||
|
|
||||||
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
|
|
||||||
|
|
||||||
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
|
|
||||||
log4j.appender.CONSOLE.layout.ConversionPattern=%-4r [%t] %-5p %c %x \u2013 %m%n
|
|
||||||
|
|
||||||
# set to INFO to enable infostream log messages
|
|
||||||
log4j.logger.org.apache.solr.update.LoggingInfoStream=OFF
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,77 +0,0 @@
|
|||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
|
|
||||||
Default Solr Home Directory
|
|
||||||
=============================
|
|
||||||
|
|
||||||
This directory is the default Solr home directory which holds
|
|
||||||
configuration files and Solr indexes (called cores).
|
|
||||||
|
|
||||||
|
|
||||||
Basic Directory Structure
|
|
||||||
-------------------------
|
|
||||||
|
|
||||||
The Solr Home directory typically contains the following...
|
|
||||||
|
|
||||||
* solr.xml *
|
|
||||||
|
|
||||||
This is the primary configuration file Solr looks for when starting;
|
|
||||||
it specifies high-level configuration options that apply to all
|
|
||||||
of your Solr cores, such as cluster-wide SolrCloud settings like
|
|
||||||
the ZooKeeper client timeout.
|
|
||||||
|
|
||||||
In addition, you can also declare Solr cores in this file, however
|
|
||||||
it is recommended to just use automatic core discovery instead of
|
|
||||||
listing cores in solr.xml.
|
|
||||||
|
|
||||||
If no solr.xml file is found, then Solr assumes that there should be
|
|
||||||
a single SolrCore named "collection1" and that the "Instance Directory"
|
|
||||||
for collection1 should be the same as the Solr Home Directory.
|
|
||||||
|
|
||||||
For more information about solr.xml, please see:
|
|
||||||
https://lucene.apache.org/solr/guide/solr-cores-and-solr-xml.html
|
|
||||||
|
|
||||||
* Individual SolrCore Instance Directories *
|
|
||||||
|
|
||||||
Although solr.xml can be configured to look for SolrCore Instance Directories
|
|
||||||
in any path, simple sub-directories of the Solr Home Dir using relative paths
|
|
||||||
are common for many installations.
|
|
||||||
|
|
||||||
* Core Discovery *
|
|
||||||
|
|
||||||
During startup, Solr will scan sub-directories of Solr home looking for
|
|
||||||
a specific file named core.properties. If core.properties is found in a
|
|
||||||
sub-directory (at any depth), Solr will initialize a core using the properties
|
|
||||||
defined in core.properties. For an example of core.properties, please see:
|
|
||||||
|
|
||||||
example/solr/collection1/core.properties
|
|
||||||
|
|
||||||
For more information about core discovery, please see:
|
|
||||||
https://lucene.apache.org/solr/guide/defining-core-properties.html
|
|
||||||
|
|
||||||
* A Shared 'lib' Directory *
|
|
||||||
|
|
||||||
Although solr.xml can be configured with an optional "sharedLib" attribute
|
|
||||||
that can point to any path, it is common to use a "./lib" sub-directory of the
|
|
||||||
Solr Home Directory.
|
|
||||||
|
|
||||||
* ZooKeeper Files *
|
|
||||||
|
|
||||||
When using SolrCloud using the embedded ZooKeeper option for Solr, it is
|
|
||||||
common to have a "zoo.cfg" file and "zoo_data" directories in the Solr Home
|
|
||||||
Directory. Please see the SolrCloud documentation for more details.
|
|
||||||
|
|
||||||
https://lucene.apache.org/solr/guide/solrcloud.html
|
|
@ -35,7 +35,7 @@
|
|||||||
that you fully re-index after changing this setting as it can
|
that you fully re-index after changing this setting as it can
|
||||||
affect both how text is indexed and queried.
|
affect both how text is indexed and queried.
|
||||||
-->
|
-->
|
||||||
<luceneMatchVersion>8.6.2</luceneMatchVersion>
|
<luceneMatchVersion>8.6.3</luceneMatchVersion>
|
||||||
|
|
||||||
<!-- <lib/> directives can be used to instruct Solr to load an Jars
|
<!-- <lib/> directives can be used to instruct Solr to load an Jars
|
||||||
identified and use them to resolve any "plugins" specified in
|
identified and use them to resolve any "plugins" specified in
|
||||||
|
@ -40,9 +40,9 @@
|
|||||||
|
|
||||||
<bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
|
<bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>
|
||||||
|
|
||||||
<int name="zkClientTimeout">${zkClientTimeout:30000}</int>
|
<int name="zkClientTimeout">${zkClientTimeout:60000}</int>
|
||||||
<int name="distribUpdateSoTimeout">${distribUpdateSoTimeout:600000}</int>
|
<int name="distribUpdateSoTimeout">${distribUpdateSoTimeout:600000}</int>
|
||||||
<int name="distribUpdateConnTimeout">${distribUpdateConnTimeout:60000}</int>
|
<int name="distribUpdateConnTimeout">${distribUpdateConnTimeout:600000}</int>
|
||||||
<str name="zkCredentialsProvider">${zkCredentialsProvider:org.apache.solr.common.cloud.DefaultZkCredentialsProvider}</str>
|
<str name="zkCredentialsProvider">${zkCredentialsProvider:org.apache.solr.common.cloud.DefaultZkCredentialsProvider}</str>
|
||||||
<str name="zkACLProvider">${zkACLProvider:org.apache.solr.common.cloud.DefaultZkACLProvider}</str>
|
<str name="zkACLProvider">${zkACLProvider:org.apache.solr.common.cloud.DefaultZkACLProvider}</str>
|
||||||
|
|
||||||
@ -51,7 +51,7 @@
|
|||||||
<shardHandlerFactory name="shardHandlerFactory"
|
<shardHandlerFactory name="shardHandlerFactory"
|
||||||
class="HttpShardHandlerFactory">
|
class="HttpShardHandlerFactory">
|
||||||
<int name="socketTimeout">${socketTimeout:600000}</int>
|
<int name="socketTimeout">${socketTimeout:600000}</int>
|
||||||
<int name="connTimeout">${connTimeout:60000}</int>
|
<int name="connTimeout">${connTimeout:600000}</int>
|
||||||
<str name="shardsWhitelist">${solr.shardsWhitelist:}</str>
|
<str name="shardsWhitelist">${solr.shardsWhitelist:}</str>
|
||||||
</shardHandlerFactory>
|
</shardHandlerFactory>
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ KeywordSearchResultFactory.createNodeForKey.noResultsFound.text=No results found
|
|||||||
KeywordSearchResultFactory.query.exception.msg=Could not perform the query
|
KeywordSearchResultFactory.query.exception.msg=Could not perform the query
|
||||||
OpenIDE-Module-Display-Category=Ingest Module
|
OpenIDE-Module-Display-Category=Ingest Module
|
||||||
|
|
||||||
OpenIDE-Module-Long-Description=Keyword Search ingest module.\n\nThe module indexes files found in the disk image at ingest time.\nIt then periodically runs the search on the indexed files using one or more keyword lists (containing pure words and/or regular expressions) and posts results.\n\nThe module also contains additional tools integrated in the main GUI, such as keyword list configuration, keyword search bar in the top-right corner, extracted text viewer and search results viewer showing highlighted keywords found.
|
OpenIDE-Module-Long-Description=Keyword Search ingest module.\n\nThe module indexes files found in the disk image at ingest time.\nIt then periodically runs the search on the indexed files using one or more keyword lists (containing pure words and/or regular expressions) and posts results.\n\n\The module also contains additional tools integrated in the main GUI, such as keyword list configuration, keyword search bar in the top-right corner, extracted text viewer and search results viewer showing highlighted keywords found.
|
||||||
OpenIDE-Module-Name=KeywordSearch
|
OpenIDE-Module-Name=KeywordSearch
|
||||||
OptionsCategory_Name_KeywordSearchOptions=Keyword Search
|
OptionsCategory_Name_KeywordSearchOptions=Keyword Search
|
||||||
OptionsCategory_Keywords_KeywordSearchOptions=Keyword Search
|
OptionsCategory_Keywords_KeywordSearchOptions=Keyword Search
|
||||||
@ -350,7 +350,7 @@ SolrSearchService.exceptionMessage.noCurrentSolrCore=IndexMetadata did not conta
|
|||||||
# {0} - case directory
|
# {0} - case directory
|
||||||
SolrSearchService.exceptionMessage.noIndexMetadata=Unable to create IndexMetaData from case directory: {0}
|
SolrSearchService.exceptionMessage.noIndexMetadata=Unable to create IndexMetaData from case directory: {0}
|
||||||
# {0} - collection name
|
# {0} - collection name
|
||||||
SolrSearchService.exceptionMessage.unableToDeleteCollection=Unable to delete collection {0}
|
SolrSearchService.exceptionMessage.unableToDeleteCollection=Unable to delete colletion {0}
|
||||||
SolrSearchService.indexingError=Unable to index blackboard artifact.
|
SolrSearchService.indexingError=Unable to index blackboard artifact.
|
||||||
SolrSearchService.ServiceName=Solr Keyword Search Service
|
SolrSearchService.ServiceName=Solr Keyword Search Service
|
||||||
SolrSearchService.DeleteDataSource.msg=Error Deleting Solr data for data source id {0}
|
SolrSearchService.DeleteDataSource.msg=Error Deleting Solr data for data source id {0}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user