2013-04-02 12:16:30 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2014-01-15 10:11:53 -05:00
|
|
|
<!-- Licensed to Elasticsearch under one or more contributor
|
2013-04-02 12:16:30 -04:00
|
|
|
license agreements. See the NOTICE file distributed with this work for additional
|
|
|
|
information regarding copyright ownership. ElasticSearch licenses this file to you
|
|
|
|
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. -->
|
|
|
|
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch-cloud-azure</artifactId>
|
2014-03-17 14:42:05 -04:00
|
|
|
<version>2.2.0-SNAPSHOT</version>
|
2013-04-02 12:16:30 -04:00
|
|
|
<packaging>jar</packaging>
|
2014-03-13 10:35:00 -04:00
|
|
|
<name>Elasticsearch Azure cloud plugin</name>
|
2014-03-17 14:36:18 -04:00
|
|
|
<description>The Azure Cloud plugin allows to use Azure API for the unicast discovery mechanism and add Azure storage repositories.</description>
|
2014-03-13 10:35:00 -04:00
|
|
|
<url>https://github.com/elasticsearch/elasticsearch-cloud-azure/</url>
|
2013-04-02 12:16:30 -04:00
|
|
|
<inceptionYear>2013</inceptionYear>
|
|
|
|
<licenses>
|
|
|
|
<license>
|
|
|
|
<name>The Apache Software License, Version 2.0</name>
|
|
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
|
|
|
<distribution>repo</distribution>
|
|
|
|
</license>
|
|
|
|
</licenses>
|
|
|
|
<scm>
|
|
|
|
<connection>scm:git:git@github.com:elasticsearch/elasticsearch-cloud-azure.git</connection>
|
|
|
|
<developerConnection>scm:git:git@github.com:elasticsearch/elasticsearch-cloud-azure.git
|
|
|
|
</developerConnection>
|
|
|
|
<url>http://github.com/elasticsearch/elasticsearch-cloud-azure</url>
|
|
|
|
</scm>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.sonatype.oss</groupId>
|
|
|
|
<artifactId>oss-parent</artifactId>
|
|
|
|
<version>7</version>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<properties>
|
2014-02-14 12:33:45 -05:00
|
|
|
<elasticsearch.version>1.0.0</elasticsearch.version>
|
|
|
|
<lucene.version>4.6.1</lucene.version>
|
2014-01-06 17:28:22 -05:00
|
|
|
<tests.output>onerror</tests.output>
|
|
|
|
<tests.jvms>1</tests.jvms>
|
|
|
|
<tests.shuffle>true</tests.shuffle>
|
|
|
|
<tests.output>onerror</tests.output>
|
|
|
|
<tests.client.ratio></tests.client.ratio>
|
|
|
|
<tests.jvm.argline></tests.jvm.argline>
|
|
|
|
<es.logger.level>INFO</es.logger.level>
|
2014-01-15 10:29:55 -05:00
|
|
|
<es.config>${project.build.testOutputDirectory}/elasticsearch.yml</es.config>
|
2013-04-02 12:16:30 -04:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
2014-01-06 17:28:22 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.lucene</groupId>
|
|
|
|
<artifactId>lucene-test-framework</artifactId>
|
|
|
|
<version>${lucene.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
2013-04-02 12:16:30 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch</artifactId>
|
|
|
|
<version>${elasticsearch.version}</version>
|
|
|
|
</dependency>
|
Add Azure Storage repository
elasticsearch 1.0 will provide a new feature named `Snapshot & Restore`.
We want to add support for [Azure Storage](http://www.windowsazure.com/en-us/documentation/services/storage/).
To enable Azure repositories, you have first to set your azure storage settings:
```yaml
cloud:
azure:
storage_account: your_azure_storage_account
storage_key: your_azure_storage_key
```
The Azure repository supports following settings:
* `container`: Container name. Defaults to `elasticsearch-snapshots`
* `base_path`: Specifies the path within container to repository data. Defaults to empty (root directory).
* `concurrent_streams`: Throttles the number of streams (per node) preforming snapshot operation. Defaults to `5`.
* `chunk_size`: Big files can be broken down into chunks during snapshotting if needed. The chunk size can be specified
in bytes or by using size value notation, i.e. `1g`, `10m`, `5k`. Defaults to `64m` (64m max)
* `compress`: When set to `true` metadata files are stored in compressed format. This setting doesn't affect index
files that are already compressed by default. Defaults to `false`.
Some examples, using scripts:
```sh
$ curl -XPUT 'http://localhost:9200/_snapshot/my_backup1' -d '{
"type": "azure"
}'
$ curl -XPUT 'http://localhost:9200/_snapshot/my_backup2' -d '{
"type": "azure",
"settings": {
"container": "backup_container",
"base_path": "backups",
"concurrent_streams": 2,
"chunk_size": "32m",
"compress": true
}
}'
```
Example using Java:
```java
client.admin().cluster().preparePutRepository("my_backup3")
.setType("azure").setSettings(ImmutableSettings.settingsBuilder()
.put(AzureStorageService.Fields.CONTAINER, "backup_container")
.put(AzureStorageService.Fields.CHUNK_SIZE, new ByteSizeValue(32, ByteSizeUnit.MB))
).get();
```
Closes #2.
2014-01-06 17:14:34 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.microsoft.windowsazure</groupId>
|
|
|
|
<artifactId>microsoft-windowsazure-api</artifactId>
|
|
|
|
<version>0.4.5</version>
|
|
|
|
</dependency>
|
2013-04-02 12:16:30 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
<artifactId>log4j</artifactId>
|
|
|
|
<version>1.2.17</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2014-01-06 17:28:22 -05:00
|
|
|
<groupId>org.elasticsearch</groupId>
|
|
|
|
<artifactId>elasticsearch</artifactId>
|
|
|
|
<version>${elasticsearch.version}</version>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.hamcrest</groupId>
|
|
|
|
<artifactId>hamcrest-core</artifactId>
|
|
|
|
<version>1.3.RC2</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.hamcrest</groupId>
|
|
|
|
<artifactId>hamcrest-library</artifactId>
|
|
|
|
<version>1.3.RC2</version>
|
2013-04-02 12:16:30 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
<testResources>
|
|
|
|
<testResource>
|
|
|
|
<directory>src/test/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</testResource>
|
|
|
|
</testResources>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<version>3.0</version>
|
|
|
|
<configuration>
|
|
|
|
<source>1.6</source>
|
|
|
|
<target>1.6</target>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2014-01-06 17:28:22 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>com.carrotsearch.randomizedtesting</groupId>
|
|
|
|
<artifactId>junit4-maven-plugin</artifactId>
|
|
|
|
<version>2.0.14</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>tests</id>
|
|
|
|
<phase>test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>junit4</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<heartbeat>20</heartbeat>
|
|
|
|
<jvmOutputAction>pipe,warn</jvmOutputAction>
|
|
|
|
<leaveTemporary>true</leaveTemporary>
|
|
|
|
<listeners>
|
|
|
|
<report-ant-xml mavenExtensions="true"
|
|
|
|
dir="${project.build.directory}/surefire-reports"/>
|
|
|
|
<report-text
|
|
|
|
showThrowable="true"
|
|
|
|
showStackTraces="true"
|
|
|
|
showOutput="${tests.output}"
|
|
|
|
showStatusOk="false"
|
|
|
|
showStatusError="true"
|
|
|
|
showStatusFailure="true"
|
|
|
|
showStatusIgnored="true"
|
|
|
|
showSuiteSummary="true"
|
|
|
|
timestamps="false"/>
|
|
|
|
<report-execution-times file="${basedir}/.local-execution-hints.log"/>
|
|
|
|
</listeners>
|
|
|
|
<assertions>
|
|
|
|
<enable/>
|
|
|
|
</assertions>
|
|
|
|
<parallelism>${tests.jvms}</parallelism>
|
|
|
|
<balancers>
|
|
|
|
<execution-times>
|
|
|
|
<fileset dir="${basedir}" includes=".local-execution-hints.log"/>
|
|
|
|
</execution-times>
|
|
|
|
</balancers>
|
|
|
|
<includes>
|
|
|
|
<include>**/*Tests.class</include>
|
|
|
|
<include>**/*Test.class</include>
|
|
|
|
</includes>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/Abstract*.class</exclude>
|
|
|
|
<exclude>**/*StressTest.class</exclude>
|
|
|
|
</excludes>
|
|
|
|
<argLine>
|
|
|
|
${tests.jvm.argline}
|
|
|
|
</argLine>
|
|
|
|
<jvmArgs>
|
|
|
|
<param>-Xmx512m</param>
|
|
|
|
<param>-Xss256k</param>
|
|
|
|
<param>-XX:MaxDirectMemorySize=512m</param>
|
|
|
|
<param>-Des.logger.prefix=</param>
|
|
|
|
</jvmArgs>
|
|
|
|
<shuffleOnSlave>${tests.shuffle}</shuffleOnSlave>
|
|
|
|
<sysouts>${tests.verbose}</sysouts>
|
|
|
|
<seed>${tests.seed}</seed>
|
|
|
|
<haltOnFailure>${tests.failfast}</haltOnFailure>
|
|
|
|
<systemProperties>
|
|
|
|
<!-- RandomizedTesting library system properties -->
|
|
|
|
<tests.jvm.argline>${tests.jvm.argline}</tests.jvm.argline>
|
|
|
|
<tests.iters>${tests.iters}</tests.iters>
|
|
|
|
<tests.maxfailures>${tests.maxfailures}</tests.maxfailures>
|
|
|
|
<tests.failfast>${tests.failfast}</tests.failfast>
|
|
|
|
<tests.class>${tests.class}</tests.class>
|
|
|
|
<tests.method>${tests.method}</tests.method>
|
|
|
|
<tests.nightly>${tests.nightly}</tests.nightly>
|
|
|
|
<tests.badapples>${tests.badapples}</tests.badapples>
|
|
|
|
<tests.weekly>${tests.weekly}</tests.weekly>
|
|
|
|
<tests.slow>${tests.slow}</tests.slow>
|
|
|
|
<tests.azure>${tests.azure}</tests.azure>
|
|
|
|
<tests.awaitsfix>${tests.awaitsfix}</tests.awaitsfix>
|
|
|
|
<tests.slow>${tests.slow}</tests.slow>
|
|
|
|
<tests.timeoutSuite>${tests.timeoutSuite}</tests.timeoutSuite>
|
|
|
|
<tests.showSuccess>${tests.showSuccess}</tests.showSuccess>
|
|
|
|
<tests.integration>${tests.integration}</tests.integration>
|
|
|
|
<tests.cluster_seed>${tests.cluster_seed}</tests.cluster_seed>
|
|
|
|
<tests.client.ratio>${tests.client.ratio}</tests.client.ratio>
|
|
|
|
<es.node.local>${env.ES_TEST_LOCAL}</es.node.local>
|
|
|
|
<es.node.mode>${es.node.mode}</es.node.mode>
|
|
|
|
<es.config>${es.config}</es.config>
|
|
|
|
<es.logger.level>${es.logger.level}</es.logger.level>
|
|
|
|
<java.awt.headless>true</java.awt.headless>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2013-04-02 12:16:30 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>2.13</version>
|
2014-01-06 17:28:22 -05:00
|
|
|
<configuration>
|
|
|
|
<skip>true</skip>
|
|
|
|
</configuration>
|
2013-04-02 12:16:30 -04:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
<version>2.2.1</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-sources</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<version>2.4</version>
|
|
|
|
<configuration>
|
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
|
<outputDirectory>${project.build.directory}/releases/</outputDirectory>
|
|
|
|
<descriptors>
|
|
|
|
<descriptor>${basedir}/src/main/assemblies/plugin.xml</descriptor>
|
|
|
|
</descriptors>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</project>
|