<jupyter_start><jupyter_text>.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties.\bin\windows\kafka-server-start.bat .\config\server.properties.\bin\windows\kafka-topics.bat --create --partitions 1 --replication-factor 1 --topic quickstart-events --bootstrap-server localhost:9092<jupyter_code>#from kafka import KafkaConsumer
#consumer = KafkaConsumer(
    
#     bootstrap_servers=['localhost:9092'],
#     auto_offset_reset='latest',
#     enable_auto_commit=True,
#     auto_commit_interval_ms =  5000,
#     fetch_max_bytes = 128,
#     max_poll_records = 100    

#     )
#consumer.subscribe('covid')
#for message in consumer:
#    print(message)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1326676176890157, 'fraction_numerical': 0.028530670470756064, 'mean_word_length': 4.441860465116279, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '620907', 'license': 'Apache-2.0', 'n_tokens_mistral': 253, 'n_tokens_neox': 231, 'n_words': 32, 'path': 'BasicQueryExpansion-master/kafka_client.ipynb', 'repo_name': 'mrinmoy-sadhukhan/LDA-topic-kafka', 'size': '701'}