{"action":"created","issue":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9303","labels_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9303/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9303/comments","events_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9303/events","html_url":"https://github.com/elasticsearch/elasticsearch/issues/9303","id":54393337,"number":9303,"title":"Include ES_CLASSPATH in provided SysV init script?","user":{"login":"bflad","id":189114,"avatar_url":"https://avatars.githubusercontent.com/u/189114?v=3","gravatar_id":"","url":"https://api.github.com/users/bflad","html_url":"https://github.com/bflad","followers_url":"https://api.github.com/users/bflad/followers","following_url":"https://api.github.com/users/bflad/following{/other_user}","gists_url":"https://api.github.com/users/bflad/gists{/gist_id}","starred_url":"https://api.github.com/users/bflad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bflad/subscriptions","organizations_url":"https://api.github.com/users/bflad/orgs","repos_url":"https://api.github.com/users/bflad/repos","events_url":"https://api.github.com/users/bflad/events{/privacy}","received_events_url":"https://api.github.com/users/bflad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/labels/%3APackaging","name":":Packaging","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"tlrx","id":642733,"avatar_url":"https://avatars.githubusercontent.com/u/642733?v=3","gravatar_id":"","url":"https://api.github.com/users/tlrx","html_url":"https://github.com/tlrx","followers_url":"https://api.github.com/users/tlrx/followers","following_url":"https://api.github.com/users/tlrx/following{/other_user}","gists_url":"https://api.github.com/users/tlrx/gists{/gist_id}","starred_url":"https://api.github.com/users/tlrx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlrx/subscriptions","organizations_url":"https://api.github.com/users/tlrx/orgs","repos_url":"https://api.github.com/users/tlrx/repos","events_url":"https://api.github.com/users/tlrx/events{/privacy}","received_events_url":"https://api.github.com/users/tlrx/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-01-14T23:38:22Z","updated_at":"2015-01-19T17:31:31Z","closed_at":null,"body":"Hi Folks,\r\n\r\nWe'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.\r\nhttps://github.com/elasticsearch/elasticsearch-hadoop/tree/master/repository-hdfs\r\n\r\nAs 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.\r\nhttps://github.com/elasticsearch/puppet-elasticsearch/blob/master/templates/etc/init.d/elasticsearch.RedHat.erb\r\n\r\nCurrently, I provide `ES_CLASSPATH=\"$ES_CLASSPATH:/path/to/hadoop/jars\"` in our /etc/sysconfig/elasticsearch and add an additional line in /etc/init.d/elasticsearch `export ES_CLASSPATH` (since the official Puppet module doesn't support `export ES_CLASSPATH=\"...\"` directly).\r\n\r\nShould the SysV init script include `export ES_CLASSPATH` like the other `export 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.\r\n\r\nThanks!\r\nBrian"},"comment":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/comments/70531123","html_url":"https://github.com/elasticsearch/elasticsearch/issues/9303#issuecomment-70531123","issue_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9303","id":70531123,"user":{"login":"bflad","id":189114,"avatar_url":"https://avatars.githubusercontent.com/u/189114?v=3","gravatar_id":"","url":"https://api.github.com/users/bflad","html_url":"https://github.com/bflad","followers_url":"https://api.github.com/users/bflad/followers","following_url":"https://api.github.com/users/bflad/following{/other_user}","gists_url":"https://api.github.com/users/bflad/gists{/gist_id}","starred_url":"https://api.github.com/users/bflad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bflad/subscriptions","organizations_url":"https://api.github.com/users/bflad/orgs","repos_url":"https://api.github.com/users/bflad/repos","events_url":"https://api.github.com/users/bflad/events{/privacy}","received_events_url":"https://api.github.com/users/bflad/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T17:31:31Z","updated_at":"2015-01-19T17:31:31Z","body":"Thanks, @tlrx - please let me know if I can help with anything."}}