|
9 yıl önce | |
---|---|---|
.. | ||
production | 9 yıl önce | |
src | 9 yıl önce | |
.gitignore | 9 yıl önce | |
LICENSE.txt | 9 yıl önce | |
README.md | 9 yıl önce | |
build.properties | 9 yıl önce | |
build.xml | 9 yıl önce | |
gulpfile.js | 9 yıl önce | |
package.json | 9 yıl önce | |
pom.xml | 9 yıl önce | |
run.sh | 9 yıl önce |
#Compilation mvn clean compile package
#Deploy ##Copy to remote copy target/logsearch-portal.tar.gz to host machine ##Setup environment
mkdir /opt/logsearch
cd /opt/logsearch
tar xfz ~/logsearch-portal.tar.gz
#Create Solr Collection Edit for log retention days (default is 7 days)
vi solr_configsets/hadoop_logs/conf/solrconfig.xml
<processor class="solr.DefaultValueUpdateProcessorFactory">
<str name="fieldName">_ttl_</str>
<str name="value">+7DAYS</str>
</processor>
./create_collections.sh $SOLR_HOME $NUM_SHARDS $NUM_OF_REPLICATIONS `pwd`/solr_configsets
vi classes/logsearch.properties
solr.zkhosts=$ZK1:2181,$ZK2:2181,$ZK3:2181/solr
This script will stop logsearch if it is running and restart it
./run.sh