2025년 8월 6일 수요일

Elasticsearch 9.0의 변화 - 5th

단일 노드 조건에서 버전 업그레이드는 매우 간단하다. data와 config 디렉토리만 덮어쓰면 됨. 그런데 'v9.0.3 -> v9.1.0' 업그레이드 과정에서 다음 에러 발생. 'v9.0.1 -> v9.0.3' 과정까지는 문제 없었는데(..)
PS D:\ELK\elasticsearch-9.1.0\bin> .\elasticsearch
java.lang.RuntimeException: starting java failed with [1]
output:
[0.003s][error][logging] Error opening log file 'logs/gc.log': No such file or directory
[0.003s][error][logging] Initialization of output 'file=logs/gc.log' using options 'filecount=32,filesize=64m' failed.
error:
Invalid -Xlog option '-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,level,pid,tags:filecount=32,filesize=64m', see error log for details.
Error: Could not create the Java Virtual Machine.

분명 logs 경로가 있는데 왜 접근을 못하지? 


확인해보니 JVM 로깅 경로 설정이 바뀌었다.

v9.0.3
v9.1.0

v9.1.0에서 jvm.options의 %ES_HOME%\logs 경로를 하드코딩해버린 모양. v9.0.3에서 카피한 파일도 같은 경로로 수정해주면 된다.

댓글 없음:

댓글 쓰기

크리에이티브 커먼즈 라이선스