Re: starting up solr automatically

2013-12-05 Thread Eric Palmer
ers, > > Timothy Potter > Sr. Software Engineer, LucidWorks > www.lucidworks.com > > > From: Greg Walters > Sent: Thursday, December 05, 2013 1:23 PM > To: solr-user@lucene.apache.org > Subject: Re: starting up solr automatically > &g

RE: starting up solr automatically

2013-12-05 Thread Tim Potter
mber 05, 2013 1:23 PM To: solr-user@lucene.apache.org Subject: Re: starting up solr automatically Eric, Sorry about that, the entire OPTIONS= part can be dropped. That's there to support a war file that we deploy next to solr. Greg On Dec 5, 2013, at 1:51 PM, Eric Palmer wrote: > some progress but

Re: starting up solr automatically

2013-12-05 Thread Greg Walters
Eric, Sorry about that, the entire OPTIONS= part can be dropped. That's there to support a war file that we deploy next to solr. Greg On Dec 5, 2013, at 1:51 PM, Eric Palmer wrote: > some progress but getting this error now > sudo service jetty start > Starting Jetty: -bash: line 1: cd: /var/

Re: starting up solr automatically

2013-12-05 Thread Eric Palmer
Okay I changed the cd /var/lib/answers/atlascloud/solr45 to cd $JETTY_HOME and am getting the same error run the runcmd from the comand line I get the same error if I take the ,jsp off it runs and solr returns search results so I modified the script and removed the ,jsp option and it works. I'm

Re: starting up solr automatically

2013-12-05 Thread Eric Palmer
some progress but getting this error now sudo service jetty start Starting Jetty: -bash: line 1: cd: /var/lib/answers/atlascloud/solr45: No such file or directory STARTED Jetty Thu Dec 5 19:50:09 UTC 2013 [ec2-user@ip-10-50-203-92 ~]$ java.lang.IllegalArgumentException: No such OPTIONS: jsp at org

Re: starting up solr automatically

2013-12-05 Thread Greg Walters
Eric, If you're using the script from the gist I posted make sure you're sourcing the jetty file at line 140. Thanks, Greg On Dec 5, 2013, at 1:21 PM, Eric Palmer wrote: > Greg or anyone that can help, when I try to start jetty as a service > sudo service jetty start > > I get this error > *

Re: starting up solr automatically

2013-12-05 Thread Eric Palmer
Greg or anyone that can help, when I try to start jetty as a service sudo service jetty start I get this error ** ERROR: JETTY_HOME not set, you need to set it or install in a standard location same for sudo service jetty stop sudo service jetty check etc I have a file here and the permissions l

Re: starting up solr automatically

2013-12-05 Thread Greg Walters
Alan, Yes, that's intentional. There's two reasons for this: 1: We make schema changes frequently (more frequently than I like) 2: So far as I've noticed, it doesn't hurt anything and covers my butt when I've got to clear out all the solr related data from ZK while testing Thanks, Greg On Dec

Re: starting up solr automatically

2013-12-05 Thread Alan Woodward
Hi Greg, It looks as though your script below will bootstrap a collection configuration every time Solr is restarted, which probably isn't what you want to do? You only need to upload the config once. Alan Woodward www.flax.co.uk On 4 Dec 2013, at 21:26, Greg Walters wrote: > I almost forgo

Re: starting up solr automatically

2013-12-04 Thread Eric Palmer
thanks greg I got it starting but the collection file is not avail. I will use the script that you gave the url for and the env settings. Thanks On Wed, Dec 4, 2013 at 4:26 PM, Greg Walters wrote: > I almost forgot, you'll need a file to setup the environment a bit too: > > ** > JAVA_HOME=/usr/

Re: starting up solr automatically

2013-12-04 Thread Greg Walters
I almost forgot, you'll need a file to setup the environment a bit too: ** JAVA_HOME=/usr/java/default JAVA_OPTIONS="-Xmx15g \ -Xms15g \ -XX:+PrintGCApplicationStoppedTime \ -XX:+PrintGCDateStamps \ -XX:+PrintGCDetails \ -XX:+UseConcMarkSweepGC \ -XX:+UseParNewGC \ -XX:+UseTLAB \ -XX:+CMSParallelR

Re: starting up solr automatically

2013-12-04 Thread Greg Walters
I found the instructions and scripts on that page to be unclear and/or not work. Here's the script I've been using for solr 4.5.1: https://gist.github.com/gregwalters/7795791 Do note that you'll have to change a couple of paths to get things working correctly. Thanks, Greg On Dec 4, 2013, at 3

starting up solr automatically

2013-12-04 Thread Eric Palmer
Hey all, I'm pretty new to solr. I'm installing it on an amazon linux (rpm based) ec2 instance and have it running. I even have nutch feeding it pages from a crawl. I'm very happy about that. I want solr to start on a reboot and am following the instructions at http://wiki.apache.org/solr/SolrJ