GithubHelp home page GithubHelp logo

isabella232 / found-shield-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elastic/found-shield-example

0.0 0.0 0.0 55 KB

Elastic Cloud Shield Transport Example

License: Apache License 2.0

Java 100.00%

found-shield-example's Introduction

Elastic Cloud X-Pack Transport Example

Note: The Elasticsearch transport client is officially deprecated in 7.0.0 and we highly recommend for users to move to the high level Java REST client.

Elasticsearch version Branch
7.x master
6.x 6.x
5.x 5.x
2.x 2.x

Running

To run the example use mvn exec:java:

$ mvn compile exec:java -Dhost=YOUR_CLUSTER_ID.REGION.aws.found.io -Dxpack.security.user='username:password'

Replace YOUR_CLUSTER_ID with your cluster id and REGION with the region the cluster is started in.

Package

If you want to build an uber-jar, a package which contains the code and all of the dependencies, use the following command:

$ mvn compile assembly:single

The package will be build under target/transport-example-VERSION-jar-with-dependencies.jar.

Then you can run it:

$ java -Dhost=YOUR_CLUSTER_ID.REGION.aws.found.io -Dxpack.security.user='username:password' -jar target/transport-example-VERSION-jar-with-dependencies.jar

IPv4 / IPv6

By default, if IPv4 and IPv6 are both enabled then it is undetermined which will be used. The system properties -Dip4=true|false and -Dip6=true|false can be used to turn them on/off explicitly. If they are enabled then the network/host should support routing to the Cloud endpoint, e.g. this is not the case within Docker containers by default).

found-shield-example's People

Contributors

a-hall avatar alexp-elastic avatar beiske avatar franekrichardson avatar igor-kupczynski avatar joegallo avatar mieciu avatar mike-solomon avatar nkvoll avatar xuzha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.