Solr
  1. Solr
  2. SOLR-188

bin scripts do not support non-default webapp names

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0, 1.2
    • Fix Version/s: 1.1.0, 1.2
    • Component/s: update
    • Labels:
      None
    • Environment:

      Unix/Linux operating systems

      Description

      If the solr web application has been configured in a non-default location, i.e. http://localhost:8080/solrapp2/, the operation scripts under http://localhost:8080/solrapp2/bin/ will fail. The current logic assumes the location to be

      {hostname}

      :

      {port}

      /solr.

      1. scripts_url.patch
        16 kB
        Jeff Rodenburg

        Issue Links

          Activity

          Hide
          Bill Au added a comment -

          Thanks Jeff for the patch. It has been applied. I have also updated the Solr Wiki:

          http://wiki.apache.org/solr/SolrOperationsTools

          Show
          Bill Au added a comment - Thanks Jeff for the patch. It has been applied. I have also updated the Solr Wiki: http://wiki.apache.org/solr/SolrOperationsTools
          Hide
          Bill Au added a comment -

          The patch looks good. I am going to commit it and update the related documentation in the Solr Wiki.

          Show
          Bill Au added a comment - The patch looks good. I am going to commit it and update the related documentation in the Solr Wiki.
          Hide
          Hoss Man added a comment -

          FWIW: I haven't looked at this patch in depth and my bash fu is weak, but i definitely like the idea of this new -U param since the work with plugable update handlers makes it possible to completely redefinte the path for sending xml updates messages.

          Show
          Hoss Man added a comment - FWIW: I haven't looked at this patch in depth and my bash fu is weak, but i definitely like the idea of this new -U param since the work with plugable update handlers makes it possible to completely redefinte the path for sending xml updates messages.
          Hide
          Jeff Rodenburg added a comment -

          This patch updates the following scripts:

          abc
          abo
          commit
          optimize
          readercycle

          The primary addition to these files is the "-U" parameter, which accepts a full url path to the update url. When included, the -U parameter overrides the -h (hostname), -p (port) and -w (webapp) parameters.

          In addition, the -w (webapp) parameter has been incorporated into the script as well (wasn't previously). Default values of hostname=localhost and webapp=solr are used.

          Show
          Jeff Rodenburg added a comment - This patch updates the following scripts: abc abo commit optimize readercycle The primary addition to these files is the "-U" parameter, which accepts a full url path to the update url. When included, the -U parameter overrides the -h (hostname), -p (port) and -w (webapp) parameters. In addition, the -w (webapp) parameter has been incorporated into the script as well (wasn't previously). Default values of hostname=localhost and webapp=solr are used.

            People

            • Assignee:
              Bill Au
              Reporter:
              Jeff Rodenburg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development