(20241224) ...
This commit is contained in:
@@ -30,23 +30,23 @@ import os
|
|||||||
# Define the test params:
|
# Define the test params:
|
||||||
TOPIC = "tickers"
|
TOPIC = "tickers"
|
||||||
BOOTSTRAP_SERVERS = "del.ditscentre.in:9092"
|
BOOTSTRAP_SERVERS = "del.ditscentre.in:9092"
|
||||||
SSL_CONTEXT = get_ssl_context(
|
|
||||||
ca_file = "../../creds/kafka/cert_authority.pem",
|
|
||||||
cert_file = "../../creds/kafka/fullchain.pem",
|
|
||||||
key_file = "../../creds/kafka/privkey.pem"
|
|
||||||
)
|
|
||||||
|
|
||||||
# cwd = files.get_cwd()
|
|
||||||
# # parent_dir = files.get_parent_directory(cwd, 2)
|
|
||||||
# parent_dir = cwd
|
|
||||||
# print("CWD:", cwd)
|
|
||||||
# # print("PD:", parent_dir)
|
|
||||||
# SSL_CONTEXT = get_ssl_context(
|
# SSL_CONTEXT = get_ssl_context(
|
||||||
# ca_file = os.path.join(parent_dir, "creds", "kafka", "cert_authority.pem"),
|
# ca_file = "../../creds/kafka/cert_authority.pem",
|
||||||
# cert_file = os.path.join(parent_dir, "creds", "kafka", "fullchain.pem"),
|
# cert_file = "../../creds/kafka/fullchain.pem",
|
||||||
# key_file = os.path.join(parent_dir, "creds", "kafka", "privkey.pem")
|
# key_file = "../../creds/kafka/privkey.pem"
|
||||||
# )
|
# )
|
||||||
|
|
||||||
|
cwd = files.get_cwd()
|
||||||
|
# parent_dir = files.get_parent_directory(cwd, 2)
|
||||||
|
parent_dir = cwd
|
||||||
|
print("CWD:", cwd)
|
||||||
|
# print("PD:", parent_dir)
|
||||||
|
SSL_CONTEXT = get_ssl_context(
|
||||||
|
ca_file = os.path.join(parent_dir, "creds", "kafka", "cert_authority.pem"),
|
||||||
|
cert_file = os.path.join(parent_dir, "creds", "kafka", "fullchain.pem"),
|
||||||
|
key_file = os.path.join(parent_dir, "creds", "kafka", "privkey.pem")
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
my_consumer = ConsumerKafka(
|
my_consumer = ConsumerKafka(
|
||||||
topic = TOPIC,
|
topic = TOPIC,
|
||||||
|
|||||||
Reference in New Issue
Block a user