Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

AhmadFCheema/openshift-elasticsearch-cartridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


OBSOLETE Project

On August 25th, 2017 users were informed of the subsequent sunset of OpenShift Online v2 platform by September 30th, 2017 (extended to December 31st, 2017 for paying customers). The next generation v3 platform replaces Cartridges with Images, therefore, making this quick Elasticsearch set-up solution now, unfortunately obsolete. Comments on the "sunset" blog post records some of the incredulity expressed by users on the decision.

This project is kept for archival purposes and any possible benefit it may still provide.


OpenShift Elasticsearch 5.3.2 Cartridge

Downloadable Elasticsearch 5.3.2 cartridge for OpenShift.

To create your scalable Elasticsearch app, run:

rhc app create <your app name> http://cartreflect-claytondev.rhcloud.com/github/AhmadFCheema/openshift-elasticsearch-cartridge -s

NOTE: Your app currently must be a scalable app or this cartridge will not run.

Adding additional cluster nodes

To add more nodes to the cluster, simply add more gears:

rhc cartridge scale -a <your app name> elasticsearch <number of total gears you want>

Plugins

To install Elasticsearch plugins:

  • SSH into your OpenShift application
  • Run commands:
export JAVA_HOME=/etc/alternatives/java_sdk_1.8.0; export PATH=$JAVA_HOME/bin:$PATH
elasticsearch/usr/bin/elasticsearch-plugin install <plugin_name>
  • The first command directs to the correct Java version (i.e. Java 8).
  • The second command installs the plugin. Plugin names can be found from here. For example: elasticsearch/usr/bin/elasticsearch-plugin install analysis-icu.

OR

  • Clone OpenShift application's git repository (git clone <OpenShift app SSH URL>)
  • Edit the plugins.txt file
  • Commit (git commit -am "new plugin")
  • Push your changes to OpenShift (git push)
  • The current setup first removes all previously installed plugins and then installs the ones declared in plugins.txt.

Testing

Development

License

Apache License, Version 2.0 and Criticise not insult.

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%