最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

環(huán)境部署ES集群(3節(jié)點(diǎn))

2021-11-16 11:26 作者:Vecloud_  | 我要投稿


此文檔針對es在centos7環(huán)境3節(jié)點(diǎn)部署,3節(jié)點(diǎn)ip分別為:172.16.10.102.172.16.10.103,172.16.10.104?
一、增加host?
每個節(jié)點(diǎn)下增加host配置?
172.16.10.102 HadoopMaster?
172.16.10.103 HadoopSlave1?
172.16.10.104 HadoopSlave2?
二、然后下載es安裝包?
cd /opt wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.0.tar.gz?
三、解壓es安裝包?
tar -zxvf elasticsearch-6.4.0.tar.gz?
四、編輯es配置文件(master配置如下,其他2個slave修改node.master:false即可)?
vim config/elasticsearch.yml?
network.host: 0.0.0.0?
discovery.zen.ping_timeout: 120s?
client.transport.ping_timeout: 60s?
discovery.zen.ping.unicast.hosts: ["172.16.10.102","172.16.10.103", "172.16.10.104"]?
cluster.name: escluster?
node.name: HadoopMaster?
path.data: /opt/elasticsearch-6.4.0/data?
path.logs: /opt/elasticsearch-6.4.0/datalog?
node.master: true?
node.data: true?
node.attr.rack: r1?
bootstrap.memory_lock: true?
bootstrap.system_call_filter: false?
http.port: 9200?
http.cors.enabled: true?
http.cors.allow-origin: "*"?
五、修改系統(tǒng)參數(shù)?
vim /etc/security/limits.conf?
新增?
soft nofile 65536hard nofile 65536soft nproc 65536hard nproc 65536soft memlock unlimitedhard memlock unlimited?
vim /etc/sysctl.conf?
新增?
vm.max_map_count=655360?
然后重新加載系統(tǒng)參數(shù)?
sysctl -p?
六、使用es用戶啟動?
groupadd es?
useradd es -g es-p elasticsearch-6.4.0?
chown -R es:es elasticsearch-6.4.0?
su es?
./elasticsearch -d?
七、安裝head?
在隨意個文件夾下?git clone git://github.com/mobz/elasticsearch-head.git安裝nodejs環(huán)境?
yum -y install nodejs?
cd elasticsearch-head/?
npm install?
npm install -g grunt-cli?
grunt server &?
Open http://localhost:9100?
(如果提示報錯phantomjs-prebuilt@2.1.16 install: node install.js)?
npm install phantomjs-prebuilt@2.1.16 --ignore-scripts?即可?
重新啟動es程序。?
打開網(wǎng)頁:http://172.16.10.102:9100(如果head的9200連接不上,檢查配置文件的http.cors.enabled: true?
http.cors.allow-origin: "*"?是否配置)

了解更多網(wǎng)絡(luò)知識關(guān)注:http://www.vecloud.com/

環(huán)境部署ES集群(3節(jié)點(diǎn))的評論 (共 條)

分享到微博請遵守國家法律
花莲县| 崇仁县| 进贤县| 泸水县| 绥宁县| 时尚| 三门峡市| 博乐市| 措勤县| 黔西县| 柘城县| 长乐市| 应城市| 崇仁县| 文山县| 老河口市| 黄山市| 安阳县| 泉州市| 太康县| 桐庐县| 顺昌县| 瑞昌市| 华容县| 泰州市| 于都县| 治县。| 夹江县| 沭阳县| 宜春市| 从化市| 巴林右旗| 镇雄县| 盐城市| 西青区| 宝丰县| 玛沁县| 呼玛县| 武功县| 清河县| 漳浦县|