標籤:
############## 共用建立es官方網站就一句話########
1、下載 檔案分享權限設定 。。
rpm -i http://mirror.symnds.com/distributions/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm 2、安裝yum -y install sshfs#如果離線自己機器上安裝個和伺服器一樣版本。修改/etc/yum/yum.conf keepcache=1#在 /var/cache/yum/x86_64/6/epel/packages 就可以找到包了# 拷貝到機器上rpm -ivh fuxx.rpm 3、找個共用的位置mkdir backchmod 777 back 4、到es每一台伺服器上mkdir bakchmod 777 back#運行sshfs [email protected]:/opt/elasticsearch/hdisk/back /opt/elasticsearch/hdisk/bak -o allow_other# -o allow_other 網上說需要。。好像不用也行,只要前面777#不要關閉putty ############逐個修改配置,從起###########vi elasticsearch.yum#添加。。。這個是好多地方根本沒有提的path.repo: ["/opt/elasticsearch/hdisk/bak"] PUT /_cluster/settings{ "transient": { "cluster.routing.allocation.enable": "none" }, "persistent": { "cluster.routing.allocation.enable": "none" }} service elasticsearch restart #等待掛上節點啟動所有PUT /_cluster/settings{ "transient": { "cluster.routing.allocation.enable": "none" }, "persistent": { "cluster.routing.allocation.enable": "none" }}##重複動作 ####################生產快照。。。網上很多,建議用kopf。。。點--點--就ok,########### ###### 多個叢集麼。最簡單的就是#sshfs [email protected]:/opt/elasticsearch/hdisk/back /其他路徑#這樣大家可以共用一個備份路徑,就可以實現es,多叢集### 參考:http://logos.name/archives/515
centos下Elasticsearch資料移轉與備份