-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created SDK Client to interact with OpenSearch #67
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to decide what connection and authentication protocols we want to use so we can build this securely from the start.
2439fac
to
c16f6bf
Compare
*/ | ||
public OpenSearchClient createClient(String hostAddress, int port) throws IOException { | ||
RestClientBuilder builder = RestClient.builder(new HttpHost(hostAddress, port)); | ||
builder.setStrictDeprecationMode(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious, what does this do?
Side note: I could only find elasticsearch documentation[1].
@VachaShah
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
623836f
to
e0a24cf
Compare
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'm still a bit confused on the client naming stuff, but that can be clarified in later PRs.
Signed-off-by: Owais Kazi <[email protected]>
Is it strange that the SDK depends on the Java client? 🤔 Would the Java client itself ever want to use the SDK? |
@dblock thats a good question. Do you think the java client would ever need to use the SDK? |
I can't come up with an example, I came from an angle of wanting the SDK to have its dependencies to a minimum, but I suppose until I have a good reason things should remain as is ;) |
* Integrated SDK Client to make request to OpenSearch Signed-off-by: Owais Kazi <[email protected]> * Added test and restructure SDK Signed-off-by: Owais Kazi <[email protected]> * Added license Signed-off-by: Owais Kazi <[email protected]> * Send config from initial request Signed-off-by: Owais Kazi <[email protected]> * Utilized the hostaddress and port from extension initialize request Signed-off-by: Owais Kazi <[email protected]> * Integrated SDK Client to make request to OpenSearch Signed-off-by: Owais Kazi <[email protected]> * Added test and restructure SDK Signed-off-by: Owais Kazi <[email protected]> * Removed security related attributes Signed-off-by: Owais Kazi <[email protected]> * Updated branch Signed-off-by: Owais Kazi <[email protected]> * PR comments Signed-off-by: Owais Kazi <[email protected]> * Changed the method name Signed-off-by: Owais Kazi <[email protected]> * Small changes Signed-off-by: Owais Kazi <[email protected]> Signed-off-by: Owais Kazi <[email protected]>
Description
Created SDK Client to interact with OpenSearch for request calls required by the extensions. Once #20 is done, the next step would be to integrate SDK with the
feature/extensions
branch of AD to convert the AD plugin to extension. This client will help us to make the API calls from AD extension to OpenSearch.Build will fail as opensearch-project/OpenSearch#4197 should be merged first
Issues Resolved
Closes #66
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.