溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

ES-01 -ES內(nèi)置的REST接口

發(fā)布時間:2020-07-23 18:39:15 來源:網(wǎng)絡(luò) 閱讀:2662 作者:海德堡絕塵 欄目:大數(shù)據(jù)

1. ES內(nèi)置的REST接口

URL

/_aliases 獲取或者操作索引的別名
/index/_search 搜索指定索引下的數(shù)據(jù)


/index/ 查看指定所引導(dǎo)詳細(xì)信息
/index/type/ 創(chuàng)建或者操作 類型(表)
/index/_mapping 創(chuàng)建或者操作 mapping
/index/_settings 創(chuàng)建或者操作 設(shè)置(number_of_shards是不可更改的)


/index/_open 打開指定被關(guān)閉的索引
/index/_close 關(guān)閉指定索引
/index/_refresh 刷新索引-不保證寫入,使得新增內(nèi)容對搜索可見
/index/_flush 刷新索引-會出發(fā)lucene提交

2. ES和數(shù)據(jù)庫對比


數(shù)據(jù)庫: database | index 索引庫
表: table | type 類型
行: row | document 文檔
字段: column | field 字段

3. 訪問:

http://localhost:9200

ES-01 -ES內(nèi)置的REST接口


ES5.3

  1. Cluster Health
    GET /_cat/health?v

  2. nodes:
    _cat/nodes?v
  3. health
    _cat/health?v
  4. indices
    _cat/indices?v

ES5.2安裝

ERROR: bootstrap checks failed
http://blog.csdn.net/cardinalzbk/article/details/54924511


ES5.3安裝

  1. ips:

    192.168.61.141
    192.168.61.142
    192.168.61.143

  2. ssh免密登錄設(shè)置-略
  3. sudo service iptalbes stop
  4. df -h /export 查看磁盤使用率
  5. 配置解釋:

    cluster.name可以確定你的集群名稱,當(dāng)你的elasticsearch集群在同一個網(wǎng)段中elasticsearch會自動的找到具有相同cluster.name的elasticsearch服務(wù). 所以當(dāng)同一個網(wǎng)段具有多個elasticsearch集群時cluster.name就成為同一個集群的標(biāo)識

http://www.cnblogs.com/xing901022/p/6030296.html
http://www.cnblogs.com/xing901022/p/6591260.html
http://www.cnblogs.com/zklidd/p/6433123.html
*http://www.cnblogs.com/xing901022/p/6591260.html
https://endymecy.gitbooks.io/elasticsearch-guide-chinese/content/getting-started/basic-concepts.html
http://www.cnblogs.com/hujihon/p/5656981.html
http://www.th7.cn/Program/java/201612/1049660.shtml
http://blog.csdn.net/opensure/article/details/47617437
http://www.cnblogs.com/sunxucool/p/3799190.html

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI