I went through the solr-ref-guide. I got a brief idea on how it works, But
I can't help to think as to why I am unable to create a core through web UI
? Does it have any dependency on SolrCloud ? If I am planning to run an
standalone instance do I need to create core's only through the command
line and with 'solr' user privileges ? Please advise.



On Mon, Mar 14, 2016 at 6:26 PM, Erick Erickson <erickerick...@gmail.com>
wrote:

> OK, take Cassandra out of it for the time being and spend
> some time familiarizing yourself with Solr would be my
> advice ;)
>
> Yeah, the Solr documentation is a bit scattered, but your most
> complete and up to date reference is the Solr reference guide
> here:
>
> In particular, see the
>
> https://cwiki.apache.org/confluence/display/solr/Solr+Start+Script+Reference
> upconfig command.
>
> You can download the complete reference guide through the link in the
> upper left.
>
> The general idea here is that your configurations (solrconfig.xml,
> schema.xml and all the rest) are
> kept in Zookeeper. When creating a collection, you must reference that
> configuration set. The
> examples automatically push the configuration set up to Zookeeper,
> which you can see in the
> adminUI>>cloud>>tree view.
>
> Best,
> Erick
>
> On Mon, Mar 14, 2016 at 12:20 PM, Bhanu Prasad <bhanupras...@gmail.com>
> wrote:
> > Hi Erick,
> >
> > I am very new to this, I haven't uploaded any configsets. I need help to
> > get existing cassandra keyspace into solr to do analysis. I am completely
> > new to this technology so having trouble with finding right documentation
> > on how to do it.
> >
> > Regards,
> > Bhanu
> >
> > On Mon, Mar 14, 2016 at 3:11 PM, Erick Erickson <erickerick...@gmail.com
> >
> > wrote:
> >
> >> What configsets have you uploaded to Solr? The canned example does
> >> this for you. The configurations must reside in Zookeeper, NOT on the
> >> local disk. I think that's probably what you're seeing...
> >>
> >> Best,
> >> Erick
> >>
> >> On Mon, Mar 14, 2016 at 11:33 AM, Bhanu Prasad <bhanupras...@gmail.com>
> >> wrote:
> >> > 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 <bhanupras...@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
> >> >>
> >> >>
> >>
>

Reply via email to