Solr
  1. Solr
  2. SOLR-7102

bin/solr should activate cloud mode if ZK_HOST is set

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      you have to set SOLR_MODE=solrcloud in the /var/solr/solr.in.sh to get the init.d/solr script to start Solr in cloud mode (since it doesn't pass -c). What should happen is that the bin/solr script should assume cloud mode if ZK_HOST is set.

      This mainly affects the /etc/init.d/solr script because it doesn't pass the -c | -cloud option. If working with bin/solr directly, you can just pass the -c explicitly to get cloud mode.

      1. SOLR-7102.patch
        0.8 kB
        Timothy Potter

        Issue Links

          Activity

          Hide
          Hoss Man added a comment -

          if/when this behavior is changed, the "Note" box regarding SOLR_MODE on this page should be removed...
          https://cwiki.apache.org/confluence/display/solr/Upgrading+a+Solr+4.x+Cluster+to+Solr+5.0

          Show
          Hoss Man added a comment - if/when this behavior is changed, the "Note" box regarding SOLR_MODE on this page should be removed... https://cwiki.apache.org/confluence/display/solr/Upgrading+a+Solr+4.x+Cluster+to+Solr+5.0
          Hide
          Timothy Potter added a comment -

          Simple fix to set SOLR_MODE=solrcloud if ZK_HOST is set.

          Show
          Timothy Potter added a comment - Simple fix to set SOLR_MODE=solrcloud if ZK_HOST is set.
          Hide
          ASF subversion and git services added a comment -

          Commit 1677925 from Timothy Potter in branch 'dev/trunk'
          [ https://svn.apache.org/r1677925 ]

          SOLR-7102: bin/solr should activate cloud mode if ZK_HOST is set

          Show
          ASF subversion and git services added a comment - Commit 1677925 from Timothy Potter in branch 'dev/trunk' [ https://svn.apache.org/r1677925 ] SOLR-7102 : bin/solr should activate cloud mode if ZK_HOST is set
          Hide
          ASF subversion and git services added a comment -

          Commit 1677926 from Timothy Potter in branch 'dev/branches/branch_5x'
          [ https://svn.apache.org/r1677926 ]

          SOLR-7102: bin/solr should activate cloud mode if ZK_HOST is set

          Show
          ASF subversion and git services added a comment - Commit 1677926 from Timothy Potter in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1677926 ] SOLR-7102 : bin/solr should activate cloud mode if ZK_HOST is set
          Hide
          Anshum Gupta added a comment -

          Bulk close for 5.2.0.

          Show
          Anshum Gupta added a comment - Bulk close for 5.2.0.

            People

            • Assignee:
              Timothy Potter
              Reporter:
              Timothy Potter
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development