에서와 같이 어떤 문자가 허용되지 않습니까? 나는 이것을 어디에서 발견 할 수없는 것 같다.카프카 주제 (0.9)의 이름 지정 규칙은 무엇입니까?
적절한 오류 검사를 구현하려면이 기능이 필요합니다. 고맙습니다!
에서와 같이 어떤 문자가 허용되지 않습니까? 나는 이것을 어디에서 발견 할 수없는 것 같다.카프카 주제 (0.9)의 이름 지정 규칙은 무엇입니까?
적절한 오류 검사를 구현하려면이 기능이 필요합니다. 고맙습니다!
source에서 볼 때, ASCII 영숫자 인 .
, _
및 -
은 주제 이름에 유효한 문자입니다.
유용 할 수 있습니다.
명령 :
[[email protected] ~]$ kafka-topics --zookeeper node1:2181 --create --topic time#test --partitions 1 --replication-factor 1
오류 :
Error while executing topic command : topic name time#test is illegal,
contains a character other than ASCII alphanumerics, '.', '_' and '-'
[2016-07-13 23:31:02,513] ERROR org.apache.kafka.common.errors.InvalidTopicException:
topic name time#test is illegal,
contains a character other than ASCII alphanumerics, '.', '_' and '-'
(kafka.admin.TopicCommand$)
당신은 아마도 잘못된 주제 이름으로 --create
명령을 실행