elasticsearch on docker vm.max_map_count [65530] is too low

#show error [2020-03-27T00:51:26,356][INFO ][o.e.d.DiscoveryModule    ] [master-node1] using discovery type [zen] and host providers [settings] [2020-03-27T00:51:34,430][INFO ][o.e.n.Node               ] [master-node1] initialized [2020-03-27T00:51:34,430][INFO ][o.e.n.Node               ] [master-node1] starting ... [2020-03-27T00:51:36,061][INFO ][o.e.t.TransportService   ] [master-node1] publish_address {172.20.0.2:9300}, bound_addresses {[::]:9300} [2020-03-27T00:51:36,238][INFO ][o.e.b.BootstrapChecks    ] [master-node1] bound or publishing to a non-loopback address, enforcing bootstrap checks ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] #fix error [root@localhost ~]# sysctl -w vm.max_map_count=262144 vm.max_map_count = 262144

install ELK on docker

install ELK on docker #install docker [root@minimacent ~]# yum install -y yum-utils device-mapper-persistent-data lvm2 #install docker [root@localhost ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Loaded plugins: fastestmirror, langpacks adding repo from: https://download.docker.com/linux/centos/docker-ce.repo grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo repo saved to /etc/yum.repos.d/docker-ce.repo #install docker [root@localhost ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Loaded plugins: fastestmirror, langpacks #install docker [root@minimacent ~]# yum install docker-ce docker-ce-cli containerd.io Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.kakao.com #install docker [root@minimacent ~]# yum i...

ELK beat " No directory ..." Error occurred

ELK beat " No directory ..." Error occurred #error message [root@minimacent bin]# ./metricbeat setup -c /etc/metricbeat/metricbeat.yml Overwriting ILM policy is disabled. Set `setup.ilm.overwrite:true` for enabling. Index setup finished. Loading dashboards (Kibana must be running and reachable) Skipping loading dashboards, No directory /usr/share/metricbeat/bin/kibana/7 #fixed error [root@minimacent bin]# ./metricbeat -c /etc/metricbeat/metricbeat.yml -path.home /usr/share/metricbeat -path.config /etc/metricbeat -path.data /var/lib/metricbeat setup --dashboards Loading dashboards (Kibana must be running and reachable) Loaded dashboards [root@minimacent bin]#

kubernetes test

이미지
install kubernetes #install docker [root@minimacent ~]# yum install -y yum-utils device-mapper-persistent-data lvm2 [root@minimacent ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Loaded plugins: fastestmirror, langpacks adding repo from: https://download.docker.com/linux/centos/docker-ce.repo grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo repo saved to /etc/yum.repos.d/docker-ce.repo [root@minimacent ~]# yum install docker-ce Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: data.aonenetworks.kr * extras: data.aonenetworks.kr * updates: data.aonenetworks.kr Resolving Dependencies --> Running transaction check ---> Package docker-ce.x86_64 3:19.03.8-3.el7 will be installed --> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-19.03.8-3.el7.x86_64 --> Processing Dependency: containerd.io >= ...

detect card by opencv

detect card by opencv #make requirements.txt [root@localhost ~]# vi requirements.txt imutils==0.5.3 opencv-python==4.1.0.25 numpy==1.16.4 #download offline install files [root@localhost python]# pip3 download -r requirements.txt Collecting imutils==0.5.3 (from -r requirements.txt (line 1)) Using cached https://files.pythonhosted.org/packages/b5/94/46dcae8c061e28be31bcaa55c560cb30ee9403c9a4bb2659768ec1b9eb7d/imutils-0.5.3.tar.gz Saved ./imutils-0.5.3.tar.gz Collecting opencv-python==4.1.0.25 (from -r requirements.txt (line 2)) Using cached https://files.pythonhosted.org/packages/7b/d2/a2dbf83d4553ca6b3701d91d75e42fe50aea97acdc00652dca515749fb5d/opencv_python-4.1.0.25-cp36-cp36m-manylinux1_x86_64.whl Saved ./opencv_python-4.1.0.25-cp36-cp36m-manylinux1_x86_64.whl Collecting numpy==1.16.4 (from -r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/87/2d/e4656149cbadd3a8a0369fcd1a9c7d61cc7b87b3903b85389c70c989a696/numpy-1.16.4-cp36-c...

Forbidden to create Index Pattern in Kibana

logstash로 data 수집 후, kibana index 작성중 이하의 에러가 발생 Error "forbidden" 권한 문제? #edit privileges PUT /_all/_settings {"index.blocks.read_only_allow_delete": null}

install python 3.7 on centos7

install python 3.7 on centos7 #install yum repository [root@localhost ~]# yum install -y https://centos7.iuscommunity.org/ius-release.rpm Loaded plugins: fastestmirror, langpacks ius-release.rpm | 8.2 kB 00:00:00 Examining /var/tmp/yum-root-CBgYb0/ius-release.rpm: ius-release-2-1.el7.ius.noarch Marking /var/tmp/yum-root-CBgYb0/ius-release.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package ius-release.noarch 0:2-1.el7.ius will be installed --> Finished Dependency Resolution base/7/x86_64 | 3.6 kB 00:00:00 base/7/x86_64/group_gz | 165 kB 00:00:00 base/7/x86_64/primary_db ...