centos下Elasticsearch資料移轉與備份

來源:互聯網
上載者:User

標籤:

 

############## 共用建立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資料移轉與備份

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.