In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Check the index `cat curl '10.95.32.34mod 9200 Cat indicesindicating v' `
Create an index
Curl-XPUT '10.95.32.34UR 9200 Cosmopolitan
Insert data:
Curl-XPUT '10.95.32.34Which curl-XPUT' 10.95.32.34UR 9200 control customerMertestUnip employee2employees'- d'{"name": "John smart"} 'curl-XPUT' 10.95.32.34GetWord "first_name": "John", "last_name": "Smith", "age": 25, "about": "Ilovetogorockclimbing", "interests": ["sports", "music"]}'
View the data:
Curl-XPOST '10.95.32.34UR 9200 Cosmopolitan search engine prefix'
Check your health:
[root@server02 ~] # curl-sXGET 'http://localhost:9200/_cluster/health?pretty'{"cluster_name": "es", "status": "green", "timed_out": false, "number_of_nodes": 9, "number_of_data_nodes": 9, "active_primary_shards": 129,258 "active_shards", "relocating_shards": 0, "initializing_shards": 0, "unassigned_shards": 0 "delayed_unassigned_shards": 0, "number_of_pending_tasks": 0, "number_of_in_flight_fetch": 0, "task_max_waiting_in_queue_millis": 0, "active_shards_percent_as_number": 100.0}
Find unfragmented index
Curl-s "http://localhost:9200/_cat/shards" | grep UNASSIGNED
Delete the index:
Curl-XDELETE 'http://localhost:9200/noah_flow_file_20190625' looks up the unassigned index curl-s' http://localhost:9200/_cat/shards' | grep UNASSIGNED | awk'{print $1}'| sort | uniq
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.