Skip to content

[Bug] Executing kyuubi status returns 'Kyuubi is not running' in docker container #4515

@dnskr

Description

@dnskr

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the bug

I'm using the official docker image and helm chart to deploy and manage Kyuubi on Kubernetes.
I found that bin/kyuubi status returns Kyuubi is not running when the instance is actually up and running.

The PID value in the file should be 15, however it is 1301 for the main instance in this case:

kyuubi@kyuubi-5b6784d6b4-gf2d4:/opt/kyuubi$ bin/kyuubi status
Warn: Not find kyuubi environment file /opt/kyuubi/conf/kyuubi-env.sh, using default ones...
Kyuubi is not running

kyuubi@kyuubi-5b6784d6b4-gf2d4:/opt/kyuubi$ ls -la pid
total 16
drwxrwxr-x 1 root   root 4096 Mar 14 19:30 .
drwxrwxr-x 1 root   root 4096 Mar 14 19:41 ..
-rw-r--r-- 1 kyuubi root    5 Mar 14 19:30 kyuubi--org.apache.kyuubi.server.KyuubiServer.pid

kyuubi@kyuubi-5b6784d6b4-gf2d4:/opt/kyuubi$ cat pid/kyuubi--org.apache.kyuubi.server.KyuubiServer.pid 
1301

kyuubi@kyuubi-5b6784d6b4-gf2d4:/opt/kyuubi$ ps aux
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kyuubi         1  0.0  0.0   7112  3388 ?        Ss   19:23   0:00 bash ./bin/kyuubi run
kyuubi        15  1.0 17.2 3933096 1020332 ?     Sl   19:23   0:26 /opt/java/openjdk/bin/java -cp /opt/kyuubi/jars/*:/opt/kyuubi/conf: org.apache.kyuubi.server.KyuubiServer
kyuubi      7952  0.0  0.0   7244  3956 pts/0    Ss   20:04   0:00 bash
kyuubi      8135  0.0  0.0   8896  3184 pts/0    R+   20:05   0:00 ps aux

kyuubi@kyuubi-5b6784d6b4-gf2d4:/opt/kyuubi$ ps -p 15
    PID TTY          TIME CMD
     15 ?        00:00:33 java

For the secondary instance there is no PID file at all:

kyuubi@kyuubi-5b6784d6b4-wpc54:/opt/kyuubi$ bin/kyuubi status
Warn: Not find kyuubi environment file /opt/kyuubi/conf/kyuubi-env.sh, using default ones...
Kyuubi is not running

kyuubi@kyuubi-5b6784d6b4-wpc54:/opt/kyuubi$ ls -la pid
total 12
drwxrwxr-x 1 root root 4096 Mar  8 11:21 .
drwxrwxr-x 1 root root 4096 Mar 14 19:23 .

bin/kyuubi status is needed for liveness and readiness probes, so I would highly appreciate alternative solution as well.

Affects Version(s)

1.7.0

Kyuubi Server Log Output

No response

Kyuubi Engine Log Output

No response

Kyuubi Server Configurations

No response

Kyuubi Engine Configurations

No response

Additional context

No response

Are you willing to submit PR?

  • Yes. I would be willing to submit a PR with guidance from the Kyuubi community to fix.
  • No. I cannot submit a PR at this time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions