ElasticSearch Plugin Head Installation head plugin 을 이용해서 cluster 상태, index 정보, 간단한 쿼리 수행 등의 기능을 편리하게 사용할 수 있다. elasticsearch 6 버전에서는 plugin installer를 이용한 설치가 불가능하여 굳이 사용하기 위해서는 별도 웹 서비스가 필요하다. nodejs 를 통해서 웹서비스를 하고, 웹 소스는 github 에서 별도로 내려받는다. elasticsearch 6 버전부터는 X-PACK, Kibana 확장을 통해 인덱스 […]
[ElasticSearch] 2 nodes cluster 설치
Elasticsearch 설치 (2 node cluster) 사전 준비 시스템 사용자 생성 및 디렉토리 설정 시스템 사용자 생성 useradd elastic -g bigdata -u 9200 디렉토리 권한 설정 다음과 같이 엔진, 로그, 데이터파일 경로를 구분하여 설치를 진행한다. elasticsearch 엔진 경로 /app/elasticsearch elasticsearch 엔진 로그 경로 /logs/elasticsearch elasticsearch 데이터파일 (인덱스) 경로 /data/elasticsearch chown elastic:bigdata /app/elasticsearch chown elastic:bigdata /logs/elasticsearch chown […]
[Linux] sshd
Parameters PermitRootLogin root 계정에 대한 ssh 접근 허용 여부 yes no ClientAliveInterval ssh 클라이언트의 유지 기간 sec 단위 ClientAliveCountMax ClientAliveInterval 카운트 AllowUsers 로그인 허용 사용자 리스트 Jan 24 00:00:00 host sshd[11111]: User root from localhost not allowed because not listed in AllowUsers AllowGroups 로그인 허용 사용자그룹 리스트
[Python] 기본 함수
input() 표준 입력을 변수에 대입. 입력되는 모든 것을 문자열로 취급 cf. raw_input() 프롬프트 이후 입력 받기 input(“질문”) split() 문자열 자르기. split 입력 인자로 구분자로 사용될 문자열 설정. 기본값으로 ‘ ‘ 사용하는 듯 map() 아래와 같이 list, tuple 의 모든 원소에 함수 적용 list(map(함수,리스트)) tuple(map(함수,튜플))
[Linux] rdate
rdate 인터넷 접근 가능한 경우 time.bora.net time server 의 네트워크 시간대 가져오기 rdate -s time.bora.net CMOS 시간 업데이트 clock -w http://mslee89.tistory.com/74
[Linux] dmidecode
dmidecode # dmidecode -V 3.0 # dmidecode -h Usage: dmidecode [OPTIONS] Options are: -d, –dev-mem FILE Read memory from device FILE (default: /dev/mem) -h, –help Display this help text and exit -q, –quiet Less verbose output -s, –string KEYWORD Only display the value of the given DMI string -t, –type TYPE Only display the entries […]
[Linux] TIMEZONE 변경하기
시스템에서 사용 가능한 TIMEZONE 리스트 확인 timedatectl list-timezones 서울 설정 timedatectl set-timezone Asia/Seoul
[Fluentd] Fluentd 설치
Fluentd 설치하기 Linux 시스템에 설치하는 것을 기준으로 진행. 패키지 설치 or 소스 컴파일 설치 모두 가능하지만 소스 컴파일 방식으로 설치 진행. 의존성 zlib-devel openssl ruby 설치 System User Profile export LD_LIBRARY_PATH=/app/fluentd/ssl/1.1.1-pre6/lib:$LD_LIBRARY_PATH export PATH=/app/fluentd/ssl/1.1.1-pre6/bin:$PATH export RUBY_HOME=/app/fluentd/ruby/2.4.4 export PATH=$RUBY_HOME/bin:$PATH Install openssl from source openssl archive 다운로드 wget https://www.openssl.org/source/openssl-1.1.1-pre6.tar.gz archive 압축해제 tar -xvzf openssl-1.1.1-pre6.tar.gz -C /app/fluentd/ssl 설치 경로로 […]
[Fluentd] Fluentd 소개
Fluentd 소개 with Fluentd 내부 언어 Cruby 로 작성. 루비는 객체 지향 인터프리터 언어 https://www.ruby-lang.org/ko/about/ Cruby vs. Jruby The default Ruby, the one people think of as "just Ruby," is CRuby. JRuby is a Ruby interpreter written in Java. It’s written and maintained by a different team. It focuses hard on performance – especially for […]