Closed greenhorntechie closed 2 years ago
Hi, I have cleaned up the log and data directories and then deployed the services once again. Since then, all the services have started and are running fine. However, the original issue i.e. custom log directories for various Kafka services still remains. Please advise whether this is a bug or whether I am doing something wrong here.
Hi, a quick update. After cleaning up all the data and log directories, I did a fresh installation using the below configuration. All the custom log directories are getting created this time. So I guess it was due to some stale data probably they were not created last time around.
---
all:
vars:
ansible_connection: ssh
ansible_user: ubuntu
ansible_become: true
ansible_ssh_common_args: -o StrictHostKeyChecking=no
# Custom log directory locations for each Confluent Kafka service
kafka_broker_log_dir: "/confluent/kafka/logs"
zookeeper_log_dir: "/confluent/zookeeper/logs"
schema_registry_log_dir: "/confluent/schema-registry/logs"
ksql_log_dir: "/confluent/ksql/logs"
kafka_connect_log_dir: "/confluent/kafka-connect/logs"
control_center_log_dir: "/confluent/control-center/logs"
kafka_rest_log_dir: "/confluent/rest-proxy/logs"
# All the custom properties for Zookeeper service
zookeeper_custom_properties:
dataDir: "/confluent/zookeeper/data"
# All the custom properties for Kafka broker service
kafka_broker_custom_properties:
log.dirs: "/confluent/kafka/data"
As it was an issue with my deployment approach rather than the cp-ansible scripts, I am closing the issue as resolved. Thanks
Hi, I am trying to setup a single node cluster using cp-ansbile scripts. In my inventory file, I have the below configuration:
Here, the directories
/confluent/kafka/log
,/confluent/kafka/data
,/confluent/zookeeper/data
and/confluent/zookeeper/logs
are getting created as expected. However, all the other log directories for SR, C3 etc are not getting created under/confluent
directory.Also, when I check the Kafka server log, I am seeing the following error, post which the Kafka broker service stopped
I am using the latest 7.1.0 version of the cp-ansible scripts to deploy the cluster services on a single node Ubuntu server running 20.04 version. The Ansible version used to run the scripts is 2.12.4
Seems like the services are not working as expected when the above configuration is used. Can you please fix and / or let me know the solution for this.
Thanks