Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4192

There is an odd classpath gotchya with ZkCli scripts.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • 4.1, 6.0
    • SolrCloud
    • None

    Description

      I saw this many months ago while working with a customer, but forgot to investigate further.

      When using a classpath that just points to the webapp libs, you seem to get an error about not being able to find one of the jars in that folder. If you also specifically include the one solrj jar it complains about, everything works. WTF?
      Does not work:

      java -classpath example/solr-webapp/webapp/WEB-INF/lib/* org.apache.solr.cloud.ZkCLI -cmd bootstrap -zkhost 127.0.0.1:9983 -solrhome example/solr -runzk 8983

      Works

      java -classpath example/solr-webapp/webapp/WEB-INF/lib/*:example/solr-webapp/webapp/WEB-INF/lib/apache-solr-solrj-5.0-SNAPSHOT.jar org.apache.solr.cloud.ZkCLI -cmd bootstrap -zkhost 127.0.0.1:9983 -solrhome example/solr -runzk 8983
      

      Attachments

        Activity

          People

            markrmiller@gmail.com Mark Miller
            markrmiller@gmail.com Mark Miller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: