Grokbase Groups Lucene dev June 2016
FAQ
[ https://issues.apache.org/jira/browse/SOLR-9151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Rowe reopened SOLR-9151:
------------------------------

Reopening to backport to 6.0.2, 5.6 and 5.5.2.
solr -e cloud broken if $PWD is / on Linux
------------------------------------------

Key: SOLR-9151
URL: https://issues.apache.org/jira/browse/SOLR-9151
Project: Solr
Issue Type: Bug
Affects Versions: 5.5, 6.0
Environment: Solr Docker Container
Reporter: Hari Sekhon
Assignee: Jan Høydahl
Priority: Minor
Fix For: 6.1, master (7.0)

Attachments: SOLR-9151.patch


Solr scripts for cloud example break if called from a directory other than $SOLR_HOME, ie $PWD is not $SOLR_HOME: It always strips off the beginning of the path. This used to work regardless in Solr 4.x as I used to use it quite a lot and my custom solr 4.x docker containers it still works regardless of $PWD - it's only broken in 5x/6.0.
Here is an example of the issue:
{code}docker run -ti solr bash
solr@5083b8e59d49:/opt/solr$ cd /
solr@5083b8e59d49:/$ solr -e cloud
Welcome to the SolrCloud example!
This interactive session will help you launch a SolrCloud cluster on your local workstation.
To begin, how many Solr nodes would you like to run in your local cluster? (specify 1-4 nodes) [2]:
Ok, let's start up 2 Solr nodes for your example SolrCloud cluster.
Please enter the port for node1 [8983]:
Please enter the port for node2 [7574]:
Creating Solr home directory /opt/solr/example/cloud/node1/solr
Cloning /opt/solr/example/cloud/node1 into
/opt/solr/example/cloud/node2
Starting up Solr on port 8983 using command:
/opt/solr/bin/solr start -cloud -p 8983 -s "pt/solr/example/cloud/node1/solr"
Solr home directory pt/solr/example/cloud/node1/solr not found!
ERROR: Process exited with an error: 1 (Exit value: 1)
{code}


--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org

Search Discussions

  • Steve Rowe (JIRA) at Jun 17, 2016 at 11:01 pm
    [ https://issues.apache.org/jira/browse/SOLR-9151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Steve Rowe resolved SOLR-9151.
    ------------------------------
            Resolution: Fixed
         Fix Version/s: 6.0.2
                        5.5.2
                        5.6
    solr -e cloud broken if $PWD is / on Linux
    ------------------------------------------

    Key: SOLR-9151
    URL: https://issues.apache.org/jira/browse/SOLR-9151
    Project: Solr
    Issue Type: Bug
    Affects Versions: 5.5, 6.0
    Environment: Solr Docker Container
    Reporter: Hari Sekhon
    Assignee: Jan Høydahl
    Priority: Minor
    Fix For: 5.6, 5.5.2, master (7.0), 6.0.2, 6.1

    Attachments: SOLR-9151.patch


    Solr scripts for cloud example break if called from a directory other than $SOLR_HOME, ie $PWD is not $SOLR_HOME: It always strips off the beginning of the path. This used to work regardless in Solr 4.x as I used to use it quite a lot and my custom solr 4.x docker containers it still works regardless of $PWD - it's only broken in 5x/6.0.
    Here is an example of the issue:
    {code}docker run -ti solr bash
    solr@5083b8e59d49:/opt/solr$ cd /
    solr@5083b8e59d49:/$ solr -e cloud
    Welcome to the SolrCloud example!
    This interactive session will help you launch a SolrCloud cluster on your local workstation.
    To begin, how many Solr nodes would you like to run in your local cluster? (specify 1-4 nodes) [2]:
    Ok, let's start up 2 Solr nodes for your example SolrCloud cluster.
    Please enter the port for node1 [8983]:
    Please enter the port for node2 [7574]:
    Creating Solr home directory /opt/solr/example/cloud/node1/solr
    Cloning /opt/solr/example/cloud/node1 into
    /opt/solr/example/cloud/node2
    Starting up Solr on port 8983 using command:
    /opt/solr/bin/solr start -cloud -p 8983 -s "pt/solr/example/cloud/node1/solr"
    Solr home directory pt/solr/example/cloud/node1/solr not found!
    ERROR: Process exited with an error: 1 (Exit value: 1)
    {code}


    --
    This message was sent by Atlassian JIRA
    (v6.3.4#6332)

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • ASF subversion and git services (JIRA) at Jun 17, 2016 at 11:01 pm
    [ https://issues.apache.org/jira/browse/SOLR-9151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15337173#comment-15337173 ]

    ASF subversion and git services commented on SOLR-9151:
    -------------------------------------------------------

    Commit 6d8fda0d606fc9add49202fee4c85a2c90412557 in lucene-solr's branch refs/heads/branch_5_5 from [~janhoy]
    [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=6d8fda0 ]

    SOLR-9151: Fix SolrCLI so that bin/solr -e cloud example can be run from any CWD
    (cherry picked from commit 50c4f58)

    solr -e cloud broken if $PWD is / on Linux
    ------------------------------------------

    Key: SOLR-9151
    URL: https://issues.apache.org/jira/browse/SOLR-9151
    Project: Solr
    Issue Type: Bug
    Affects Versions: 5.5, 6.0
    Environment: Solr Docker Container
    Reporter: Hari Sekhon
    Assignee: Jan Høydahl
    Priority: Minor
    Fix For: 5.6, 6.1, 5.5.2, master (7.0), 6.0.2

    Attachments: SOLR-9151.patch


    Solr scripts for cloud example break if called from a directory other than $SOLR_HOME, ie $PWD is not $SOLR_HOME: It always strips off the beginning of the path. This used to work regardless in Solr 4.x as I used to use it quite a lot and my custom solr 4.x docker containers it still works regardless of $PWD - it's only broken in 5x/6.0.
    Here is an example of the issue:
    {code}docker run -ti solr bash
    solr@5083b8e59d49:/opt/solr$ cd /
    solr@5083b8e59d49:/$ solr -e cloud
    Welcome to the SolrCloud example!
    This interactive session will help you launch a SolrCloud cluster on your local workstation.
    To begin, how many Solr nodes would you like to run in your local cluster? (specify 1-4 nodes) [2]:
    Ok, let's start up 2 Solr nodes for your example SolrCloud cluster.
    Please enter the port for node1 [8983]:
    Please enter the port for node2 [7574]:
    Creating Solr home directory /opt/solr/example/cloud/node1/solr
    Cloning /opt/solr/example/cloud/node1 into
    /opt/solr/example/cloud/node2
    Starting up Solr on port 8983 using command:
    /opt/solr/bin/solr start -cloud -p 8983 -s "pt/solr/example/cloud/node1/solr"
    Solr home directory pt/solr/example/cloud/node1/solr not found!
    ERROR: Process exited with an error: 1 (Exit value: 1)
    {code}


    --
    This message was sent by Atlassian JIRA
    (v6.3.4#6332)

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • ASF subversion and git services (JIRA) at Jun 17, 2016 at 11:01 pm
    [ https://issues.apache.org/jira/browse/SOLR-9151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15337174#comment-15337174 ]

    ASF subversion and git services commented on SOLR-9151:
    -------------------------------------------------------

    Commit 1850d9bbb0e27a6a1229c59cc76cf4dc4afe8862 in lucene-solr's branch refs/heads/branch_5x from [~janhoy]
    [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=1850d9b ]

    SOLR-9151: Fix SolrCLI so that bin/solr -e cloud example can be run from any CWD
    (cherry picked from commit 50c4f58)

    solr -e cloud broken if $PWD is / on Linux
    ------------------------------------------

    Key: SOLR-9151
    URL: https://issues.apache.org/jira/browse/SOLR-9151
    Project: Solr
    Issue Type: Bug
    Affects Versions: 5.5, 6.0
    Environment: Solr Docker Container
    Reporter: Hari Sekhon
    Assignee: Jan Høydahl
    Priority: Minor
    Fix For: 5.6, 6.1, 5.5.2, master (7.0), 6.0.2

    Attachments: SOLR-9151.patch


    Solr scripts for cloud example break if called from a directory other than $SOLR_HOME, ie $PWD is not $SOLR_HOME: It always strips off the beginning of the path. This used to work regardless in Solr 4.x as I used to use it quite a lot and my custom solr 4.x docker containers it still works regardless of $PWD - it's only broken in 5x/6.0.
    Here is an example of the issue:
    {code}docker run -ti solr bash
    solr@5083b8e59d49:/opt/solr$ cd /
    solr@5083b8e59d49:/$ solr -e cloud
    Welcome to the SolrCloud example!
    This interactive session will help you launch a SolrCloud cluster on your local workstation.
    To begin, how many Solr nodes would you like to run in your local cluster? (specify 1-4 nodes) [2]:
    Ok, let's start up 2 Solr nodes for your example SolrCloud cluster.
    Please enter the port for node1 [8983]:
    Please enter the port for node2 [7574]:
    Creating Solr home directory /opt/solr/example/cloud/node1/solr
    Cloning /opt/solr/example/cloud/node1 into
    /opt/solr/example/cloud/node2
    Starting up Solr on port 8983 using command:
    /opt/solr/bin/solr start -cloud -p 8983 -s "pt/solr/example/cloud/node1/solr"
    Solr home directory pt/solr/example/cloud/node1/solr not found!
    ERROR: Process exited with an error: 1 (Exit value: 1)
    {code}


    --
    This message was sent by Atlassian JIRA
    (v6.3.4#6332)

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • ASF subversion and git services (JIRA) at Jun 17, 2016 at 11:01 pm
    [ https://issues.apache.org/jira/browse/SOLR-9151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15337175#comment-15337175 ]

    ASF subversion and git services commented on SOLR-9151:
    -------------------------------------------------------

    Commit b866e594d18ae47271b87e7dedd06ae26d622801 in lucene-solr's branch refs/heads/branch_6_0 from [~janhoy]
    [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b866e59 ]

    SOLR-9151: Fix SolrCLI so that bin/solr -e cloud example can be run from any CWD
    (cherry picked from commit 50c4f58)

    solr -e cloud broken if $PWD is / on Linux
    ------------------------------------------

    Key: SOLR-9151
    URL: https://issues.apache.org/jira/browse/SOLR-9151
    Project: Solr
    Issue Type: Bug
    Affects Versions: 5.5, 6.0
    Environment: Solr Docker Container
    Reporter: Hari Sekhon
    Assignee: Jan Høydahl
    Priority: Minor
    Fix For: 5.6, 6.1, 5.5.2, master (7.0), 6.0.2

    Attachments: SOLR-9151.patch


    Solr scripts for cloud example break if called from a directory other than $SOLR_HOME, ie $PWD is not $SOLR_HOME: It always strips off the beginning of the path. This used to work regardless in Solr 4.x as I used to use it quite a lot and my custom solr 4.x docker containers it still works regardless of $PWD - it's only broken in 5x/6.0.
    Here is an example of the issue:
    {code}docker run -ti solr bash
    solr@5083b8e59d49:/opt/solr$ cd /
    solr@5083b8e59d49:/$ solr -e cloud
    Welcome to the SolrCloud example!
    This interactive session will help you launch a SolrCloud cluster on your local workstation.
    To begin, how many Solr nodes would you like to run in your local cluster? (specify 1-4 nodes) [2]:
    Ok, let's start up 2 Solr nodes for your example SolrCloud cluster.
    Please enter the port for node1 [8983]:
    Please enter the port for node2 [7574]:
    Creating Solr home directory /opt/solr/example/cloud/node1/solr
    Cloning /opt/solr/example/cloud/node1 into
    /opt/solr/example/cloud/node2
    Starting up Solr on port 8983 using command:
    /opt/solr/bin/solr start -cloud -p 8983 -s "pt/solr/example/cloud/node1/solr"
    Solr home directory pt/solr/example/cloud/node1/solr not found!
    ERROR: Process exited with an error: 1 (Exit value: 1)
    {code}


    --
    This message was sent by Atlassian JIRA
    (v6.3.4#6332)

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieslucene
postedJun 17, '16 at 10:58p
activeJun 17, '16 at 11:01p
posts5
users1
websitelucene.apache.org

People

Translate

site design / logo © 2019 Grokbase