Skip to content

Commit

Permalink
[KAN-79] MYSQL -> ES 동기화 배치 작업
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkyoungdeok committed May 21, 2024
1 parent 5dbfc27 commit c6ff8a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion csv-to-es.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
index_name = f"restaurant_{now.strftime('%Y_%m_%d_%H-%M')}"

# Elasticsearch 클라이언트 설정
es = Elasticsearch("http://localhost:9200")
es = Elasticsearch("http://es-singlenode:9200")

# 새 인덱스 생성 및 매핑 설정
if not es.indices.exists(index=index_name):
Expand Down
2 changes: 1 addition & 1 deletion mysql-to-es.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}

# Elasticsearch connection parameters
es = Elasticsearch(['http://localhost:9200'])
es = Elasticsearch(['http://es-singlenode:9200'])


def fetch_restaurant_data():
Expand Down

0 comments on commit c6ff8a1

Please sign in to comment.