묻고 답해요
129만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨IT인을 위한 ELK 통합로그시스템 구축과 활용
docker-composer에서 작업중이었는데 bulk api memory 부족
indexing_pressure.memory.limit 이거를 올려주라는데 혹시 일시적으로 어떻게 올리는 건가요?
-
미해결
(엘라스틱서치) 영어사이트에서 검색시 기본적 검색결과 패턴에 대한 조건..
1. 현상 fishing 검색시 최소단위로 분절되어 "fish", "ing"로 token 검색이 fishing이나 fish, fishing이 우선순위 없이 결과에 노출됨 *현재 검색은 and 조건에 따라 -> must문으로 처리 2. 원인 형태소 분석기를 통해 분절된 후에 동의어처리가 되면서 같은 단어로 인식 3. 확인 사항 **고객요청) keyword("fishing")를 분절하지 않고 검색에 활용 -> 이렇게 하더라도, fish도 결과에 나와야 한다. ** 개발팀화인) 사용자 입력 값 자체에 score를 높여 검색 상단위 위치 fishing -10 fish -5 ing -5 -> 사용자 사전에 fish / ing 따로 등록필요하고, 모든 단어에 적용해야 하는 수고가 있음 ** 어떻게 검색에 대해 의사소통을 해야하는지, 기본적은 사항
-
미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
Elasticsearch 6.0 부터는 Content-Type을 명시해야한다고 합니다!
0:42 $ curl -XPOST http://localhost:9200/classes/class/1/ -H'Content-Type: application/json' -d ' {"title" : "Algorithm", "professor" : "John"}'
-
미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
elasticsearch 에러 관련입니다.
elasticsearch 7.x 버젼부터는 curl 리퀘스트에서 헤더를 명확히 설정해주어야하고 또 mappign을 생성할 때에는 include_type_name을 true로 설정해주어야한다고 합니다. 이에 대한 에러문구는 아래와 같습니다. { "error" : { "root_cause" : [ { "type" : "illegal_argument_exception", "reason" : "Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true." } ], "type" : "illegal_argument_exception", "reason" : "Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true." }, "status" : 400 } 그래서 저는 mapping을 생성할 때 아래와 같이 커맨드라인을 날렸습니다. curl -H 'Content-Type:application/json' -XPUT 'http://localhost:9200/classes/class/_mapping?include_type_name=true&pretty' -d @classesRating_mapping.json 그런데 아래와 같은 에러가 다시 발생했습니다. { "error" : { "root_cause" : [ { "type" : "mapper_parsing_exception", "reason" : "No handler for type [string] declared on field [professor]" } ], "type" : "mapper_parsing_exception", "reason" : "No handler for type [string] declared on field [professor]" }, "status" : 400 } 이에 대해서 원인을 찾아보니 elasticsearch가 mapping 타입 중 string을 삭제하고 text로 변경하여 사용하고있다고 합니다. 관련 정보 링크 : https://stackoverflow.com/questions/47452770/no-handler-for-type-string-declared-on-field-name 그래서 classesRating_mapping.json에서 type이 string으로 되어있는 부분들을 모두 text로 변경한 후 위 커맨드라인을 다시 실행해보니 정상적으로 실행되었습니다. 혹시 이 강의를 보시는 분들 중 elasticsearch 6.x 이상의 버젼을 사용하여 수강하시는 분들은 이 부분들을 참고해보시면 좋을 것 같습니다.
-
미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
13과 에서 날짜 선택
현재 제가 강좌를 시청하고 있는 시간이 2019년 8월이고강의를 찍으신 시간이 2016년정도이니, 그 부분을 명시해서 앞으로 보는 시청자들에게도 자신의 환경에 맞게 알아서 조절하게끔 알려주어야 할 것 같습니다..!!이것 문제인지 모르고 계속 헤맸네요 ㅠㅠ ㅎㅎ
-
미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
현재 7버전 이용중인데 -XPOST 시 에러가 발생합니다.
curl -XPOSt http://localhost:9200/classes/class/1/ -d '{"title" : "Algorithm", "professor" : "John"}' 입력 시 www-form-urlencoded is not supported status 406 에러가 발생합니다. 높은 버전에선 -H 'Content-Type: application/json' 을 추가해줘야 할듯합니다.