elasticsearch-test | elasticsearch-test , a framework | Unit Testing library
kandi X-RAY | elasticsearch-test Summary
kandi X-RAY | elasticsearch-test Summary
elasticsearch-test, a framework that makes elasticsearch unit testing a breeze.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of elasticsearch-test
elasticsearch-test Key Features
elasticsearch-test Examples and Code Snippets
Community Discussions
Trending Discussions on elasticsearch-test
QUESTION
I'm learning Spring Data Elasticsearch and Testcontainers. As a first step, I'm trying to run the docker image for Elasticsearch with Testcontainers, but I just spent a whole day yet cannot get it working.
Here is the test class body:
...ANSWER
Answered 2020-Oct-02 at 10:33Try to change:
QUESTION
I am using the Amazon Kinesis Data Generator to send data to a test Kinesis Firehose Stream for indexing in an Elasticsearch Service cluster.
The data generator sends a fairly basic json doc for processing, the stream element works fine, as does the Lambda transformation. I've verified and been able to test everything up to this point. It's only when the request is made to Elasticsearch inside my VPC that I get an error.
It works fine if I switch the pipeline to use a public Elasticsearch domain, but when I use the Elasticsearch domain inside my VPC, I get a 503 error. This is a consistent error on every single request so not a capacity issue.
Here's an example of the error I'm seeing. Just a generic 503. I'm not sure if this is coming from the load balancer or the target (Elasticsearch itself).
...ANSWER
Answered 2020-Oct-13 at 13:46So after a few days of pain I realised my mistake/quirk of Firehose set up.
My Elasticsearch cluster is Multi-AZ. When creating the Firehose, I was just letting it choose the default Security Groups based on the pre-existing Elasticsearch Domain. I only had one security group defined on the Firehose. It needs two if your Elasticsearch is in a VPC.
- One for Firehose outbound
- One for Elasticsearch inbound (you probably already have this)
Then they need to be joined together using the SG rules.
The Firehose Delivery Stream setup wizard will not warn you that you only have one security group and that this won't work. (Perhaps it would work for an Elasticsearch Domain on a single-AZ but I haven't tested.)
You must create the two required Security Groups before you create the Firehose Delivery Stream.
Create the first Security Group for the Firehose endpoint allowing HTTPS/433 outbound traffic. Then make sure the Elasticsearch Domain Security Group allows inbound HTTPS/433 traffic, specifically from the Firehose endpoint Security Group you just created.
Here is a diagram of what is needed (from this blog post: Ingest streaming data into Amazon Elasticsearch Service within the privacy of your VPC with Amazon Kinesis Data Firehose)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install elasticsearch-test
You can use elasticsearch-test like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the elasticsearch-test component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page