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

Solr zkcli script failing with 'ClassNotFound' in 6.4.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 6.4.2
    • 6.4.3, 6.5, 7.0
    • scripts and tools
    • None

    Description

      Solr's zkcli script failing with 'ClassNotFound' error

      /opt/solr-dists/solr-6.4.2/server/scripts/cloud-scripts/zkcli.sh -zkhost localhost:9983/test -cmd bootstrap -solrhome /opt/solr-dists/solr-6.4.2/server/solr
      Exception in thread "main" java.lang.NoClassDefFoundError: com/codahale/metrics/Metric
          at org.apache.solr.cloud.ZkCLI.main(ZkCLI.java:199)
      Caused by: java.lang.ClassNotFoundException: com.codahale.metrics.Metric
          at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
          ... 1 more
      

      Attachments

        1. SOLR-10302.patch
          0.7 kB
          Ishan Chattopadhyaya

        Activity

          People

            ichattopadhyaya Ishan Chattopadhyaya
            kiranch Kiran
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: