shell脚本一键安装solr4.10.0

上篇博客中,散仙写了关于在shell中,如何一键安装ant和maven,本篇博客我们来看下如何使用shell脚本一键安装solr,并启动!


solr最新的压缩包:
solr-4.10.0.tgz


要求如下:

1,在/root根目录下下载有solr的压缩包,散仙本次的例子是是solr最新的版本
2,在shell脚本里面需要提前配置压缩包的安装路径,和解压缩后的文件名
3,使用默认的jetty作为服务器启动的solr
4,安装完毕后会直接启动solr,我们可以去web页面查看是否安装成功



安装的脚本如下:
#解压路径
path="/root/search/"

#压缩包名字
name="solr-4.10.0.tgz"

#从压缩里解压后的名字
aname="solr-4.10.0"


if [ ! -e $path  ] ; then
echo "不存在$path^L路径,自动创建"
mkdir $path

sleep 1
fi


#解压solr压缩包到指定路径下
tar -zxvf $name -C $path

echo "解压完毕"
sleep 2


#安装路径
apath=$path"solr"

if [ -e $apath  ] ; then
echo "存在$apath路径,准备移除"
rm -rf $apath
sleep 2

echo "移除完毕!"

fi

mkdir $apath

echo "拷贝文件到新的安装路径$apath"

#拷贝exmpale下的所有文件到安装路径下
cp -a $path$aname'/example/'*  $apath

echo "拷贝contrib文件$path"
cp -a $path$aname"/contrib"    $path
sleep 2
echo "拷贝dist文件到$path下"
sleep 2
cp -a $path$aname"/dist"    $path


echo "拷贝完毕,开启启动solr服务"

cd $apath

java -jar start.jar


启动后如下:
 framework/org/apache/solr/SolrTestCaseJ4.IValsPercent.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/SolrTestCaseJ4.SVal.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/SolrTestCaseJ4.SuppressSSL.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/SolrTestCaseJ4.Vals.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/SolrTestCaseJ4.XmlDoc.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/SolrTestCaseJ4.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/analysis/MockCharFilterFactory.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/analysis/MockTokenFilterFactory.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/analysis/MockTokenizerFactory.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/analysis/class-use/MockCharFilterFactory.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/analysis/class-use/MockTokenFilterFactory.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/analysis/class-use/MockTokenizerFactory.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/analysis/package-frame.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/analysis/package-summary.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/analysis/package-tree.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/analysis/package-use.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/BaseDistributedSearchTestCase.RandDate.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/BaseDistributedSearchTestCase.RandVal.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/BaseDistributedSearchTestCase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/JSONTestUtil.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrIgnoredThreadsFilter.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrJettyTestBase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrTestCaseJ4.CoreDescriptorBuilder.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrTestCaseJ4.Doc.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrTestCaseJ4.FVal.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrTestCaseJ4.Fld.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrTestCaseJ4.FldType.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrTestCaseJ4.IRange.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrTestCaseJ4.IVals.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrTestCaseJ4.IValsPercent.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrTestCaseJ4.SVal.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrTestCaseJ4.SuppressSSL.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrTestCaseJ4.Vals.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrTestCaseJ4.XmlDoc.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/class-use/SolrTestCaseJ4.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/AbstractDistribZkTestBase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/AbstractFullDistribZkTestBase.CloudJettyRunner.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/AbstractFullDistribZkTestBase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/AbstractZkTestCase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/ChaosMonkey.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/CloudInspectUtil.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/IpTables.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/MiniSolrCloudCluster.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/MockSolrZkClient.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/MockZkStateReader.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/StopableIndexingThread.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/ZkTestServer.HostPort.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/ZkTestServer.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/class-use/AbstractDistribZkTestBase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/class-use/AbstractFullDistribZkTestBase.CloudJettyRunner.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/class-use/AbstractFullDistribZkTestBase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/class-use/AbstractZkTestCase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/class-use/ChaosMonkey.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/class-use/CloudInspectUtil.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/class-use/IpTables.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/class-use/MiniSolrCloudCluster.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/class-use/MockSolrZkClient.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/class-use/MockZkStateReader.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/class-use/StopableIndexingThread.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/class-use/ZkTestServer.HostPort.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/class-use/ZkTestServer.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/package-frame.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/package-summary.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/package-tree.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/cloud/package-use.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/core/AbstractBadConfigTestBase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/core/MockDirectoryFactory.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/core/MockFSDirectoryFactory.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/core/class-use/AbstractBadConfigTestBase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/core/class-use/MockDirectoryFactory.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/core/class-use/MockFSDirectoryFactory.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/core/package-frame.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/core/package-summary.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/core/package-tree.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/core/package-use.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/package-frame.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/package-summary.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/package-tree.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/package-use.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/update/processor/BufferingRequestProcessor.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/update/processor/class-use/BufferingRequestProcessor.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/update/processor/package-frame.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/update/processor/package-summary.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/update/processor/package-tree.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/update/processor/package-use.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/AbstractSolrTestCase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/BaseTestHarness.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/DOMUtilTestBase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/ExternalPaths.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/RESTfulServerProvider.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/RandomMergePolicy.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/RestTestBase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/RestTestHarness.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/RevertDefaultThreadHandlerRule.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/SSLTestConfig.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/TestHarness.LocalRequestFactory.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/TestHarness.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/class-use/AbstractSolrTestCase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/class-use/BaseTestHarness.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/class-use/DOMUtilTestBase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/class-use/ExternalPaths.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/class-use/RESTfulServerProvider.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/class-use/RandomMergePolicy.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/class-use/RestTestBase.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/class-use/RestTestHarness.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/class-use/RevertDefaultThreadHandlerRule.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/class-use/SSLTestConfig.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/class-use/TestHarness.LocalRequestFactory.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/class-use/TestHarness.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/package-frame.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/package-summary.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/package-tree.html
