confluentinc / cp-ansible

Ansible playbooks for the Confluent Platform
Apache License 2.0
37 stars 406 forks source link

Confluent cli #50

Closed dmitryzykov closed 6 years ago

dmitryzykov commented 6 years ago

I installed confluent using this ansible project and I have problems with confluent cli tool:

[root@test1 ~]# confluent status
This CLI is intended for development only, not for production
https://docs.confluent.io/current/cli/index.html

control-center is [DOWN]
ksql-server is [DOWN]
connect is [DOWN]
kafka-rest is [DOWN]
schema-registry is [DOWN]
kafka is [DOWN]
zookeeper is [DOWN]
[root@test1 ~]# confluent start
This CLI is intended for development only, not for production
https://docs.confluent.io/current/cli/index.html

Using CONFLUENT_CURRENT: /tmp/confluent.XUwsaQe7
Starting zookeeper
|Zookeeper failed to start
zookeeper is [DOWN]
Cannot start Kafka, Zookeeper is not running. Check your deployment

but zookeper, kafka are running and working

[root@test1 ~]# systemctl |grep conflu
● confluent-kafka-connect.service                                                     loaded failed failed    Apache Kafka Connect - distributed
  confluent-kafka-rest.service                                                        loaded active running   A REST proxy for Apache Kafka
  confluent-kafka.service                                                             loaded active running   Apache Kafka - broker
  confluent-schema-registry.service                                                   loaded active running   RESTful Avro schema registry for Apache Kafka
  confluent-zookeeper.service                                                         loaded active running   Apache Kafka - ZooKeeper
[root@test1 ~]# kafka-topics --zookeeper localhost:2181 --list
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
__confluent.support.metrics
__consumer_offsets
_confluent-command
_confluent-controlcenter-5-0-0-1-AlertHistoryStore-changelog
_confluent-controlcenter-5-0-0-1-Group-ONE_MINUTE-changelog
_confluent-controlcenter-5-0-0-1-Group-THREE_HOURS-changelog
...
_confluent-metrics
_confluent-monitoring
_schemas
users

I'm new to confluent and in confluent docs, there are a lot of examples with confluent cli which I can't use (like adding new connector) How can I make confluent cli works with this ansible project?

cotedm commented 6 years ago

the confluent cli is really intended as a development tool for a laptop setup. It's not intended to use with this Ansible project or any other production-like setup. Does that make sense?

dmitryzykov commented 6 years ago

Got it. Thank you for the answer.