es200怎么樣 如何查看elasticsearch版本?
如何查看elasticsearch版本?查看elasticsearch版本的方法:1。啟動elasticsearch時使用curl-xgetlocalhost:9200命令視圖:“版本”:{“編號”:
如何查看elasticsearch版本?
查看elasticsearch版本的方法:1。啟動elasticsearch時使用curl-xgetlocalhost:9200命令視圖:“版本”:{“編號”:“1.7.2”,“build”uhash“:”e43676b1385b8125d647f593f7202acdb816e8ec“,”buildutimestamp“:”2015-09-14T09:49:53Z“,”buildusnapshot“:false,”luceneuversion“:”4.10.4“}輸出JSON中有版本信息。版本號1.7.2是它的版本號。2當(dāng)elasticsearch未啟動時,LS lib/| grep-P“elasticsearch-D”。D。 . Jar”輸出elasticsearch-1.7.2.Jar。通過jar包,我們可以了解ES版本號為1.7.2的擴展數(shù)據(jù)彈性搜索的特點。1自然聚類將數(shù)據(jù)分成多個碎片。在下圖P0-P2中,多個shard可以形成一個完整的數(shù)據(jù),這些shard可以分布在集群中的每個機器節(jié)點上。隨著數(shù)據(jù)量的不斷增加,集群可以添加多個分區(qū),并在多臺計算機上放置多個分區(qū),實現(xiàn)了負(fù)載均衡和水平擴展。2默認(rèn)情況下,所有自然索引es的數(shù)據(jù)都被索引,這與MySQL相反。默認(rèn)情況下MySQL不編制索引。如果要添加索引,必須指定它。只有當(dāng)es沒有索引時,才需要指定它。