Skip to content

Instantly share code, notes, and snippets.

Install Elasticsearch with Service Wrapper

# This code snippet is runnable

# Download Elasticsearch zip
curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.7.zip

# Unzip to desired location
unzip elasticsearch-0.90.7.zip -d $HOME
import _root_.freemarker.template._
import circumflex._, freemarker._
import org.bson._, types._
import collection.JavaConversions._
class ExtendedObjectWrapper extends ScalaObjectWrapper {
override def wrap(obj: Any) = obj match {
case null => null