Giter VIP home page Giter VIP logo

Comments (11)

gopinathankm avatar gopinathankm commented on July 28, 2024 5

I encountered this issue, I tried following. It works! I am using confluent oss 5.0.0
Problem:
user@user-Lenovo-G400:~$ confluent start
This CLI is intended for development only, not for production
https://docs.confluent.io/current/cli/index.html
Using CONFLUENT_CURRENT: /home/user/confluent-5.0.0/confluent.0C1Oma4q
Starting zookeeper
Zookeeper failed to start
zookeeper is [DOWN]
Cannot start Kafka, Zookeeper is not running. Check your deployment

Solution:
user@user-Lenovo-G400:~ sudo /home/user/confluent-5.0.0/bin/zookeeper-server-stop

user@user-Lenovo-G400:~$ confluent start
This CLI is intended for development only, not for production
https://docs.confluent.io/current/cli/index.html

Using CONFLUENT_CURRENT: /home/user/confluent-5.0.0/confluent.0C1Oma4q
Starting zookeeper
zookeeper is [UP]
Starting kafka
kafka is [UP]
Starting schema-registry
schema-registry is [UP]
Starting kafka-rest
kafka-rest is [UP]
Starting connect
connect is [UP]
Starting ksql-server
ksql-server is [UP]
user@user-Lenovo-G400:~$

May be someone may find it useful!

from confluent-cli.

prasanna-sk avatar prasanna-sk commented on July 28, 2024 1

We kind of ran into the same issue before and the only way we recovered was manually kill the processes listed in ps -ef command and start the stack again.

from confluent-cli.

prasanna-sk avatar prasanna-sk commented on July 28, 2024 1

Here is an observation/issue we are facing.

root user -- confluent start . (successful)
root user -- confluent status . (shows all services are UP)
root user -- confluent current (shows /tmp/confluent.######)

non-root user log into the same server while the services are up and running.

non-root user -- confluent status (shows all services are DOWN)
non-root user -- sudo confluent status (shows all services are UP)
non-root user -- confluent current (shows same /tmp/confluent.###### as above).

What I did notice is by default - /tmp/confluent.###### has rwx------ permission for root (or any user that starts the service). So, no other users are unable to read that dir or files in it.
confluent.current also has rwx------ permission - again owned and accessible only owner (in this case root).

Note: I did yum install confluent package as root. Not sure if that has any implication.

from confluent-cli.

kkonstantine avatar kkonstantine commented on July 28, 2024

When you are running confluent status does confluent current or echo $CONFLUENT_CURRENT (if it's set) point to the runtime directory of the deployment that is currently running?

If you've set CONFLUENT_CURRENT but you attempted to run confluent status from a terminal that doesn't have this env var set, the CLI doesn't have a way to find the descriptors for the currently running services. You might want to use lsof to figure out what that directory of the running services.

from confluent-cli.

prasanna-sk avatar prasanna-sk commented on July 28, 2024

In my case - CONFLUENT_CURRENT is not set. But, from this link, if it is not set, it defaults to /tmp

confluent current - does show the runtime dir from /tmp

from confluent-cli.

ganu453 avatar ganu453 commented on July 28, 2024

I am also facing the same issue with non root user but its fine for root user.

from confluent-cli.

sankalp58 avatar sankalp58 commented on July 28, 2024

I also faced the same issue, which means zookeeper is running from init.d so just sudo service zookeeper stop ,
try it , if it works then its relaxing.

from confluent-cli.

rmoff avatar rmoff commented on July 28, 2024

Hitting this issue again. Seems to be different terminal sessions end up with different CONFLUENT_CURRENT values, all based on permutations of /var/folders/q9/2tg_lt9j6nx29rvr5r5jn_bw0000gp/T/confluent.xxxxxxx

I'm definitely not doing anything to set CONFLUENT_CURRENT myself.

Having to wheel out this rather nasty way of killing things:

ps -ef|grep confluent.|grep -v grep|awk '{print $2}'|xargs -Ifoo kill -9 foo

from confluent-cli.

ngwwm avatar ngwwm commented on July 28, 2024

I have the same problem. 'confluent status' return [DOWN], 'confluent stop', 'confluent log' doesn't work...

I just found that there are 2 confluent current running folders under /tmp. I checked that one of the folder is empty and one of them contains files of the current running Confluent instance.
When I do a 'confluent current', it returns the name of the empty folder!!!
I noticed that the file /tmp/confluent.current has something to do with the confluent cli. I updated the file to match with the current running kafka instance and 'confluent log kafka' now works again. But, confluent status still doesn't work...

from confluent-cli.

ngwwm avatar ngwwm commented on July 28, 2024

To workaround the issue, always run the confluent cli from /tmp (or $CONFLUENT_CURRENT if defined)
Or update bin/confluent as below

...
[[ $# -lt 1 ]] && usage

requirements

cd $confluent_current_dir
command="${1}"
...

I am using confluent 4.

from confluent-cli.

alokpaul avatar alokpaul commented on July 28, 2024

Seems this issue is still there. confluent status does not seem to work.

from confluent-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.