Solr
  1. Solr
  2. SOLR-6120

zkcli.sh class not fount error /opt/solr-4.8.1/example/solr-webapp is empty

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.8.1
    • Fix Version/s: 4.10
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      When calling /solr-4.8.1/example/scripts/cloud-scripts/zkcli.sh the org.apache.solr.cloud.ZkCLI class is not found

      The cause is that /opt/solr-4.8.1/example/solr-webapp is empty

      1. SOLR-6120.patch
        0.7 kB
        Shalin Shekhar Mangar
      2. SOLR-6120-windows.patch
        0.9 kB
        Shawn Heisey
      3. SOLR-6120-windows.patch
        0.9 kB
        Shawn Heisey
      4. SOLR-6120-windows.patch
        0.8 kB
        Shalin Shekhar Mangar

        Activity

        Hide
        Shalin Shekhar Mangar added a comment -

        I ran into this the other day promising myself that I'd open an issue but then I forgot. The zkcli script assumes that solr-webapp is populated but "ant example" doesn't do that. We should fix this.

        Show
        Shalin Shekhar Mangar added a comment - I ran into this the other day promising myself that I'd open an issue but then I forgot. The zkcli script assumes that solr-webapp is populated but "ant example" doesn't do that. We should fix this.
        Hide
        Mark Miller added a comment -

        Yeah, this has come up many times and it's always been decided the script should act like the cloud dev scripts and extract the webapp itself if it has not been extracted yet, but no one has ever gone and done it yet.

        Show
        Mark Miller added a comment - Yeah, this has come up many times and it's always been decided the script should act like the cloud dev scripts and extract the webapp itself if it has not been extracted yet, but no one has ever gone and done it yet.
        Hide
        Shalin Shekhar Mangar added a comment -

        Okay, I'll fix.

        Show
        Shalin Shekhar Mangar added a comment - Okay, I'll fix.
        Hide
        Shalin Shekhar Mangar added a comment -

        This patch changes zkcli.sh to extract the webapp if not already done. I don't think we can fix the windows .bat file.

        Show
        Shalin Shekhar Mangar added a comment - This patch changes zkcli.sh to extract the webapp if not already done. I don't think we can fix the windows .bat file.
        Hide
        Shalin Shekhar Mangar added a comment -

        Something along the lines of this SOLR-6120-windows.patch can be done for windows to make the user aware that certain manual steps are required. This isn't tested because I don't have access to a windows box right now.

        Show
        Shalin Shekhar Mangar added a comment - Something along the lines of this SOLR-6120 -windows.patch can be done for windows to make the user aware that certain manual steps are required. This isn't tested because I don't have access to a windows box right now.
        Hide
        ASF subversion and git services added a comment -

        Commit 1598286 from shalin@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1598286 ]

        SOLR-6120: zkcli.sh should expand solr.war automatically instead of throwing ClassNotFoundException

        Show
        ASF subversion and git services added a comment - Commit 1598286 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1598286 ] SOLR-6120 : zkcli.sh should expand solr.war automatically instead of throwing ClassNotFoundException
        Hide
        ASF subversion and git services added a comment -

        Commit 1598287 from shalin@apache.org in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1598287 ]

        SOLR-6120: zkcli.sh should expand solr.war automatically instead of throwing ClassNotFoundException

        Show
        ASF subversion and git services added a comment - Commit 1598287 from shalin@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1598287 ] SOLR-6120 : zkcli.sh should expand solr.war automatically instead of throwing ClassNotFoundException
        Hide
        Shalin Shekhar Mangar added a comment -

        Can a kind soul with a windows box test the SOLR-6120-windows.patch?

        Show
        Shalin Shekhar Mangar added a comment - Can a kind soul with a windows box test the SOLR-6120 -windows.patch?
        Hide
        Shawn Heisey added a comment -

        If we are willing to include a Visual Basic script in the package, it can be done with XP and higher. One example:

        http://www.naterice.com/blog/template_permalink.asp?id=64

        Show
        Shawn Heisey added a comment - If we are willing to include a Visual Basic script in the package, it can be done with XP and higher. One example: http://www.naterice.com/blog/template_permalink.asp?id=64
        Hide
        Shawn Heisey added a comment -

        Oh, someone made a patch already? I will try it when the train gets me home. I don't actually use Solr on Windows, but I have a development environment there.

        Show
        Shawn Heisey added a comment - Oh, someone made a patch already? I will try it when the train gets me home. I don't actually use Solr on Windows, but I have a development environment there.
        Hide
        Shalin Shekhar Mangar added a comment -

        Thanks Shawn. The windows patch doesn't unzip the solr.war file but it prints out that you need to do that yourself before zkcli.bat can work.

        Show
        Shalin Shekhar Mangar added a comment - Thanks Shawn. The windows patch doesn't unzip the solr.war file but it prints out that you need to do that yourself before zkcli.bat can work.
        Hide
        Shawn Heisey added a comment -

        Updated windows patch. The instructions for what to unzip and where to put it were getting lost in all the other output from the script. This change makes those instructions very readable.

        I will also try to cook up something that actually extracts the .war for you on Windows.

        Show
        Shawn Heisey added a comment - Updated windows patch. The instructions for what to unzip and where to put it were getting lost in all the other output from the script. This change makes those instructions very readable. I will also try to cook up something that actually extracts the .war for you on Windows.
        Hide
        Shawn Heisey added a comment -

        Extremely minor change to new patch – uppercasing one letter.

        Show
        Shawn Heisey added a comment - Extremely minor change to new patch – uppercasing one letter.
        Hide
        Cassandra Targett added a comment -

        Shalin Shekhar Mangar: should this be updated to Fix Version = 4.9 & also Resolved? Or is Windows support blocking that?

        Show
        Cassandra Targett added a comment - Shalin Shekhar Mangar : should this be updated to Fix Version = 4.9 & also Resolved? Or is Windows support blocking that?
        Hide
        Shalin Shekhar Mangar added a comment -

        Hi Shawn Heisey, is the windows patch ready to be committed? I don't have a windows box to test this.

        Show
        Shalin Shekhar Mangar added a comment - Hi Shawn Heisey , is the windows patch ready to be committed? I don't have a windows box to test this.
        Hide
        ASF subversion and git services added a comment -

        Commit 1610463 from Shawn Heisey in branch 'dev/trunk'
        [ https://svn.apache.org/r1610463 ]

        SOLR-6120: Print a helpful error message from zkcli.bat when war is not extracted.

        Show
        ASF subversion and git services added a comment - Commit 1610463 from Shawn Heisey in branch 'dev/trunk' [ https://svn.apache.org/r1610463 ] SOLR-6120 : Print a helpful error message from zkcli.bat when war is not extracted.
        Hide
        ASF subversion and git services added a comment -

        Commit 1610464 from Shawn Heisey in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1610464 ]

        SOLR-6120: Print a helpful error message from zkcli.bat when war is not extracted. (merge trunk r1610463)

        Show
        ASF subversion and git services added a comment - Commit 1610464 from Shawn Heisey in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1610464 ] SOLR-6120 : Print a helpful error message from zkcli.bat when war is not extracted. (merge trunk r1610463)
        Hide
        ASF subversion and git services added a comment -

        Commit 1610465 from Shawn Heisey in branch 'dev/trunk'
        [ https://svn.apache.org/r1610465 ]

        SOLR-6120: Add names to CHANGES.txt

        Show
        ASF subversion and git services added a comment - Commit 1610465 from Shawn Heisey in branch 'dev/trunk' [ https://svn.apache.org/r1610465 ] SOLR-6120 : Add names to CHANGES.txt
        Hide
        ASF subversion and git services added a comment -

        Commit 1610466 from Shawn Heisey in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1610466 ]

        SOLR-6120: Add names to changes.txt entry (merge trunk r1610465)

        Show
        ASF subversion and git services added a comment - Commit 1610466 from Shawn Heisey in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1610466 ] SOLR-6120 : Add names to changes.txt entry (merge trunk r1610465)
        Hide
        Shalin Shekhar Mangar added a comment -

        This was released in 4.10.0

        Show
        Shalin Shekhar Mangar added a comment - This was released in 4.10.0

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            sebastian badea
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development