solr-4.10.0/docs/solr-test-framework/org/apache/solr/util/package-use.html
solr-4.10.0/docs/solr-test-framework/overview-frame.html
solr-4.10.0/docs/solr-test-framework/overview-summary.html
solr-4.10.0/docs/solr-test-framework/overview-tree.html
solr-4.10.0/docs/solr-test-framework/package-list
solr-4.10.0/docs/solr-test-framework/prettify.js
solr-4.10.0/docs/solr-test-framework/resources/background.gif
solr-4.10.0/docs/solr-test-framework/resources/tab.gif
solr-4.10.0/docs/solr-test-framework/resources/titlebar.gif
solr-4.10.0/docs/solr-test-framework/resources/titlebar_end.gif
solr-4.10.0/docs/solr-test-framework/stylesheet.css
solr-4.10.0/docs/solr-uima/allclasses-frame.html
solr-4.10.0/docs/solr-uima/allclasses-noframe.html
solr-4.10.0/docs/solr-uima/constant-values.html
solr-4.10.0/docs/solr-uima/deprecated-list.html
solr-4.10.0/docs/solr-uima/help-doc.html
solr-4.10.0/docs/solr-uima/index.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/FieldMappingException.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/SolrUIMAConfiguration.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/SolrUIMAConfigurationReader.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/UIMAToSolrMapper.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/UIMAUpdateRequestProcessor.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/UIMAUpdateRequestProcessorFactory.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/class-use/FieldMappingException.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/class-use/SolrUIMAConfiguration.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/class-use/SolrUIMAConfigurationReader.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/class-use/UIMAToSolrMapper.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/class-use/UIMAUpdateRequestProcessor.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/class-use/UIMAUpdateRequestProcessorFactory.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/package-frame.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/package-summary.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/package-tree.html
solr-4.10.0/docs/solr-uima/org/apache/solr/uima/processor/package-use.html
solr-4.10.0/docs/solr-uima/overview-summary.html
solr-4.10.0/docs/solr-uima/overview-tree.html
solr-4.10.0/docs/solr-uima/package-list
solr-4.10.0/docs/solr-uima/prettify.js
solr-4.10.0/docs/solr-uima/resources/background.gif
solr-4.10.0/docs/solr-uima/resources/tab.gif
solr-4.10.0/docs/solr-uima/resources/titlebar.gif
solr-4.10.0/docs/solr-uima/resources/titlebar_end.gif
solr-4.10.0/docs/solr-uima/serialized-form.html
solr-4.10.0/docs/solr-uima/stylesheet.css
solr-4.10.0/docs/solr-velocity/allclasses-frame.html
solr-4.10.0/docs/solr-velocity/allclasses-noframe.html
solr-4.10.0/docs/solr-velocity/constant-values.html
solr-4.10.0/docs/solr-velocity/deprecated-list.html
solr-4.10.0/docs/solr-velocity/help-doc.html
solr-4.10.0/docs/solr-velocity/index.html
solr-4.10.0/docs/solr-velocity/org/apache/solr/response/PageTool.html
solr-4.10.0/docs/solr-velocity/org/apache/solr/response/SolrParamResourceLoader.html
solr-4.10.0/docs/solr-velocity/org/apache/solr/response/SolrVelocityResourceLoader.html
solr-4.10.0/docs/solr-velocity/org/apache/solr/response/VelocityResponseWriter.html
solr-4.10.0/docs/solr-velocity/org/apache/solr/response/class-use/PageTool.html
solr-4.10.0/docs/solr-velocity/org/apache/solr/response/class-use/SolrParamResourceLoader.html
solr-4.10.0/docs/solr-velocity/org/apache/solr/response/class-use/SolrVelocityResourceLoader.html
solr-4.10.0/docs/solr-velocity/org/apache/solr/response/class-use/VelocityResponseWriter.html
solr-4.10.0/docs/solr-velocity/org/apache/solr/response/package-frame.html
solr-4.10.0/docs/solr-velocity/org/apache/solr/response/package-summary.html
solr-4.10.0/docs/solr-velocity/org/apache/solr/response/package-tree.html
solr-4.10.0/docs/solr-velocity/org/apache/solr/response/package-use.html
solr-4.10.0/docs/solr-velocity/overview-summary.html
solr-4.10.0/docs/solr-velocity/overview-tree.html
solr-4.10.0/docs/solr-velocity/package-list
solr-4.10.0/docs/solr-velocity/prettify.js
solr-4.10.0/docs/solr-velocity/resources/background.gif
solr-4.10.0/docs/solr-velocity/resources/tab.gif
solr-4.10.0/docs/solr-velocity/resources/titlebar.gif
solr-4.10.0/docs/solr-velocity/resources/titlebar_end.gif
solr-4.10.0/docs/solr-velocity/stylesheet.css
solr-4.10.0/docs/solr.png
solr-4.10.0/docs/tutorial.html
解压完毕
存在/root/search/solr路径,准备移除
移除完毕!
拷贝文件到新的安装路径/root/search/solr
拷贝contrib文件/root/search/
拷贝dist文件到/root/search/下
拷贝完毕,开启启动solr服务
0    [main] INFO  org.eclipse.jetty.server.Server  – jetty-8.1.10.v20130312
28   [main] INFO  org.eclipse.jetty.deploy.providers.ScanningAppProvider  – Deployment monitor /root/search/solr/contexts at interval 0
36   [main] INFO  org.eclipse.jetty.deploy.DeploymentManager  – Deployable added: /root/search/solr/contexts/solr-jetty-context.xml
96   [main] INFO  org.eclipse.jetty.webapp.WebInfConfiguration  – Extract jar:file:/root/search/solr/webapps/solr.war!/ to /root/search/solr/solr-webapp/webapp
1923 [main] INFO  org.eclipse.jetty.webapp.StandardDescriptorProcessor  – NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet
2001 [main] INFO  org.apache.solr.servlet.SolrDispatchFilter  – SolrDispatchFilter.init()
2036 [main] INFO  org.apache.solr.core.SolrResourceLoader  – JNDI not configured for solr (NoInitialContextEx)
2036 [main] INFO  org.apache.solr.core.SolrResourceLoader  – solr home defaulted to 'solr/' (could not find system property or JNDI)
2040 [main] INFO  org.apache.solr.core.SolrResourceLoader  – new SolrResourceLoader for directory: 'solr/'
2248 [main] INFO  org.apache.solr.core.ConfigSolr  – Loading container configuration from /root/search/solr/solr/solr.xml
2405 [main] INFO  org.apache.solr.core.CoresLocator  – Config-defined core root directory: /root/search/solr/solr
2413 [main] INFO  org.apache.solr.core.CoreContainer  – New CoreContainer 2033211346
2414 [main] INFO  org.apache.solr.core.CoreContainer  – Loading cores into CoreContainer [instanceDir=solr/]
2426 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  – Setting socketTimeout to: 0
2426 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  – Setting urlScheme to: null
2431 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  – Setting connTimeout to: 0
2433 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  – Setting maxConnectionsPerHost to: 20
2433 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  – Setting corePoolSize to: 0
2433 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  – Setting maximumPoolSize to: 2147483647
2434 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  – Setting maxThreadIdleTime to: 5
2434 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  – Setting sizeOfQueue to: -1
2434 [main] INFO  org.apache.solr.handler.component.HttpShardHandlerFactory  – Setting fairnessPolicy to: false
2572 [main] INFO  org.apache.solr.update.UpdateShardHandler  – Creating UpdateShardHandler HTTP client with params: socketTimeout=0&connTimeout=0&retry=false
2574 [main] INFO  org.apache.solr.logging.LogWatcher  – SLF4J impl is org.slf4j.impl.Log4jLoggerFactory
2575 [main] INFO  org.apache.solr.logging.LogWatcher  – Registering Log Listener [Log4j (org.slf4j.impl.Log4jLoggerFactory)]
2577 [main] INFO  org.apache.solr.core.CoreContainer  – Host Name: 
2612 [main] INFO  org.apache.solr.core.CoresLocator  – Looking for core definitions underneath /root/search/solr/solr
2619 [main] INFO  org.apache.solr.core.CoresLocator  – Found core collection1 in /root/search/solr/solr/collection1/
2620 [main] INFO  org.apache.solr.core.CoresLocator  – Found 1 core definitions
2622 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – new SolrResourceLoader for directory: '/root/search/solr/solr/collection1/'
2734 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrConfig  – Adding specified lib dirs to ClassLoader
2736 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/commons-compress-1.7.jar' to classloader
2737 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/pdfbox-1.8.4.jar' to classloader
2737 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/xz-1.4.jar' to classloader
2737 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/tika-parsers-1.5.jar' to classloader
2737 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/isoparser-1.0-RC-1.jar' to classloader
2737 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/jdom-1.0.jar' to classloader
2738 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/poi-3.10.1.jar' to classloader
2738 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/vorbis-java-tika-0.1.jar' to classloader
2743 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/icu4j-53.1.jar' to classloader
2743 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/boilerpipe-1.1.0.jar' to classloader
2743 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/jempbox-1.8.4.jar' to classloader
2743 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/apache-mime4j-dom-0.7.2.jar' to classloader
2743 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/dom4j-1.6.1.jar' to classloader
2744 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/poi-scratchpad-3.10.1.jar' to classloader
2744 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/metadata-extractor-2.6.2.jar' to classloader
2744 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/aspectjrt-1.6.11.jar' to classloader
2748 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/netcdf-4.2-min.jar' to classloader
2748 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/tika-core-1.5.jar' to classloader
2748 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/xmlbeans-2.6.0.jar' to classloader
2748 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/rome-0.9.jar' to classloader
2749 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/poi-ooxml-schemas-3.10.1.jar' to classloader
2749 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/apache-mime4j-core-0.7.2.jar' to classloader
2749 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/juniversalchardet-1.0.3.jar' to classloader
2749 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/xmpcore-5.1.2.jar' to classloader
2750 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/jhighlight-1.0.jar' to classloader
2750 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/bcprov-jdk15-1.45.jar' to classloader
2750 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/xercesImpl-2.9.1.jar' to classloader
2750 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/fontbox-1.8.4.jar' to classloader
2750 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/bcmail-jdk15-1.45.jar' to classloader
2751 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/poi-ooxml-3.10.1.jar' to classloader
2751 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/tika-xmp-1.5.jar' to classloader
2751 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/tagsoup-1.2.1.jar' to classloader
2751 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/extraction/lib/vorbis-java-core-0.1.jar' to classloader
2756 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/dist/solr-cell-4.10.0.jar' to classloader
2760 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/clustering/lib/simple-xml-2.7.jar' to classloader
2760 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/clustering/lib/mahout-math-0.6.jar' to classloader
2760 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/clustering/lib/jackson-mapper-asl-1.9.13.jar' to classloader
2760 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/clustering/lib/attributes-binder-1.2.1.jar' to classloader
2761 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/clustering/lib/hppc-0.5.2.jar' to classloader
2761 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/clustering/lib/jackson-core-asl-1.9.13.jar' to classloader
2761 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/clustering/lib/carrot2-mini-3.9.0.jar' to classloader
2761 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/clustering/lib/mahout-collections-1.0.jar' to classloader
2762 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/dist/solr-clustering-4.10.0.jar' to classloader
2763 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/langid/lib/langdetect-1.1-20120112.jar' to classloader
2763 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/langid/lib/jsonic-1.2.7.jar' to classloader
2764 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/dist/solr-langid-4.10.0.jar' to classloader
2765 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/velocity/lib/commons-beanutils-1.8.3.jar' to classloader
2765 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/velocity/lib/velocity-tools-2.0.jar' to classloader
2765 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/velocity/lib/commons-collections-3.2.1.jar' to classloader
2766 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/contrib/velocity/lib/velocity-1.7.jar' to classloader
2766 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrResourceLoader  – Adding 'file:/root/search/dist/solr-velocity-4.10.0.jar' to classloader
3045 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.update.SolrIndexConfig  – IndexWriter infoStream solr logging is enabled
3054 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrConfig  – Using Lucene MatchVersion: 4.10.0
3346 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.Config  – Loaded SolrConfig: solrconfig.xml
3357 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.schema.IndexSchema  – Reading Solr Schema from schema.xml
3490 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.schema.IndexSchema  – [collection1] Schema name=example
4263 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.schema.IndexSchema  – unique key field: id
4281 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.RestManager  – Registered ManagedResource impl org.apache.solr.rest.schema.analysis.ManagedWordSetResource for path /schema/analysis/stopwords/english
4281 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.RestManager  – Registered ManagedResource impl org.apache.solr.rest.schema.analysis.ManagedSynonymFilterFactory$SynonymManager for path /schema/analysis/synonyms/english
4348 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.schema.FileExchangeRateProvider  – Reloading exchange rates from file currency.xml
4363 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.schema.FileExchangeRateProvider  – Reloading exchange rates from file currency.xml
4540 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.CoreContainer  – Creating SolrCore 'collection1' using configuration from instancedir /root/search/solr/solr/collection1/
4556 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – solr.NRTCachingDirectoryFactory
4563 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – [collection1] Opening new SolrCore at /root/search/solr/solr/collection1/, dataDir=/root/search/solr/solr/collection1/data/
4564 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.JmxMonitoredMap  – No JMX servers found, not exposing Solr information with JMX.
4568 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – [collection1] Added SolrEventListener for newSearcher: org.apache.solr.core.QuerySenderListener{queries=[]}
4569 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – [collection1] Added SolrEventListener for firstSearcher: org.apache.solr.core.QuerySenderListener{queries=[{q=static firstSearcher warming in solrconfig.xml}]}
4584 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.CachingDirectoryFactory  – return new directory for /root/search/solr/solr/collection1/data
4587 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – New index directory detected: old=null new=/root/search/solr/solr/collection1/data/index/
4587 [coreLoadExecutor-5-thread-1] WARN  org.apache.solr.core.SolrCore  – [collection1] Solr index directory '/root/search/solr/solr/collection1/data/index' doesn't exist. Creating new index...
4594 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.CachingDirectoryFactory  – return new directory for /root/search/solr/solr/collection1/data/index
4649 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – SolrDeletionPolicy.onCommit: commits: num=1
        commit{dir=NRTCachingDirectory(MMapDirectory@/root/search/solr/solr/collection1/data/index lockFactory=NativeFSLockFactory@/root/search/solr/solr/collection1/data/index; maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_1,generation=1}
4650 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – newest commit generation = 1
4653 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – created json: solr.JSONResponseWriter
4654 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – adding lazy queryResponseWriter: solr.VelocityResponseWriter
4654 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – created velocity: solr.VelocityResponseWriter
4657 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – created xslt: solr.XSLTResponseWriter
4658 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.response.XSLTResponseWriter  – xsltCacheLifetimeSeconds=5
4798 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – no updateRequestProcessorChain defined as default, creating implicit default
4807 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /update: org.apache.solr.handler.UpdateRequestHandler
4807 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /update/json: org.apache.solr.handler.UpdateRequestHandler
4808 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /update/csv: org.apache.solr.handler.UpdateRequestHandler
4809 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /update/json/docs: org.apache.solr.handler.UpdateRequestHandler
4814 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /select: solr.SearchHandler
4814 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /query: solr.SearchHandler
4816 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /get: solr.RealTimeGetHandler
4816 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /export: solr.SearchHandler
4817 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /browse: solr.SearchHandler
4818 [coreLoadExecutor-5-thread-1] WARN  org.apache.solr.core.RequestHandlers  – Multiple requestHandler registered to the same name: /update ignoring: org.apache.solr.handler.UpdateRequestHandler
4819 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /update: solr.UpdateRequestHandler
4819 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – adding lazy requestHandler: solr.extraction.ExtractingRequestHandler
4819 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /update/extract: solr.extraction.ExtractingRequestHandler
4820 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – adding lazy requestHandler: solr.FieldAnalysisRequestHandler
4820 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /analysis/field: solr.FieldAnalysisRequestHandler
4821 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – adding lazy requestHandler: solr.DocumentAnalysisRequestHandler
4821 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /analysis/document: solr.DocumentAnalysisRequestHandler
4823 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /admin/: solr.admin.AdminHandlers
4825 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /admin/ping: solr.PingRequestHandler
4827 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /debug/dump: solr.DumpRequestHandler
4835 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /replication: solr.ReplicationHandler
4835 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – adding lazy requestHandler: solr.SearchHandler
4835 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /spell: solr.SearchHandler
4835 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – adding lazy requestHandler: solr.SearchHandler
4836 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /suggest: solr.SearchHandler
4836 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – adding lazy requestHandler: solr.SearchHandler
4836 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /tvrh: solr.SearchHandler
4836 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – adding lazy requestHandler: solr.SearchHandler
4836 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /terms: solr.SearchHandler
4836 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – adding lazy requestHandler: solr.SearchHandler
4837 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.RequestHandlers  – created /elevate: solr.SearchHandler
4852 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.handler.loader.XMLLoader  – xsltCacheLifetimeSeconds=60
4858 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.handler.loader.XMLLoader  – xsltCacheLifetimeSeconds=60
4858 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.handler.loader.XMLLoader  – xsltCacheLifetimeSeconds=60
4859 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.handler.loader.XMLLoader  – xsltCacheLifetimeSeconds=60
4860 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.handler.loader.XMLLoader  – xsltCacheLifetimeSeconds=60
4875 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – Hard AutoCommit: if uncommited for 15000ms; 
4875 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – Soft AutoCommit: disabled
4881 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – SolrDeletionPolicy.onInit: commits: num=1
        commit{dir=NRTCachingDirectory(MMapDirectory@/root/search/solr/solr/collection1/data/index lockFactory=NativeFSLockFactory@/root/search/solr/solr/collection1/data/index; maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_1,generation=1}
4881 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.SolrCore  – newest commit generation = 1
4887 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.search.SolrIndexSearcher  – Opening Searcher@537d147e[collection1] main
4893 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResourceStorage  – File-based storage initialized to use dir: /root/search/solr/solr/collection1/conf
4893 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.RestManager  – Initializing RestManager with initArgs: {storageDir=/root/search/solr/solr/collection1/conf}
4894 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResourceStorage  – Reading _rest_managed.json using file:dir=/root/search/solr/solr/collection1/conf
4899 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResourceStorage  – Loaded LinkedHashMap at path _rest_managed.json using file:dir=/root/search/solr/solr/collection1/conf
4899 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResource  – Loaded initArgs {} for /rest/managed
4900 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.RestManager  – Initializing 2 registered ManagedResources
4900 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResourceStorage  – Reading _schema_analysis_stopwords_english.json using file:dir=/root/search/solr/solr/collection1/conf
4902 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResourceStorage  – Loaded LinkedHashMap at path _schema_analysis_stopwords_english.json using file:dir=/root/search/solr/solr/collection1/conf
4902 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResource  – Loaded initArgs {ignoreCase=true} for /schema/analysis/stopwords/english
4903 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResource  – Loaded 35 words for /schema/analysis/stopwords/english
4903 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResource  – Notified 1 observers of /schema/analysis/stopwords/english
4903 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResourceStorage  – Reading _schema_analysis_synonyms_english.json using file:dir=/root/search/solr/solr/collection1/conf
4904 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResourceStorage  – Loaded LinkedHashMap at path _schema_analysis_synonyms_english.json using file:dir=/root/search/solr/solr/collection1/conf
4904 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResource  – Loaded initArgs {ignoreCase=true,format=solr} for /schema/analysis/synonyms/english
4905 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResource  – Loaded 3 synonym mappings for /schema/analysis/synonyms/english
4907 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.rest.ManagedResource  – Notified 1 observers of /schema/analysis/synonyms/english
4907 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.handler.component.SpellCheckComponent  – Initializing spell checkers
4913 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.spelling.DirectSolrSpellChecker  – init: {name=default,field=text,classname=solr.DirectSolrSpellChecker,distanceMeasure=internal,accuracy=0.5,maxEdits=2,minPrefix=1,maxInspections=5,minQueryLength=4,maxQueryFrequency=0.01}
4924 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.handler.component.SpellCheckComponent  – No queryConverter defined, using default converter
4925 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.handler.component.SuggestComponent  – Initializing SuggestComponent
4927 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.spelling.suggest.SolrSuggester  – init: {name=mySuggester,lookupImpl=FuzzyLookupFactory,dictionaryImpl=DocumentDictionaryFactory,field=cat,weightField=price,suggestAnalyzerFieldType=string}
4941 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.spelling.suggest.SolrSuggester  – Dictionary loaded with params: {name=mySuggester,lookupImpl=FuzzyLookupFactory,dictionaryImpl=DocumentDictionaryFactory,field=cat,weightField=price,suggestAnalyzerFieldType=string}
4943 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.handler.component.QueryElevationComponent  – Loading QueryElevation from: /root/search/solr/solr/collection1/conf/elevate.xml
4971 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.handler.ReplicationHandler  – Commits will be reserved for  10000
4972 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – QuerySenderListener sending requests to Searcher@537d147e[collection1] main{StandardDirectoryReader(segments_1:1:nrt)}
4981 [coreLoadExecutor-5-thread-1] INFO  org.apache.solr.core.CoreContainer  – registering core: collection1
4988 [main] INFO  org.apache.solr.servlet.SolrDispatchFilter  – user.dir=/root/search/solr
4989 [main] INFO  org.apache.solr.servlet.SolrDispatchFilter  – SolrDispatchFilter.init() done
5070 [main] INFO  org.eclipse.jetty.server.AbstractConnector  – Started [email protected]:8983
5076 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – [collection1] webapp=null path=null params={event=firstSearcher&q=static+firstSearcher+warming+in+solrconfig.xml&distrib=false} hits=0 status=0 QTime=103 
5077 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – QuerySenderListener done.
5080 [searcherExecutor-6-thread-1] INFO  org.apache.solr.handler.component.SpellCheckComponent  – Loading spell index for spellchecker: default
5084 [searcherExecutor-6-thread-1] INFO  org.apache.solr.handler.component.SpellCheckComponent  – Loading spell index for spellchecker: wordbreak
5084 [searcherExecutor-6-thread-1] INFO  org.apache.solr.handler.component.SuggestComponent  – Loading suggester index for: mySuggester
5084 [searcherExecutor-6-thread-1] INFO  org.apache.solr.spelling.suggest.SolrSuggester  – reload()
5085 [searcherExecutor-6-thread-1] INFO  org.apache.solr.spelling.suggest.SolrSuggester  – build()
5097 [searcherExecutor-6-thread-1] INFO  org.apache.solr.core.SolrCore  – [collection1] Registered new searcher Searcher@537d147e[collection1] main{StandardDirectoryReader(segments_1:1:nrt)}


便于大家看过程,日志贴的比较详细,然后我们在web页面上访问:
http//ip地址:8983/solr查看是否安装启动成功!



如果觉得输出太多,我们可以以后台方式运行:

nohup sh solr.sh &  2>err.our 

echo $!"   $$" >> pid




最后我们看下关闭solr服务的脚本:
[root@ganglia ~]# cat stop.sh 



 pid=`ps -ef  | grep start.jar  | gawk '{print $2}' | head -n 1`

echo "获取solr进程的pid号: $pid"


kill -9 $pid
sleep 2

echo "停掉solr服务完毕!"

  

# while read pid

#do

# kill -9 $pid

#done
[root@ganglia ~]# 



散仙在这里为了演示方便,是把安装和启动放在一起了,在真正应用时,建议分开2个脚本,因为安装可能只需要一次,而启动和关闭则可能需要很多次,所以建议分开来写和执行.



猜你喜欢

转载自qindongliang.iteye.com/blog/2113825