본문 바로가기

elasticsearch-logstash

Caught exception while handling client http traffic, closing connection [elasticsearch]HTTP content length exceeded 104857600 bytes ExceptionElasticsearch 2015.11.19 19:24 bulk api 호출시 elasticsearch의 HTTP content length 길이 제한으로 인해 에러가 발생할 수 있다.netty 제한 크기 때문에 그렇다. [WARN ][http.netty ] [node_1] Caught exception while handling client http traffic, closing connection [id: 0x7160d228, /1.1.1.1:56212 => /1.2.2.2:9200]org.elasticsearch.common.netty.handler.codec.frame.Too.. 더보기
elasticsearch 윈도우에서 메모리 설정 시작하기~ - elasticsearch.bat 으로 실행 elasticsearch.bat 을 실행하면 elasticsearch.in.bat에 저장된 환경변수들을 읽어오면서 엘라스틱검색이 실행이 된다. - service.bat 으로 실행 elasticsearch를 background job으로 돌리거나 서버 시작시 자동으로 elasticsearch를 실행하기 위해서elasticsearch를 서비스로 실행하려면 service 배치파일을 이용하면 된다. - elasticsearch.in.bat if "%ES_MIN_MEM%" == "" (set ES_MIN_MEM=256m) if "%ES_MAX_MEM%" == "" (set ES_MAX_MEM=1g) 이 부분을 본인이 원하는 메모리 사이즈로 수정해주면 된다 if "%E.. 더보기
elasticsearch 매핑설정 DELETE cine21 PUT /cine21{ "settings": { "analysis": { "analyzer": { "korean_analyzer" : { "type" : "custom", "tokenizer": "korean_tokenizer", "filter" : ["stop", "lowercase", "trim"] }, "ngram_analyzer" : { "type" : "custom", "tokenizer" : "ngram_tokenizer", "filter" : ["lowercase", "trim"] }, "edge_ngram_analyzer" : { "type" : "custom", "tokenizer" : "edge_ngram_tokenizer", "filter" : ["lowerc.. 더보기