[
https://issues.apache.org/jira/browse/SOLR-9817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15709114#comment-15709114
]
ASF GitHub Bot commented on SOLR-9817:
--------------------------------------
GitHub user hgadre opened a pull request:
https://github.com/apache/lucene-solr/pull/121
[SOLR-9817] Make "working directory" for Solr server during startup c…
…onfigurable
- Added an environment variable "SOLR_CONFIG_DIR" to specify the working
directory.
If this env variable is missing, then we use value of SOLR_SERVER_DIR as
the default.
This allows us to maintain backwards compatibility.
- Updated solr-jetty-context.xml to use the jetty.home system property
(instead of jetty.base).
This is required since the jetty.base would point to SOLR_CONFIG_DIR and
we need the location
specified by SOLR_SERVER_DIR variable.
Testing: Manual testing with (and without) specifying SOLR_CONFIG_DIR
parameter. The server
starts properly in both cases.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hgadre/lucene-solr SOLR-9817_fix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucene-solr/pull/121.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #121
----
commit 6601b335e68a6d6df4fd724b61764f5d163f49f9
Author: Hrishikesh Gadre <[email protected]>
Date: 2016-11-30T16:50:29Z
[SOLR-9817] Make "working directory" for Solr server during startup
configurable
- Added an environment variable "SOLR_CONFIG_DIR" to specify the working
directory.
If this env variable is missing, then we use value of SOLR_SERVER_DIR as
the default.
This allows us to maintain backwards compatibility.
- Updated solr-jetty-context.xml to use the jetty.home system property
(instead of jetty.base).
This is required since the jetty.base would point to SOLR_CONFIG_DIR and
we need the location
specified by SOLR_SERVER_DIR variable.
Testing: Manual testing with (and without) specifying SOLR_CONFIG_DIR
parameter. The server
starts properly in both cases.
----
> Make Solr server startup directory configurable
> -----------------------------------------------
>
> Key: SOLR-9817
> URL: https://issues.apache.org/jira/browse/SOLR-9817
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 6.0
> Reporter: Hrishikesh Gadre
> Priority: Minor
>
> The solr startup script (bin/solr) is hardcoded to use the
> <solr_installation>/server directory as the working directory during the
> startup.
> https://github.com/apache/lucene-solr/blob/9eaea79f5c89094c08f52245b9473ca14f368f57/solr/bin/solr#L1652
> This jira is to make the "current working directory" for Solr configurable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]