-
Notifications
You must be signed in to change notification settings - Fork 616
Issue 10898 #11224
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
base: main
Are you sure you want to change the base?
Issue 10898 #11224
Changes from all commits
5a791c4
2d12a12
4fadf42
e6e5a45
e3e7ec3
d3d21c7
e3005e3
1148e85
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -80,7 +80,7 @@ | |||||||
sudo ./bin/opensearch-plugin install repository-s3 | ||||||||
``` | ||||||||
|
||||||||
If you're using the Docker installation, see [Working with plugins]({{site.url}}{{site.baseurl}}/opensearch/install/docker#working-with-plugins). Your `Dockerfile` should look something like this: | ||||||||
If you're using the Docker installation, see [Working with plugins]({{site.url}}{{site.baseurl}}/opensearch/install/docker/#working-with-plugins). Your `Dockerfile` should look something like this: | ||||||||
|
||||||||
``` | ||||||||
FROM opensearchproject/opensearch:{{site.opensearch_version}} | ||||||||
|
@@ -239,6 +239,48 @@ | |||||||
|
||||||||
You will most likely not need to specify any parameters except for `bucket` and `base_path`. For allowed request parameters, see [Register or update snapshot repository API]({{site.url}}{{site.baseurl}}/api-reference/snapshots/create-repository/). | ||||||||
|
||||||||
### HDFS | ||||||||
|
||||||||
To use HDFS as a snapshot repository, follow these steps: | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
1. Create an HDFS directory for snapshots and ensure that the OpenSearch user has read and write permissions to it (ex: `/opensearch/repositories/searchable_snapshots`). | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
1. Install the `repository-hdfs` plugin on all nodes: | ||||||||
|
||||||||
```bash | ||||||||
sudo ./bin/opensearch-plugin install repository-hdfs | ||||||||
``` | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
If you're using the Docker installation, see [Working with plugins]({{site.url}}{{site.baseurl}}/opensearch/install/docker/#working-with-plugins}). Your `Dockerfile` should look something like this: | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
``` | ||||||||
FROM opensearchproject/opensearch:{{site.opensearch_version}} | ||||||||
RUN /usr/share/opensearch/bin/opensearch-plugin install --batch repository-hdfs | ||||||||
``` | ||||||||
|
||||||||
1. (Optional) If you have Kerberos authentication enabled on your HDFS cluster: | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
If using Kerberos you may need to distribute the keytab file to all nodes and ensure that the OpenSearch user has read access to it. Otherwise, skip this step. | ||||||||
Check failure on line 264 in _tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore.md
|
||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
1. Restart all nodes in the OpenSearch cluster. | ||||||||
|
||||||||
1. Register the repository using the OpenSearch Snapshot API: | ||||||||
|
||||||||
```json | ||||||||
PUT _snapshot/searchable_snapshots | ||||||||
{ | ||||||||
"type": "hdfs", | ||||||||
"settings": { | ||||||||
// If using kerberos authentication, uncomment and replace YOURREALM with your realm name | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should probably just have 2 examples with and without kerberos, content itself LGTM though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed. @etgraylog Could you split this into 2 requests and remove c-style comments? Otherwise, if you copy or copy as curl, the request won't work as is. |
||||||||
// "security.principal": "opensearch@YOURREALM" | ||||||||
"uri": "hdfs://namenode:8020/", | ||||||||
"path": "/opensearch/repositories/searchable_snapshots", | ||||||||
"conf.<key>": "<value>" // (Optional) Additional HDFS configuration settings | ||||||||
} | ||||||||
} | ||||||||
``` | ||||||||
{% include copy-curl.html %} | ||||||||
|
||||||||
### Registering a Microsoft Azure storage account using Helm | ||||||||
|
||||||||
|
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.