Include ES_CLASSPATH in provided SysV init script? #9303
Labels
:Delivery/Packaging
RPM and deb packaging, tar and zip archives, shell and batch scripts
Team:Delivery
Meta label for Delivery team
Hi Folks,
We're currently using the official elasticsearch/elasticsearch-repository-hdfs/2.0.2-light plugin to support HDFS snapshots. In our environment we use Cloudera Distribution Hadoop, so we need to supply these jars on startup into the Elasticsearch Java classpath.
https://github.com/elasticsearch/elasticsearch-hadoop/tree/master/repository-hdfs
As another point of reference, we're also using the official Puppet module in our environment so this problem would apply to both the supplied RPM files here as well as the Puppet file templates.
https://github.com/elasticsearch/puppet-elasticsearch/blob/master/templates/etc/init.d/elasticsearch.RedHat.erb
Currently, I provide
ES_CLASSPATH="$ES_CLASSPATH:/path/to/hadoop/jars"
in our /etc/sysconfig/elasticsearch and add an additional line in /etc/init.d/elasticsearchexport ES_CLASSPATH
(since the official Puppet module doesn't supportexport ES_CLASSPATH="..."
directly).Should the SysV init script include
export ES_CLASSPATH
like the otherexport ES_JAVA_OPTS
,export ES_HEAP_SIZE
, etc. environments variables in there for consistency? I wouldn't mind submitting a pull request to add this if it makes sense.Thanks!
Brian
The text was updated successfully, but these errors were encountered: