diff --git a/bin/control b/bin/control index da264fa..eb23830 100755 --- a/bin/control +++ b/bin/control @@ -22,7 +22,8 @@ function start() { return 0 fi - export PUBLISH_HOST=$(python -c "import socket; print socket.gethostbyname('$OPENSHIFT_GEAR_DNS')") + export PUBLISH_HOST="$OPENSHIFT_GEAR_DNS" + export ES_JAVA_OPTS="$ES_JAVA_OPTS -Des.path.conf=$OPENSHIFT_ELASTICSEARCH_DIR/conf" $OPENSHIFT_ELASTICSEARCH_DIR/usr/bin/elasticsearch -p $PID_FILE } diff --git a/bin/install b/bin/install index 17430ae..0d124dd 100755 --- a/bin/install +++ b/bin/install @@ -1,5 +1,25 @@ #!/bin/bash -e -mkdir -p $OPENSHIFT_ELASTICSEARCH_DIR/run $OPENSHIFT_DATA_DIR/elasticsearch +case "$1" in + -v|--version) + version="$2" +esac -touch $OPENSHIFT_ELASTICSEARCH_DIR/env/OPENSHIFT_ELASTICSEARCH_CLUSTER +# find default version +if ! [ "${version}" ]; then + version="$(grep '^Version:' metadata/manifest.yml | cut -f 2 -d : | xargs)" + [ -n "$version" ] && [ -d "$OPENSHIFT_ELASTICSEARCH_DIR/versions/$version" ] +fi + +# copy version specific elasticsearch bin +ln -s $OPENSHIFT_ELASTICSEARCH_DIR/versions/$version $OPENSHIFT_ELASTICSEARCH_DIR/usr + +# copy version specific config, or fallback to default +if [ -e $OPENSHIFT_ELASTICSEARCH_DIR/versions/$version/conf ]; then + cp -HR $OPENSHIFT_ELASTICSEARCH_DIR/versions/$version/conf $OPENSHIFT_ELASTICSEARCH_DIR/ +else + cp -HR $OPENSHIFT_ELASTICSEARCH_DIR/versions/shared/conf $OPENSHIFT_ELASTICSEARCH_DIR/ +fi + +# create additional dirs +mkdir -p $OPENSHIFT_ELASTICSEARCH_DIR/run $OPENSHIFT_DATA_DIR/{elasticsearch,elasticsearch-plugins} diff --git a/env/OPENSHIFT_ELASTICSEARCH_CLUSTER b/env/OPENSHIFT_ELASTICSEARCH_CLUSTER new file mode 100644 index 0000000..e69de29 diff --git a/hooks/publish-unicast-host b/hooks/publish-unicast-host index a1329e2..6dfd640 100755 --- a/hooks/publish-unicast-host +++ b/hooks/publish-unicast-host @@ -1,4 +1,11 @@ #!/bin/bash -e -ip_address=$(python -c "import socket; print socket.gethostbyname('$OPENSHIFT_GEAR_DNS')") +for i in {1..5}; do + ip_address=$(python -c "import socket; print socket.gethostbyname('$OPENSHIFT_GEAR_DNS')") && break || sleep 1 +done + +if [ -z "$ip_address" -o "$ip_address" == '0.0.0.0' ]; then + ip_address="$(facter ipaddress)" +fi + echo $ip_address:$OPENSHIFT_ELASTICSEARCH_TRANSPORT_PROXY_PORT diff --git a/metadata/manifest.yml b/metadata/manifest.yml index b247cdf..8175719 100644 --- a/metadata/manifest.yml +++ b/metadata/manifest.yml @@ -1,8 +1,9 @@ Name: elasticsearch Cartridge-Short-Name: ELASTICSEARCH -Display-Name: ElasticSearch 1.0.0.RC1-SNAPSHOT -Description: "ElasticSearch" -Version: 1.0.0 +Display-Name: ElasticSearch 0.90.11-SNAPSHOT +Description: "ElasticSearch is a distributed restful search and analytics." +Version: 0.90.11 +Versions: [ 0.90.11, 1.0.0.RC1 ] License: Apache Vendor: elasticsearch.org Cartridge-Version: 0.0.1 @@ -14,8 +15,8 @@ Categories: Provides: - elasticsearch - - elasticsearch-1.0.0.RC1-SNAPSHOT - - elasticsearch-1.0.0.RC1-SNAPSHOT + - elasticsearch-0.90 + - elasticsearch-0.90.11 Publishes: publish-unicast-host: @@ -48,3 +49,11 @@ Endpoints: Private-Port-Name: TRANSPORT_PORT Private-Port: 9300 Public-Port-Name: TRANSPORT_PROXY_PORT + +Version-Overrides: + 1.0.0.RC1: + Display-Name: ElasticSearch 1.0.0.RC1-SNAPSHOT + Provides: + - elasticsearch + - elasticsearch-1.0 + - elasticsearch-1.0.0-RC1 diff --git a/versions/0.90.11/LICENSE.txt b/versions/0.90.11/LICENSE.txt new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/versions/0.90.11/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/versions/0.90.11/NOTICE.txt b/versions/0.90.11/NOTICE.txt new file mode 100644 index 0000000..693052a --- /dev/null +++ b/versions/0.90.11/NOTICE.txt @@ -0,0 +1,5 @@ +ElasticSearch +Copyright 2009-2014 ElasticSearch and Shay Banon + +This product includes software developed by The Apache Software +Foundation (http://www.apache.org/). diff --git a/versions/0.90.11/README.textile b/versions/0.90.11/README.textile new file mode 100644 index 0000000..c47341e --- /dev/null +++ b/versions/0.90.11/README.textile @@ -0,0 +1,227 @@ +h1. ElasticSearch + +h2. A Distributed RESTful Search Engine + +h3. "http://www.elasticsearch.org":http://www.elasticsearch.org + +ElasticSearch is a distributed RESTful search engine built for the cloud. Features include: + +* Distributed and Highly Available Search Engine. +** Each index is fully sharded with a configurable number of shards. +** Each shard can have one or more replicas. +** Read / Search operations performed on either one of the replica shard. +* Multi Tenant with Multi Types. +** Support for more than one index. +** Support for more than one type per index. +** Index level configuration (number of shards, index storage, ...). +* Various set of APIs +** HTTP RESTful API +** Native Java API. +** All APIs perform automatic node operation rerouting. +* Document oriented +** No need for upfront schema definition. +** Schema can be defined per type for customization of the indexing process. +* Reliable, Asynchronous Write Behind for long term persistency. +* (Near) Real Time Search. +* Built on top of Lucene +** Each shard is a fully functional Lucene index +** All the power of Lucene easily exposed through simple configuration / plugins. +* Per operation consistency +** Single document level operations are atomic, consistent, isolated and durable. +* Open Source under Apache 2 License. + +h2. Getting Started + +First of all, DON'T PANIC. It will take 5 minutes to get the gist of what ElasticSearch is all about. + +h3. Installation + +* "Download":http://www.elasticsearch.org/download and unzip the ElasticSearch official distribution. +* Run @bin/elasticsearch -f@ on unix, or @bin/elasticsearch.bat@ on windows. +* Run @curl -X GET http://localhost:9200/@. +* Start more servers ... + +h3. Indexing + +Lets try and index some twitter like information. First, lets create a twitter user, and add some tweets (the @twitter@ index will be created automatically): + +
+curl -XPUT 'http://localhost:9200/twitter/user/kimchy' -d '{ "name" : "Shay Banon" }'
+
+curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d '
+{ 
+    "user": "kimchy", 
+    "postDate": "2009-11-15T13:12:00", 
+    "message": "Trying out Elastic Search, so far so good?" 
+}'
+
+curl -XPUT 'http://localhost:9200/twitter/tweet/2' -d '
+{ 
+    "user": "kimchy", 
+    "postDate": "2009-11-15T14:12:12", 
+    "message": "Another tweet, will it be indexed?" 
+}'
+
+ +Now, lets see if the information was added by GETting it: + +
+curl -XGET 'http://localhost:9200/twitter/user/kimchy?pretty=true'
+curl -XGET 'http://localhost:9200/twitter/tweet/1?pretty=true'
+curl -XGET 'http://localhost:9200/twitter/tweet/2?pretty=true'
+
+ +h3. Searching + +Mmm search..., shouldn't it be elastic? +Lets find all the tweets that @kimchy@ posted: + +
+curl -XGET 'http://localhost:9200/twitter/tweet/_search?q=user:kimchy&pretty=true'
+
+ +We can also use the JSON query language ElasticSearch provides instead of a query string: + +
+curl -XGET 'http://localhost:9200/twitter/tweet/_search?pretty=true' -d '
+{ 
+    "query" : { 
+        "text" : { "user": "kimchy" }
+    } 
+}'
+
+ +Just for kicks, lets get all the documents stored (we should see the user as well): + +
+curl -XGET 'http://localhost:9200/twitter/_search?pretty=true' -d '
+{ 
+    "query" : { 
+        "matchAll" : {} 
+    } 
+}'
+
+ +We can also do range search (the @postDate@ was automatically identified as date) + +
+curl -XGET 'http://localhost:9200/twitter/_search?pretty=true' -d '
+{ 
+    "query" : { 
+        "range" : { 
+            "postDate" : { "from" : "2009-11-15T13:00:00", "to" : "2009-11-15T14:00:00" } 
+        } 
+    } 
+}'
+
+ +There are many more options to perform search, after all, its a search product no? All the familiar Lucene queries are available through the JSON query language, or through the query parser. + +h3. Multi Tenant - Indices and Types + +Maan, that twitter index might get big (in this case, index size == valuation). Lets see if we can structure our twitter system a bit differently in order to support such large amount of data. + +ElasticSearch support multiple indices, as well as multiple types per index. In the previous example we used an index called @twitter@, with two types, @user@ and @tweet@. + +Another way to define our simple twitter system is to have a different index per user (though note that an index has an overhead). Here is the indexing curl's in this case: + +
+curl -XPUT 'http://localhost:9200/kimchy/info/1' -d '{ "name" : "Shay Banon" }'
+
+curl -XPUT 'http://localhost:9200/kimchy/tweet/1' -d '
+{ 
+    "user": "kimchy", 
+    "postDate": "2009-11-15T13:12:00", 
+    "message": "Trying out Elastic Search, so far so good?" 
+}'
+
+curl -XPUT 'http://localhost:9200/kimchy/tweet/2' -d '
+{ 
+    "user": "kimchy", 
+    "postDate": "2009-11-15T14:12:12", 
+    "message": "Another tweet, will it be indexed?" 
+}'
+
+ +The above index information into the @kimchy@ index, with two types, @info@ and @tweet@. Each user will get his own special index. + +Complete control on the index level is allowed. As an example, in the above case, we would want to change from the default 5 shards with 1 replica per index, to only 1 shard with 1 replica per index (== per twitter user). Here is how this can be done (the configuration can be in yaml as well): + +
+curl -XPUT http://localhost:9200/another_user/ -d '
+{ 
+    "index" : { 
+        "numberOfShards" : 1, 
+        "numberOfReplicas" : 1 
+    } 
+}'
+
+ +Search (and similar operations) are multi index aware. This means that we can easily search on more than one +index (twitter user), for example: + +
+curl -XGET 'http://localhost:9200/kimchy,another_user/_search?pretty=true' -d '
+{ 
+    "query" : { 
+        "matchAll" : {} 
+    } 
+}'
+
+ +Or on all the indices: + +
+curl -XGET 'http://localhost:9200/_search?pretty=true' -d '
+{ 
+    "query" : { 
+        "matchAll" : {} 
+    } 
+}'
+
+ +{One liner teaser}: And the cool part about that? You can easily search on multiple twitter users (indices), with different boost levels per user (index), making social search so much simpler (results from my friends rank higher than results from my friends friends). + +h3. Distributed, Highly Available + +Lets face it, things will fail.... + +ElasticSearch is a highly available and distributed search engine. Each index is broken down into shards, and each shard can have one or more replica. By default, an index is created with 5 shards and 1 replica per shard (5/1). There are many topologies that can be used, including 1/10 (improve search performance), or 20/1 (improve indexing performance, with search executed in a map reduce fashion across shards). + +In order to play with Elastic Search distributed nature, simply bring more nodes up and shut down nodes. The system will continue to serve requests (make sure you use the correct http port) with the latest data indexed. + +h3. Where to go from here? + +We have just covered a very small portion of what ElasticSearch is all about. For more information, please refer to: . + +h3. Building from Source + +ElasticSearch uses "Maven":http://maven.apache.org for its build system. + +In order to create a distribution, simply run the @mvn clean package +-DskipTests@ command in the cloned directory. + +The distribution will be created under @target/releases@. + +See the "TESTING":TESTING.asciidoc file for more information about +running the Elasticsearch test suite. + +h1. License + +
+This software is licensed under the Apache 2 license, quoted below.
+
+Copyright 2009-2013 Shay Banon and ElasticSearch 
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not
+use this file except in compliance with the License. You may obtain a copy of
+the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+License for the specific language governing permissions and limitations under
+the License.
+
diff --git a/versions/0.90.11/bin/elasticsearch b/versions/0.90.11/bin/elasticsearch new file mode 100755 index 0000000..4247d3d --- /dev/null +++ b/versions/0.90.11/bin/elasticsearch @@ -0,0 +1,198 @@ +#!/bin/sh + +# OPTIONS: +# -f: start in the foreground +# -p : log the pid to a file (useful to kill it later) + +# CONTROLLING STARTUP: +# +# This script relies on few environment variables to determine startup +# behavior, those variables are: +# +# ES_CLASSPATH -- A Java classpath containing everything necessary to run. +# JAVA_OPTS -- Additional arguments to the JVM for heap size, etc +# ES_JAVA_OPTS -- External Java Opts on top of the defaults set +# +# +# Optionally, exact memory values can be set using the following values, note, +# they can still be set using the `ES_JAVA_OPTS`. Sample format include "512m", and "10g". +# +# ES_HEAP_SIZE -- Sets both the minimum and maximum memory to allocate (recommended) +# +# As a convenience, a fragment of shell is sourced in order to set one or +# more of these variables. This so-called `include' can be placed in a +# number of locations and will be searched for in order. The lowest +# priority search path is the same directory as the startup script, and +# since this is the location of the sample in the project tree, it should +# almost work Out Of The Box. +# +# Any serious use-case though will likely require customization of the +# include. For production installations, it is recommended that you copy +# the sample to one of /usr/share/elasticsearch/elasticsearch.in.sh, +# /usr/local/share/elasticsearch/elasticsearch.in.sh, or +# /opt/elasticsearch/elasticsearch.in.sh and make your modifications there. +# +# Another option is to specify the full path to the include file in the +# environment. For example: +# +# $ ES_INCLUDE=/path/to/in.sh elasticsearch -p /var/run/es.pid +# +# Note: This is particularly handy for running multiple instances on a +# single installation, or for quick tests. +# +# If you would rather configure startup entirely from the environment, you +# can disable the include by exporting an empty ES_INCLUDE, or by +# ensuring that no include files exist in the aforementioned search list. +# Be aware that you will be entirely responsible for populating the needed +# environment variables. + + +# Maven will replace the project.name with elasticsearch below. If that +# hasn't been done, we assume that this is not a packaged version and the +# user has forgotten to run Maven to create a package. +IS_PACKAGED_VERSION='elasticsearch' +if [ "$IS_PACKAGED_VERSION" != "elasticsearch" ]; then + cat >&2 << EOF +Error: You must build the project with Maven or download a pre-built package +before you can run Elasticsearch. See 'Building from Source' in README.textile +or visit http://www.elasticsearch.org/download to get a pre-built package. +EOF + exit 1 +fi + +CDPATH="" +SCRIPT="$0" + +# SCRIPT may be an arbitrarily deep series of symlinks. Loop until we have the concrete path. +while [ -h "$SCRIPT" ] ; do + ls=`ls -ld "$SCRIPT"` + # Drop everything prior to -> + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + SCRIPT="$link" + else + SCRIPT=`dirname "$SCRIPT"`/"$link" + fi +done + +# determine elasticsearch home +ES_HOME=`dirname "$SCRIPT"`/.. + +# make ELASTICSEARCH_HOME absolute +ES_HOME=`cd "$ES_HOME"; pwd` + + +# If an include wasn't specified in the environment, then search for one... +if [ "x$ES_INCLUDE" = "x" ]; then + # Locations (in order) to use when searching for an include file. + for include in /usr/share/elasticsearch/elasticsearch.in.sh \ + /usr/local/share/elasticsearch/elasticsearch.in.sh \ + /opt/elasticsearch/elasticsearch.in.sh \ + ~/.elasticsearch.in.sh \ + "`dirname "$0"`"/elasticsearch.in.sh; do + if [ -r "$include" ]; then + . "$include" + break + fi + done +# ...otherwise, source the specified include. +elif [ -r "$ES_INCLUDE" ]; then + . "$ES_INCLUDE" +fi + +if [ -x "$JAVA_HOME/bin/java" ]; then + JAVA="$JAVA_HOME/bin/java" +else + JAVA=`which java` +fi + +if [ ! -x "$JAVA" ]; then + echo "Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME" + exit 1 +fi + +if [ -z "$ES_CLASSPATH" ]; then + echo "You must set the ES_CLASSPATH var" >&2 + exit 1 +fi + +# Special-case path variables. +case `uname` in + CYGWIN*) + ES_CLASSPATH=`cygpath -p -w "$ES_CLASSPATH"` + ES_HOME=`cygpath -p -w "$ES_HOME"` + ;; +esac + +launch_service() +{ + pidpath=$1 + foreground=$2 + props=$3 + es_parms="-Delasticsearch" + + if [ "x$pidpath" != "x" ]; then + es_parms="$es_parms -Des.pidfile=$pidpath" + fi + + # The es-foreground option will tell ElasticSearch not to close stdout/stderr, but it's up to us not to background. + if [ "x$foreground" != "x" ]; then + es_parms="$es_parms -Des.foreground=yes" + exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props \ + org.elasticsearch.bootstrap.ElasticSearch + # exec without running it in the background, makes it replace this shell, we'll never get here... + # no need to return something + else + # Startup ElasticSearch, background it, and write the pid. + exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props \ + org.elasticsearch.bootstrap.ElasticSearch <&- & + return $? + fi +} + +# Parse any command line options. +args=`getopt vfhp:D:X: "$@"` +eval set -- "$args" + +while true; do + case $1 in + -v) + "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props \ + org.elasticsearch.Version + exit 0 + ;; + -p) + pidfile="$2" + shift 2 + ;; + -f) + foreground="yes" + shift + ;; + -h) + echo "Usage: $0 [-f] [-h] [-p pidfile]" + exit 0 + ;; + -D) + properties="$properties -D$2" + shift 2 + ;; + -X) + properties="$properties -X$2" + shift 2 + ;; + --) + shift + break + ;; + *) + echo "Error parsing argument $1!" >&2 + exit 1 + ;; + esac +done + +# Start up the service +launch_service "$pidfile" "$foreground" "$properties" + +exit $? \ No newline at end of file diff --git a/versions/0.90.11/bin/elasticsearch.in.sh b/versions/0.90.11/bin/elasticsearch.in.sh new file mode 100755 index 0000000..e1bbefd --- /dev/null +++ b/versions/0.90.11/bin/elasticsearch.in.sh @@ -0,0 +1,64 @@ +#!/bin/sh + +ES_CLASSPATH=$ES_CLASSPATH:$ES_HOME/lib/elasticsearch-0.90.11-SNAPSHOT.jar:$ES_HOME/lib/*:$ES_HOME/lib/sigar/* + +if [ "x$ES_MIN_MEM" = "x" ]; then + ES_MIN_MEM=256m +fi +if [ "x$ES_MAX_MEM" = "x" ]; then + ES_MAX_MEM=1g +fi +if [ "x$ES_HEAP_SIZE" != "x" ]; then + ES_MIN_MEM=$ES_HEAP_SIZE + ES_MAX_MEM=$ES_HEAP_SIZE +fi + +# min and max heap sizes should be set to the same value to avoid +# stop-the-world GC pauses during resize, and so that we can lock the +# heap in memory on startup to prevent any of it from being swapped +# out. +JAVA_OPTS="$JAVA_OPTS -Xms${ES_MIN_MEM}" +JAVA_OPTS="$JAVA_OPTS -Xmx${ES_MAX_MEM}" + +# new generation +if [ "x$ES_HEAP_NEWSIZE" != "x" ]; then + JAVA_OPTS="$JAVA_OPTS -Xmn${ES_HEAP_NEWSIZE}" +fi + +# max direct memory +if [ "x$ES_DIRECT_SIZE" != "x" ]; then + JAVA_OPTS="$JAVA_OPTS -XX:MaxDirectMemorySize=${ES_DIRECT_SIZE}" +fi + +# reduce the per-thread stack size +JAVA_OPTS="$JAVA_OPTS -Xss256k" + +# set to headless, just in case +JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true" + +# Force the JVM to use IPv4 stack +if [ "x$ES_USE_IPV4" != "x" ]; then + JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true" +fi + +JAVA_OPTS="$JAVA_OPTS -XX:+UseParNewGC" +JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC" + +JAVA_OPTS="$JAVA_OPTS -XX:CMSInitiatingOccupancyFraction=75" +JAVA_OPTS="$JAVA_OPTS -XX:+UseCMSInitiatingOccupancyOnly" + +# GC logging options +if [ "x$ES_USE_GC_LOGGING" != "x" ]; then + JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails" + JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCTimeStamps" + JAVA_OPTS="$JAVA_OPTS -XX:+PrintClassHistogram" + JAVA_OPTS="$JAVA_OPTS -XX:+PrintTenuringDistribution" + JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCApplicationStoppedTime" + JAVA_OPTS="$JAVA_OPTS -Xloggc:/var/log/elasticsearch/gc.log" +fi + +# Causes the JVM to dump its heap on OutOfMemory. +JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError" +# The path to the heap dump location, note directory must exists and have enough +# space for a full heap dump. +#JAVA_OPTS="$JAVA_OPTS -XX:HeapDumpPath=$ES_HOME/logs/heapdump.hprof" \ No newline at end of file diff --git a/versions/0.90.11/bin/plugin b/versions/0.90.11/bin/plugin new file mode 100755 index 0000000..a8c796a --- /dev/null +++ b/versions/0.90.11/bin/plugin @@ -0,0 +1,48 @@ +#!/bin/sh + +CDPATH="" +SCRIPT="$0" + +# SCRIPT may be an arbitrarily deep series of symlinks. Loop until we have the concrete path. +while [ -h "$SCRIPT" ] ; do + ls=`ls -ld "$SCRIPT"` + # Drop everything prior to -> + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + SCRIPT="$link" + else + SCRIPT=`dirname "$SCRIPT"`/"$link" + fi +done + +# determine elasticsearch home +ES_HOME=`dirname "$SCRIPT"`/.. + +# make ELASTICSEARCH_HOME absolute +ES_HOME=`cd "$ES_HOME"; pwd` + + +if [ -x "$JAVA_HOME/bin/java" ]; then + JAVA=$JAVA_HOME/bin/java +else + JAVA=`which java` +fi + +# real getopt cannot be used because we need to hand options over to the PluginManager +while [ $# -gt 0 ]; do + case $1 in + -D*=*) + properties="$properties $1" + ;; + -D*) + var=$1 + shift + properties="$properties $var=$1" + ;; + *) + args="$args $1" + esac + shift +done + +exec $JAVA $JAVA_OPTS -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" $properties -cp "$ES_HOME/lib/*" org.elasticsearch.plugins.PluginManager $args diff --git a/versions/0.90.11/config/elasticsearch.yml b/versions/0.90.11/config/elasticsearch.yml new file mode 100644 index 0000000..a5e41f8 --- /dev/null +++ b/versions/0.90.11/config/elasticsearch.yml @@ -0,0 +1,364 @@ +##################### ElasticSearch Configuration Example ##################### + +# This file contains an overview of various configuration settings, +# targeted at operations staff. Application developers should +# consult the guide at . +# +# The installation procedure is covered at +# . +# +# ElasticSearch comes with reasonable defaults for most settings, +# so you can try it out without bothering with configuration. +# +# Most of the time, these defaults are just fine for running a production +# cluster. If you're fine-tuning your cluster, or wondering about the +# effect of certain configuration option, please _do ask_ on the +# mailing list or IRC channel [http://elasticsearch.org/community]. + +# Any element in the configuration can be replaced with environment variables +# by placing them in ${...} notation. For example: +# +# node.rack: ${RACK_ENV_VAR} + +# For information on supported formats and syntax for the config file, see +# + + +################################### Cluster ################################### + +# Cluster name identifies your cluster for auto-discovery. If you're running +# multiple clusters on the same network, make sure you're using unique names. +# +# cluster.name: elasticsearch + + +#################################### Node ##################################### + +# Node names are generated dynamically on startup, so you're relieved +# from configuring them manually. You can tie this node to a specific name: +# +# node.name: "Franz Kafka" + +# Every node can be configured to allow or deny being eligible as the master, +# and to allow or deny to store the data. +# +# Allow this node to be eligible as a master node (enabled by default): +# +# node.master: true +# +# Allow this node to store data (enabled by default): +# +# node.data: true + +# You can exploit these settings to design advanced cluster topologies. +# +# 1. You want this node to never become a master node, only to hold data. +# This will be the "workhorse" of your cluster. +# +# node.master: false +# node.data: true +# +# 2. You want this node to only serve as a master: to not store any data and +# to have free resources. This will be the "coordinator" of your cluster. +# +# node.master: true +# node.data: false +# +# 3. You want this node to be neither master nor data node, but +# to act as a "search load balancer" (fetching data from nodes, +# aggregating results, etc.) +# +# node.master: false +# node.data: false + +# Use the Cluster Health API [http://localhost:9200/_cluster/health], the +# Node Info API [http://localhost:9200/_cluster/nodes] or GUI tools +# such as and +# to inspect the cluster state. + +# A node can have generic attributes associated with it, which can later be used +# for customized shard allocation filtering, or allocation awareness. An attribute +# is a simple key value pair, similar to node.key: value, here is an example: +# +# node.rack: rack314 + +# By default, multiple nodes are allowed to start from the same installation location +# to disable it, set the following: +# node.max_local_storage_nodes: 1 + + +#################################### Index #################################### + +# You can set a number of options (such as shard/replica options, mapping +# or analyzer definitions, translog settings, ...) for indices globally, +# in this file. +# +# Note, that it makes more sense to configure index settings specifically for +# a certain index, either when creating it or by using the index templates API. +# +# See and +# +# for more information. + +# Set the number of shards (splits) of an index (5 by default): +# +# index.number_of_shards: 5 + +# Set the number of replicas (additional copies) of an index (1 by default): +# +# index.number_of_replicas: 1 + +# Note, that for development on a local machine, with small indices, it usually +# makes sense to "disable" the distributed features: +# +# index.number_of_shards: 1 +# index.number_of_replicas: 0 + +# These settings directly affect the performance of index and search operations +# in your cluster. Assuming you have enough machines to hold shards and +# replicas, the rule of thumb is: +# +# 1. Having more *shards* enhances the _indexing_ performance and allows to +# _distribute_ a big index across machines. +# 2. Having more *replicas* enhances the _search_ performance and improves the +# cluster _availability_. +# +# The "number_of_shards" is a one-time setting for an index. +# +# The "number_of_replicas" can be increased or decreased anytime, +# by using the Index Update Settings API. +# +# ElasticSearch takes care about load balancing, relocating, gathering the +# results from nodes, etc. Experiment with different settings to fine-tune +# your setup. + +# Use the Index Status API () to inspect +# the index status. + + +#################################### Paths #################################### + +# Path to directory containing configuration (this file and logging.yml): +# +# path.conf: /path/to/conf + +# Path to directory where to store index data allocated for this node. +# +# path.data: /path/to/data +# +# Can optionally include more than one location, causing data to be striped across +# the locations (a la RAID 0) on a file level, favouring locations with most free +# space on creation. For example: +# +# path.data: /path/to/data1,/path/to/data2 + +# Path to temporary files: +# +# path.work: /path/to/work + +# Path to log files: +# +# path.logs: /path/to/logs + +# Path to where plugins are installed: +# +# path.plugins: /path/to/plugins + + +#################################### Plugin ################################### + +# If a plugin listed here is not installed for current node, the node will not start. +# +# plugin.mandatory: mapper-attachments,lang-groovy + + +################################### Memory #################################### + +# ElasticSearch performs poorly when JVM starts swapping: you should ensure that +# it _never_ swaps. +# +# Set this property to true to lock the memory: +# +# bootstrap.mlockall: true + +# Make sure that the ES_MIN_MEM and ES_MAX_MEM environment variables are set +# to the same value, and that the machine has enough memory to allocate +# for ElasticSearch, leaving enough memory for the operating system itself. +# +# You should also make sure that the ElasticSearch process is allowed to lock +# the memory, eg. by using `ulimit -l unlimited`. + + +############################## Network And HTTP ############################### + +# ElasticSearch, by default, binds itself to the 0.0.0.0 address, and listens +# on port [9200-9300] for HTTP traffic and on port [9300-9400] for node-to-node +# communication. (the range means that if the port is busy, it will automatically +# try the next port). + +# Set the bind address specifically (IPv4 or IPv6): +# +# network.bind_host: 192.168.0.1 + +# Set the address other nodes will use to communicate with this node. If not +# set, it is automatically derived. It must point to an actual IP address. +# +# network.publish_host: 192.168.0.1 + +# Set both 'bind_host' and 'publish_host': +# +# network.host: 192.168.0.1 + +# Set a custom port for the node to node communication (9300 by default): +# +# transport.tcp.port: 9300 + +# Enable compression for all communication between nodes (disabled by default): +# +# transport.tcp.compress: true + +# Set a custom port to listen for HTTP traffic: +# +# http.port: 9200 + +# Set a custom allowed content length: +# +# http.max_content_length: 100mb + +# Disable HTTP completely: +# +# http.enabled: false + + +################################### Gateway ################################### + +# The gateway allows for persisting the cluster state between full cluster +# restarts. Every change to the state (such as adding an index) will be stored +# in the gateway, and when the cluster starts up for the first time, +# it will read its state from the gateway. + +# There are several types of gateway implementations. For more information, see +# . + +# The default gateway type is the "local" gateway (recommended): +# +# gateway.type: local + +# Settings below control how and when to start the initial recovery process on +# a full cluster restart (to reuse as much local data as possible when using shared +# gateway). + +# Allow recovery process after N nodes in a cluster are up: +# +# gateway.recover_after_nodes: 1 + +# Set the timeout to initiate the recovery process, once the N nodes +# from previous setting are up (accepts time value): +# +# gateway.recover_after_time: 5m + +# Set how many nodes are expected in this cluster. Once these N nodes +# are up (and recover_after_nodes is met), begin recovery process immediately +# (without waiting for recover_after_time to expire): +# +# gateway.expected_nodes: 2 + + +############################# Recovery Throttling ############################# + +# These settings allow to control the process of shards allocation between +# nodes during initial recovery, replica allocation, rebalancing, +# or when adding and removing nodes. + +# Set the number of concurrent recoveries happening on a node: +# +# 1. During the initial recovery +# +# cluster.routing.allocation.node_initial_primaries_recoveries: 4 +# +# 2. During adding/removing nodes, rebalancing, etc +# +# cluster.routing.allocation.node_concurrent_recoveries: 2 + +# Set to throttle throughput when recovering (eg. 100mb, by default 20mb): +# +# indices.recovery.max_bytes_per_sec: 20mb + +# Set to limit the number of open concurrent streams when +# recovering a shard from a peer: +# +# indices.recovery.concurrent_streams: 5 + + +################################## Discovery ################################## + +# Discovery infrastructure ensures nodes can be found within a cluster +# and master node is elected. Multicast discovery is the default. + +# Set to ensure a node sees N other master eligible nodes to be considered +# operational within the cluster. Its recommended to set it to a higher value +# than 1 when running more than 2 nodes in the cluster. +# +# discovery.zen.minimum_master_nodes: 1 + +# Set the time to wait for ping responses from other nodes when discovering. +# Set this option to a higher value on a slow or congested network +# to minimize discovery failures: +# +# discovery.zen.ping.timeout: 3s + +# For more information, see +# + +# Unicast discovery allows to explicitly control which nodes will be used +# to discover the cluster. It can be used when multicast is not present, +# or to restrict the cluster communication-wise. +# +# 1. Disable multicast discovery (enabled by default): +# +# discovery.zen.ping.multicast.enabled: false +# +# 2. Configure an initial list of master nodes in the cluster +# to perform discovery when new nodes (master or data) are started: +# +# discovery.zen.ping.unicast.hosts: ["host1", "host2:port"] + +# EC2 discovery allows to use AWS EC2 API in order to perform discovery. +# +# You have to install the cloud-aws plugin for enabling the EC2 discovery. +# +# For more information, see +# +# +# See +# for a step-by-step tutorial. + + +################################## Slow Log ################################## + +# Shard level query and fetch threshold logging. + +#index.search.slowlog.threshold.query.warn: 10s +#index.search.slowlog.threshold.query.info: 5s +#index.search.slowlog.threshold.query.debug: 2s +#index.search.slowlog.threshold.query.trace: 500ms + +#index.search.slowlog.threshold.fetch.warn: 1s +#index.search.slowlog.threshold.fetch.info: 800ms +#index.search.slowlog.threshold.fetch.debug: 500ms +#index.search.slowlog.threshold.fetch.trace: 200ms + +#index.indexing.slowlog.threshold.index.warn: 10s +#index.indexing.slowlog.threshold.index.info: 5s +#index.indexing.slowlog.threshold.index.debug: 2s +#index.indexing.slowlog.threshold.index.trace: 500ms + +################################## GC Logging ################################ + +#monitor.jvm.gc.young.warn: 1000ms +#monitor.jvm.gc.young.info: 700ms +#monitor.jvm.gc.young.debug: 400ms + +#monitor.jvm.gc.old.warn: 10s +#monitor.jvm.gc.old.info: 5s +#monitor.jvm.gc.old.debug: 2s diff --git a/conf/logging.yml b/versions/0.90.11/config/logging.yml similarity index 100% rename from conf/logging.yml rename to versions/0.90.11/config/logging.yml diff --git a/versions/0.90.11/lib/antlr-runtime-3.5.jar b/versions/0.90.11/lib/antlr-runtime-3.5.jar new file mode 100644 index 0000000..a8b5969 Binary files /dev/null and b/versions/0.90.11/lib/antlr-runtime-3.5.jar differ diff --git a/versions/0.90.11/lib/asm-4.1.jar b/versions/0.90.11/lib/asm-4.1.jar new file mode 100644 index 0000000..4ede5c9 Binary files /dev/null and b/versions/0.90.11/lib/asm-4.1.jar differ diff --git a/versions/0.90.11/lib/asm-commons-4.1.jar b/versions/0.90.11/lib/asm-commons-4.1.jar new file mode 100644 index 0000000..6d95f2c Binary files /dev/null and b/versions/0.90.11/lib/asm-commons-4.1.jar differ diff --git a/versions/0.90.11/lib/elasticsearch-0.90.11-SNAPSHOT.jar b/versions/0.90.11/lib/elasticsearch-0.90.11-SNAPSHOT.jar new file mode 100644 index 0000000..6661090 Binary files /dev/null and b/versions/0.90.11/lib/elasticsearch-0.90.11-SNAPSHOT.jar differ diff --git a/usr/lib/jna-3.3.0.jar b/versions/0.90.11/lib/jna-3.3.0.jar similarity index 100% rename from usr/lib/jna-3.3.0.jar rename to versions/0.90.11/lib/jna-3.3.0.jar diff --git a/usr/lib/jts-1.12.jar b/versions/0.90.11/lib/jts-1.12.jar similarity index 100% rename from usr/lib/jts-1.12.jar rename to versions/0.90.11/lib/jts-1.12.jar diff --git a/usr/lib/log4j-1.2.17.jar b/versions/0.90.11/lib/log4j-1.2.17.jar similarity index 100% rename from usr/lib/log4j-1.2.17.jar rename to versions/0.90.11/lib/log4j-1.2.17.jar diff --git a/usr/lib/lucene-analyzers-common-4.6.0.jar b/versions/0.90.11/lib/lucene-analyzers-common-4.6.0.jar similarity index 100% rename from usr/lib/lucene-analyzers-common-4.6.0.jar rename to versions/0.90.11/lib/lucene-analyzers-common-4.6.0.jar diff --git a/usr/lib/lucene-codecs-4.6.0.jar b/versions/0.90.11/lib/lucene-codecs-4.6.0.jar similarity index 100% rename from usr/lib/lucene-codecs-4.6.0.jar rename to versions/0.90.11/lib/lucene-codecs-4.6.0.jar diff --git a/usr/lib/lucene-core-4.6.0.jar b/versions/0.90.11/lib/lucene-core-4.6.0.jar similarity index 100% rename from usr/lib/lucene-core-4.6.0.jar rename to versions/0.90.11/lib/lucene-core-4.6.0.jar diff --git a/versions/0.90.11/lib/lucene-expressions-4.6.0.jar b/versions/0.90.11/lib/lucene-expressions-4.6.0.jar new file mode 100644 index 0000000..5bd96be Binary files /dev/null and b/versions/0.90.11/lib/lucene-expressions-4.6.0.jar differ diff --git a/usr/lib/lucene-grouping-4.6.0.jar b/versions/0.90.11/lib/lucene-grouping-4.6.0.jar similarity index 100% rename from usr/lib/lucene-grouping-4.6.0.jar rename to versions/0.90.11/lib/lucene-grouping-4.6.0.jar diff --git a/usr/lib/lucene-highlighter-4.6.0.jar b/versions/0.90.11/lib/lucene-highlighter-4.6.0.jar similarity index 100% rename from usr/lib/lucene-highlighter-4.6.0.jar rename to versions/0.90.11/lib/lucene-highlighter-4.6.0.jar diff --git a/usr/lib/lucene-join-4.6.0.jar b/versions/0.90.11/lib/lucene-join-4.6.0.jar similarity index 100% rename from usr/lib/lucene-join-4.6.0.jar rename to versions/0.90.11/lib/lucene-join-4.6.0.jar diff --git a/usr/lib/lucene-memory-4.6.0.jar b/versions/0.90.11/lib/lucene-memory-4.6.0.jar similarity index 100% rename from usr/lib/lucene-memory-4.6.0.jar rename to versions/0.90.11/lib/lucene-memory-4.6.0.jar diff --git a/usr/lib/lucene-misc-4.6.0.jar b/versions/0.90.11/lib/lucene-misc-4.6.0.jar similarity index 100% rename from usr/lib/lucene-misc-4.6.0.jar rename to versions/0.90.11/lib/lucene-misc-4.6.0.jar diff --git a/usr/lib/lucene-queries-4.6.0.jar b/versions/0.90.11/lib/lucene-queries-4.6.0.jar similarity index 100% rename from usr/lib/lucene-queries-4.6.0.jar rename to versions/0.90.11/lib/lucene-queries-4.6.0.jar diff --git a/usr/lib/lucene-queryparser-4.6.0.jar b/versions/0.90.11/lib/lucene-queryparser-4.6.0.jar similarity index 100% rename from usr/lib/lucene-queryparser-4.6.0.jar rename to versions/0.90.11/lib/lucene-queryparser-4.6.0.jar diff --git a/usr/lib/lucene-sandbox-4.6.0.jar b/versions/0.90.11/lib/lucene-sandbox-4.6.0.jar similarity index 100% rename from usr/lib/lucene-sandbox-4.6.0.jar rename to versions/0.90.11/lib/lucene-sandbox-4.6.0.jar diff --git a/usr/lib/lucene-spatial-4.6.0.jar b/versions/0.90.11/lib/lucene-spatial-4.6.0.jar similarity index 100% rename from usr/lib/lucene-spatial-4.6.0.jar rename to versions/0.90.11/lib/lucene-spatial-4.6.0.jar diff --git a/usr/lib/lucene-suggest-4.6.0.jar b/versions/0.90.11/lib/lucene-suggest-4.6.0.jar similarity index 100% rename from usr/lib/lucene-suggest-4.6.0.jar rename to versions/0.90.11/lib/lucene-suggest-4.6.0.jar diff --git a/versions/0.90.11/lib/sigar/libsigar-amd64-freebsd-6.so b/versions/0.90.11/lib/sigar/libsigar-amd64-freebsd-6.so new file mode 100644 index 0000000..3e94f0d Binary files /dev/null and b/versions/0.90.11/lib/sigar/libsigar-amd64-freebsd-6.so differ diff --git a/usr/lib/sigar/libsigar-amd64-linux.so b/versions/0.90.11/lib/sigar/libsigar-amd64-linux.so similarity index 100% rename from usr/lib/sigar/libsigar-amd64-linux.so rename to versions/0.90.11/lib/sigar/libsigar-amd64-linux.so diff --git a/versions/0.90.11/lib/sigar/libsigar-amd64-solaris.so b/versions/0.90.11/lib/sigar/libsigar-amd64-solaris.so new file mode 100644 index 0000000..6396482 Binary files /dev/null and b/versions/0.90.11/lib/sigar/libsigar-amd64-solaris.so differ diff --git a/usr/lib/sigar/libsigar-ia64-linux.so b/versions/0.90.11/lib/sigar/libsigar-ia64-linux.so similarity index 100% rename from usr/lib/sigar/libsigar-ia64-linux.so rename to versions/0.90.11/lib/sigar/libsigar-ia64-linux.so diff --git a/versions/0.90.11/lib/sigar/libsigar-sparc-solaris.so b/versions/0.90.11/lib/sigar/libsigar-sparc-solaris.so new file mode 100644 index 0000000..aa847d2 Binary files /dev/null and b/versions/0.90.11/lib/sigar/libsigar-sparc-solaris.so differ diff --git a/versions/0.90.11/lib/sigar/libsigar-sparc64-solaris.so b/versions/0.90.11/lib/sigar/libsigar-sparc64-solaris.so new file mode 100644 index 0000000..6c4fe80 Binary files /dev/null and b/versions/0.90.11/lib/sigar/libsigar-sparc64-solaris.so differ diff --git a/versions/0.90.11/lib/sigar/libsigar-universal-macosx.dylib b/versions/0.90.11/lib/sigar/libsigar-universal-macosx.dylib new file mode 100644 index 0000000..27ab107 Binary files /dev/null and b/versions/0.90.11/lib/sigar/libsigar-universal-macosx.dylib differ diff --git a/versions/0.90.11/lib/sigar/libsigar-universal64-macosx.dylib b/versions/0.90.11/lib/sigar/libsigar-universal64-macosx.dylib new file mode 100644 index 0000000..0c721fe Binary files /dev/null and b/versions/0.90.11/lib/sigar/libsigar-universal64-macosx.dylib differ diff --git a/versions/0.90.11/lib/sigar/libsigar-x86-freebsd-5.so b/versions/0.90.11/lib/sigar/libsigar-x86-freebsd-5.so new file mode 100644 index 0000000..8c50c61 Binary files /dev/null and b/versions/0.90.11/lib/sigar/libsigar-x86-freebsd-5.so differ diff --git a/versions/0.90.11/lib/sigar/libsigar-x86-freebsd-6.so b/versions/0.90.11/lib/sigar/libsigar-x86-freebsd-6.so new file mode 100644 index 0000000..f080027 Binary files /dev/null and b/versions/0.90.11/lib/sigar/libsigar-x86-freebsd-6.so differ diff --git a/usr/lib/sigar/libsigar-x86-linux.so b/versions/0.90.11/lib/sigar/libsigar-x86-linux.so similarity index 100% rename from usr/lib/sigar/libsigar-x86-linux.so rename to versions/0.90.11/lib/sigar/libsigar-x86-linux.so diff --git a/versions/0.90.11/lib/sigar/libsigar-x86-solaris.so b/versions/0.90.11/lib/sigar/libsigar-x86-solaris.so new file mode 100644 index 0000000..c6452e5 Binary files /dev/null and b/versions/0.90.11/lib/sigar/libsigar-x86-solaris.so differ diff --git a/usr/lib/sigar/sigar-1.6.4.jar b/versions/0.90.11/lib/sigar/sigar-1.6.4.jar similarity index 100% rename from usr/lib/sigar/sigar-1.6.4.jar rename to versions/0.90.11/lib/sigar/sigar-1.6.4.jar diff --git a/usr/lib/spatial4j-0.3.jar b/versions/0.90.11/lib/spatial4j-0.3.jar similarity index 100% rename from usr/lib/spatial4j-0.3.jar rename to versions/0.90.11/lib/spatial4j-0.3.jar diff --git a/usr/bin/elasticsearch b/versions/1.0.0.RC1/bin/elasticsearch similarity index 100% rename from usr/bin/elasticsearch rename to versions/1.0.0.RC1/bin/elasticsearch diff --git a/usr/bin/elasticsearch.in.sh b/versions/1.0.0.RC1/bin/elasticsearch.in.sh similarity index 100% rename from usr/bin/elasticsearch.in.sh rename to versions/1.0.0.RC1/bin/elasticsearch.in.sh diff --git a/usr/bin/plugin b/versions/1.0.0.RC1/bin/plugin similarity index 100% rename from usr/bin/plugin rename to versions/1.0.0.RC1/bin/plugin diff --git a/usr/lib/elasticsearch-1.0.0.RC1-SNAPSHOT.jar b/versions/1.0.0.RC1/lib/elasticsearch-1.0.0.RC1-SNAPSHOT.jar similarity index 100% rename from usr/lib/elasticsearch-1.0.0.RC1-SNAPSHOT.jar rename to versions/1.0.0.RC1/lib/elasticsearch-1.0.0.RC1-SNAPSHOT.jar diff --git a/versions/1.0.0.RC1/lib/jna-3.3.0.jar b/versions/1.0.0.RC1/lib/jna-3.3.0.jar new file mode 100644 index 0000000..57f31c3 Binary files /dev/null and b/versions/1.0.0.RC1/lib/jna-3.3.0.jar differ diff --git a/versions/1.0.0.RC1/lib/jts-1.12.jar b/versions/1.0.0.RC1/lib/jts-1.12.jar new file mode 100644 index 0000000..1941da5 Binary files /dev/null and b/versions/1.0.0.RC1/lib/jts-1.12.jar differ diff --git a/versions/1.0.0.RC1/lib/log4j-1.2.17.jar b/versions/1.0.0.RC1/lib/log4j-1.2.17.jar new file mode 100644 index 0000000..1d425cf Binary files /dev/null and b/versions/1.0.0.RC1/lib/log4j-1.2.17.jar differ diff --git a/versions/1.0.0.RC1/lib/lucene-analyzers-common-4.6.0.jar b/versions/1.0.0.RC1/lib/lucene-analyzers-common-4.6.0.jar new file mode 100644 index 0000000..8306ed7 Binary files /dev/null and b/versions/1.0.0.RC1/lib/lucene-analyzers-common-4.6.0.jar differ diff --git a/versions/1.0.0.RC1/lib/lucene-codecs-4.6.0.jar b/versions/1.0.0.RC1/lib/lucene-codecs-4.6.0.jar new file mode 100644 index 0000000..4966e2b Binary files /dev/null and b/versions/1.0.0.RC1/lib/lucene-codecs-4.6.0.jar differ diff --git a/versions/1.0.0.RC1/lib/lucene-core-4.6.0.jar b/versions/1.0.0.RC1/lib/lucene-core-4.6.0.jar new file mode 100644 index 0000000..a71f9d3 Binary files /dev/null and b/versions/1.0.0.RC1/lib/lucene-core-4.6.0.jar differ diff --git a/versions/1.0.0.RC1/lib/lucene-grouping-4.6.0.jar b/versions/1.0.0.RC1/lib/lucene-grouping-4.6.0.jar new file mode 100644 index 0000000..d644e5f Binary files /dev/null and b/versions/1.0.0.RC1/lib/lucene-grouping-4.6.0.jar differ diff --git a/versions/1.0.0.RC1/lib/lucene-highlighter-4.6.0.jar b/versions/1.0.0.RC1/lib/lucene-highlighter-4.6.0.jar new file mode 100644 index 0000000..2458522 Binary files /dev/null and b/versions/1.0.0.RC1/lib/lucene-highlighter-4.6.0.jar differ diff --git a/versions/1.0.0.RC1/lib/lucene-join-4.6.0.jar b/versions/1.0.0.RC1/lib/lucene-join-4.6.0.jar new file mode 100644 index 0000000..0894613 Binary files /dev/null and b/versions/1.0.0.RC1/lib/lucene-join-4.6.0.jar differ diff --git a/versions/1.0.0.RC1/lib/lucene-memory-4.6.0.jar b/versions/1.0.0.RC1/lib/lucene-memory-4.6.0.jar new file mode 100644 index 0000000..0f536dd Binary files /dev/null and b/versions/1.0.0.RC1/lib/lucene-memory-4.6.0.jar differ diff --git a/versions/1.0.0.RC1/lib/lucene-misc-4.6.0.jar b/versions/1.0.0.RC1/lib/lucene-misc-4.6.0.jar new file mode 100644 index 0000000..1495da9 Binary files /dev/null and b/versions/1.0.0.RC1/lib/lucene-misc-4.6.0.jar differ diff --git a/versions/1.0.0.RC1/lib/lucene-queries-4.6.0.jar b/versions/1.0.0.RC1/lib/lucene-queries-4.6.0.jar new file mode 100644 index 0000000..f990104 Binary files /dev/null and b/versions/1.0.0.RC1/lib/lucene-queries-4.6.0.jar differ diff --git a/versions/1.0.0.RC1/lib/lucene-queryparser-4.6.0.jar b/versions/1.0.0.RC1/lib/lucene-queryparser-4.6.0.jar new file mode 100644 index 0000000..56cbe60 Binary files /dev/null and b/versions/1.0.0.RC1/lib/lucene-queryparser-4.6.0.jar differ diff --git a/versions/1.0.0.RC1/lib/lucene-sandbox-4.6.0.jar b/versions/1.0.0.RC1/lib/lucene-sandbox-4.6.0.jar new file mode 100644 index 0000000..042ca84 Binary files /dev/null and b/versions/1.0.0.RC1/lib/lucene-sandbox-4.6.0.jar differ diff --git a/versions/1.0.0.RC1/lib/lucene-spatial-4.6.0.jar b/versions/1.0.0.RC1/lib/lucene-spatial-4.6.0.jar new file mode 100644 index 0000000..934fd3b Binary files /dev/null and b/versions/1.0.0.RC1/lib/lucene-spatial-4.6.0.jar differ diff --git a/versions/1.0.0.RC1/lib/lucene-suggest-4.6.0.jar b/versions/1.0.0.RC1/lib/lucene-suggest-4.6.0.jar new file mode 100644 index 0000000..1a55946 Binary files /dev/null and b/versions/1.0.0.RC1/lib/lucene-suggest-4.6.0.jar differ diff --git a/versions/1.0.0.RC1/lib/sigar/libsigar-amd64-linux.so b/versions/1.0.0.RC1/lib/sigar/libsigar-amd64-linux.so new file mode 100644 index 0000000..5a2e4c2 Binary files /dev/null and b/versions/1.0.0.RC1/lib/sigar/libsigar-amd64-linux.so differ diff --git a/versions/1.0.0.RC1/lib/sigar/libsigar-ia64-linux.so b/versions/1.0.0.RC1/lib/sigar/libsigar-ia64-linux.so new file mode 100644 index 0000000..2bd2fc8 Binary files /dev/null and b/versions/1.0.0.RC1/lib/sigar/libsigar-ia64-linux.so differ diff --git a/versions/1.0.0.RC1/lib/sigar/libsigar-x86-linux.so b/versions/1.0.0.RC1/lib/sigar/libsigar-x86-linux.so new file mode 100644 index 0000000..a0b64ed Binary files /dev/null and b/versions/1.0.0.RC1/lib/sigar/libsigar-x86-linux.so differ diff --git a/versions/1.0.0.RC1/lib/sigar/sigar-1.6.4.jar b/versions/1.0.0.RC1/lib/sigar/sigar-1.6.4.jar new file mode 100644 index 0000000..58c733c Binary files /dev/null and b/versions/1.0.0.RC1/lib/sigar/sigar-1.6.4.jar differ diff --git a/versions/1.0.0.RC1/lib/spatial4j-0.3.jar b/versions/1.0.0.RC1/lib/spatial4j-0.3.jar new file mode 100644 index 0000000..56f68b4 Binary files /dev/null and b/versions/1.0.0.RC1/lib/spatial4j-0.3.jar differ diff --git a/conf/elasticsearch.yml b/versions/shared/conf/elasticsearch.yml similarity index 100% rename from conf/elasticsearch.yml rename to versions/shared/conf/elasticsearch.yml diff --git a/versions/shared/conf/logging.yml b/versions/shared/conf/logging.yml new file mode 100644 index 0000000..9e00d01 --- /dev/null +++ b/versions/shared/conf/logging.yml @@ -0,0 +1,56 @@ +# you can override this using by setting a system property, for example -Des.logger.level=DEBUG +es.logger.level: INFO +rootLogger: ${es.logger.level}, console, file +logger: + # log action execution errors for easier debugging + action: DEBUG + # reduce the logging for aws, too much is logged under the default INFO + com.amazonaws: WARN + + # gateway + #gateway: DEBUG + #index.gateway: DEBUG + + # peer shard recovery + #indices.recovery: DEBUG + + # discovery + #discovery: TRACE + + index.search.slowlog: TRACE, index_search_slow_log_file + index.indexing.slowlog: TRACE, index_indexing_slow_log_file + +additivity: + index.search.slowlog: false + index.indexing.slowlog: false + +appender: + console: + type: console + layout: + type: consolePattern + conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" + + file: + type: dailyRollingFile + file: ${path.logs}/${cluster.name}.log + datePattern: "'.'yyyy-MM-dd" + layout: + type: pattern + conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" + + index_search_slow_log_file: + type: dailyRollingFile + file: ${path.logs}/${cluster.name}_index_search_slowlog.log + datePattern: "'.'yyyy-MM-dd" + layout: + type: pattern + conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" + + index_indexing_slow_log_file: + type: dailyRollingFile + file: ${path.logs}/${cluster.name}_index_indexing_slowlog.log + datePattern: "'.'yyyy-MM-dd" + layout: + type: pattern + conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"