You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@bigtop.apache.org by "A.M. Kuchling" <am...@amk.ca> on 2014/09/29 21:59:12 UTC

0.8.0: incorrect paths in /usr/lib/solr/tomcat-deployment.sh

At my workplace we're using Solr 4.5 as packaged in Bigtop 0.7.0.

Today I was trying out the Solr 4.9 from the 0.8.0 RC, and it looks
like some paths have changed.  In /usr/lib/solr/tomcat-deployment.sh
there are two lines:

cp -r ${SOLR_HOME}/webapps ${TOMCAT_DEPLOYMENT}/webapps
cp -r ${TOMCAT_CONF}/WEB-INF/* ${TOMCAT_DEPLOYMENT}/webapps/solr/WEB-INF/

I found that to actually get a working Solr setup, I needed to change
these two lines to:

cp -r ${SOLR_HOME}/server/webapps ${TOMCAT_DEPLOYMENT}/webapps
cp -r ${SOLR_HOME}/server/webapps/solr/WEB-INF/* ${TOMCAT_DEPLOYMENT}/webapps/solr/WEB-INF/

Also, /usr/lib/solr/bin/zkcli.sh doesn't run, probably due to a similar
rearrangement:

[ec2-user@ip-X-Y-Z-W ~]$ /usr/lib/solr/bin/zkcli.sh
unzip:  cannot find or open /usr/lib/solr/bin/../../webapps/solr.war, /usr/lib/solr/bin/../../webapps/solr.war.zip or /usr/lib/solr/bin/../../webapps/solr.war.ZIP.
Error: Could not find or load main class org.apache.solr.cloud.ZkCLI

There's no solr.war file in solr-4.9.0.466-1.el6.noarch; the file is
now /usr/lib/solr/solr-4.9.0.war and nothing seems to create a
solr.war symlink.

--amk

Re: 0.8.0: incorrect paths in /usr/lib/solr/tomcat-deployment.sh

Posted by Konstantin Boudnik <co...@boudnik.org>.
Could you open a JIRA for that? Thanks a lot!
--
  Take care,
Konstantin (Cos) Boudnik


On Mon, Sep 29, 2014 at 12:59 PM, A.M. Kuchling <am...@amk.ca> wrote:
> At my workplace we're using Solr 4.5 as packaged in Bigtop 0.7.0.
>
> Today I was trying out the Solr 4.9 from the 0.8.0 RC, and it looks
> like some paths have changed.  In /usr/lib/solr/tomcat-deployment.sh
> there are two lines:
>
> cp -r ${SOLR_HOME}/webapps ${TOMCAT_DEPLOYMENT}/webapps
> cp -r ${TOMCAT_CONF}/WEB-INF/* ${TOMCAT_DEPLOYMENT}/webapps/solr/WEB-INF/
>
> I found that to actually get a working Solr setup, I needed to change
> these two lines to:
>
> cp -r ${SOLR_HOME}/server/webapps ${TOMCAT_DEPLOYMENT}/webapps
> cp -r ${SOLR_HOME}/server/webapps/solr/WEB-INF/* ${TOMCAT_DEPLOYMENT}/webapps/solr/WEB-INF/
>
> Also, /usr/lib/solr/bin/zkcli.sh doesn't run, probably due to a similar
> rearrangement:
>
> [ec2-user@ip-X-Y-Z-W ~]$ /usr/lib/solr/bin/zkcli.sh
> unzip:  cannot find or open /usr/lib/solr/bin/../../webapps/solr.war, /usr/lib/solr/bin/../../webapps/solr.war.zip or /usr/lib/solr/bin/../../webapps/solr.war.ZIP.
> Error: Could not find or load main class org.apache.solr.cloud.ZkCLI
>
> There's no solr.war file in solr-4.9.0.466-1.el6.noarch; the file is
> now /usr/lib/solr/solr-4.9.0.war and nothing seems to create a
> solr.war symlink.
>
> --amk