lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhanu Prasad <bhanupras...@gmail.com>
Subject Re: New to Solr 5.5
Date Mon, 14 Mar 2016 18:33:25 GMT
I was able to create a core using create -c option, But this time with user
as solr. It worked. How can I make sure that the solr user is running the
webapplication command requests as well ? Any help ?

[solr@solr bin]$ ./solr create -c cassie

Copying configuration to new core instance directory:
/var/solr/data/cassie

Creating new core 'cassie' using command:
http://localhost:8983/solr/admin/cores?action=CREATE&name=cassie&instanceDir=cassie

{
  "responseHeader":{
    "status":0,
    "QTime":709},
  "core":"cassie"}

Regards,
Bhanu Prasad

On Mon, Mar 14, 2016 at 1:30 PM, Bhanu Prasad <bhanuprasad9@gmail.com>
wrote:

> Hello,
>
>
> I installed a new solr instance in lab on Cent OS 7
>
> # java -version
> java version "1.8.0_72"
> Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
> Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)
>
> #wget http://apache.mirror.gtcomm.net/lucene/solr/5.5.0/solr-5.5.0.tgz
> #tar -zxvf solr-5.5.0.tgz
> #cd solr-5.5.0
>
> #bin/install_solr_service.sh /tmp/solr-5.5.0.tgz
> #id solr
> uid=1000(solr) gid=1000(solr) groups=1000(solr)
>
> I am getting an error when creating a new core from the UI and CLI. Kindly
> someone guide me what I am missing ?
>
> org.apache.solr.common.SolrException: Could not load conf for core netflow: Error loading
solr config from /var/solr/data/netflow/conf/solrconfig.xml
> 	at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:84)
> 	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:812)
> 	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:751)
> 	at org.apache.solr.handler.admin.CoreAdminOperation$1.call(CoreAdminOperation.java:129)
> 	at org.apache.solr.handler.admin.CoreAdminHandler$CallInfo.call(CoreAdminHandler.java:354)
> 	at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:153)
> 	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:155)
> 	at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:676)
> 	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:439)
> 	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:225)
> 	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:183)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
> 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
> 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:499)
> 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
> 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
> 	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.solr.common.SolrException: Error loading solr config from /var/solr/data/netflow/conf/solrconfig.xml
> 	at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:174)
> 	at org.apache.solr.core.ConfigSetService.createSolrConfig(ConfigSetService.java:98)
> 	at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:78)
> 	... 30 more
> Caused by: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'solrconfig.xml'
in classpath or '/var/solr/data/netflow'
> 	at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:408)
> 	at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:363)
> 	at org.apache.solr.core.Config.<init>(Config.java:120)
> 	at org.apache.solr.core.Config.<init>(Config.java:90)
> 	at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:189)
> 	at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:166)
> 	... 32 more
>
>
> I have installed solr as root, Please let me know if I am missing anything in the configuration.
>
>
> Regards,
>
> Bhanu Prasad
>
> DevOps
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message