In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is to share with you the content of a sample analysis of ES-Hadoop 's elasticsearch-repository-hdfs. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. Download the repository-hdfs plug-in under es/plugins, and note that the specified download is the hadoop2 version:
Bin/plugin-I elasticsearch/elasticsearch-repository-hdfs/2.1.2-hadoop2
After the installation is complete, you can see the following instructions:
You can see that the contents of the plugins/repository-hdfs directory are as follows:
2. After the plug-in is installed in es under linux, start it, and execute the following command:
PUT _ snapshot/hdfs_backup {"type": "hdfs", "settings": {"uri": "hdfs://10.4.44.19:9000", "path": "/ es_backup/data", "conf_location": "/ itcast/hadoop-2.2.0/etc/hadoop/hdfs-site.xml"}}
This command creates a hdfs_backup repository.
The access effect based on / _ snapshot endpoint after successful creation is as follows:
3. You can see how many warehouses there are currently:
4. Execute the following command to backup once:
PUT _ snapshot/hdfs_backup/snapshot_1?wait_for_completion=true
Execution result:
5. You can execute the backup again after a period of time:
PUT _ snapshot/hdfs_backup/snapshot_2?wait_for_completion=true
Execution result:
At this point, you can see that the data from the previous two snapshots were backed up in hdfs:
Thank you for reading! This is the end of this article on "sample Analysis of ES-Hadoop 's elasticsearch-repository-hdfs". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.