Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-1475

Zookeeper zkcli.sh doesn't run

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.0
    • None
    • None
    • None

    Description

      /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.

      Attachments

        1. BIGTOP-1475-v2.patch
          0.6 kB
          Shea Sanderson
        2. BIGTOP-1475.patch
          0.6 kB
          Shea Sanderson

        Activity

          People

            rvs Roman Shaposhnik
            akuchling Andrew Kuchling
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: