You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Shea Sanderson (JIRA)" <ji...@apache.org> on 2014/12/23 23:57:13 UTC
[jira] [Updated] (BIGTOP-1475) Zookeeper zkcli.sh doesn't run
[ https://issues.apache.org/jira/browse/BIGTOP-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shea Sanderson updated BIGTOP-1475:
-----------------------------------
Attachment: BIGTOP-1475.patch
Took a bit of a different approach. Instead of modifying zkcli.sh as this is Solr upstream. Instead modify solrctl.sh to not use zkcli.sh at all.
Currently zkcli.sh is just a wrapper for for a java call. As per https://cwiki.apache.org/confluence/display/solr/Command+Line+Utilities we will just use the direct java call instead of the wrapper.
Please let me know if this is a good approach or not. I can re-factor the zkcli.sh if that is preferred.
> Zookeeper zkcli.sh doesn't run
> ------------------------------
>
> Key: BIGTOP-1475
> URL: https://issues.apache.org/jira/browse/BIGTOP-1475
> Project: Bigtop
> Issue Type: Bug
> Affects Versions: 0.8.0
> Reporter: Andrew Kuchling
> Assignee: Roman Shaposhnik
> Attachments: BIGTOP-1475.patch
>
>
> /usr/lib/solr/bin/zkcli.sh doesn't run, probably because file paths have changed. When installed on a CentOS machine, I get:
> [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
> I managed to get zkcli.sh working for my purposes by commenting out the
> invocation of unzip to unpack the .war file, and replaced the Java invocation with the following:
> PATH=$JAVA_HOME/bin:$PATH $JVM -Dlog4j.configuration=file:/etc/solr/conf.dist/log4j.properties -classpath "/usr/lib/solr/server/webapps/solr/WEB-INF/lib/*" org.apache.solr.cloud.ZkCLI ${1+"$@"}
> Note that I've changed both the path to log4j.properties and to the directory used with -classpath.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)