강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

하하호호님의 프로필 이미지
하하호호

작성한 질문수

카프카 완벽 가이드 - 커넥트(Connect) 편

Spooldir Source Connector의 주요 환경 파라미터 이해

안녕하세요~~

작성

·

322

0

kafka-console-consumer --bootstrap-server localhost:9092 --topic spooldir-test-topic --from-beginning --property print.key=true

으로 명령어를 쳤을 경우 응답 값이 강사님의 경우에는 schema와 payload로 값이 나오는데

저 같은 경우에는

Struct{} {"id":"1000","first_name":"Phineas","last_name":"Frede","email":"pfrederr@weather.com","gender":"Male","ip_address":"59.83.98.78","last_login":"2015-12-04T22:18:07Z","account_balance":"14095.22","country":"PK","favorite_color":"#4f2f2b"}

이렇게 나오게 되는데요

버전 차이 일까요?

 

connector 설정은 아래와 같습니다

{
  "name": "csv_spooldir_source",
  "config": {
    "tasks.max": "3",
    "connector.class": "com.github.jcustenborder.kafka.connect.spooldir.SpoolDirCsvSourceConnector",
    "input.path": "/home/appuser/spool_test_dir",
    "input.file.pattern": "^.*\\.csv",
    "error.path": "/home/appuser/spool_test_dir/error",
    "finished.path": "/home/appuser/spool_test_dir/finished",
    "empty.poll.wait.ms": 30000,
    "halt.on.error": "false",
    "topic": "spooldir-test-topic",
    "csv.first.row.as.header": "true",
    "schema.generation.enabled": "true"
   }
}

감사합니다.

답변 1

0

권 철민님의 프로필 이미지
권 철민
지식공유자

안녕하십니까,

음, 특이하게 나오는 군요.

먼저 확인이 필요할 것 같습니다. kafka 버전이나 SpoolDirSourceConnector 버전이 강의와 다른 버전을 사용하고 계신지요?

 

감사합니다.

하하호호님의 프로필 이미지
하하호호

작성한 질문수

질문하기