Encountering "java not usable" issue when scaling out TiDB 6.5 CDC

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiDB 6.5 扩容cdc,遭遇java not usable的问题。

| username: 末0_0想

[TiDB Usage Environment] Testing
[TiDB Version] TiDB 6.5
[Reproduction Path] Use tiup cluster check zdww-tidb /home/tidb/tidb/scale-out.yaml --cluster --user tidb -p -i /home/tidb/.ssh/id_rsa to perform CDC and TiSpark scaling and installation operations.
[Encountered Issue: Problem Phenomenon and Impact]
Hello! I would like to ask, does installing CDC require a Java environment? When I was performing CDC and TiSpark scaling, I found that CDC requires a Java environment. My machine 154 has a Java environment installed, but when I performed the check (tiup cluster check kkk-tidb /home/tidb/tidb/scale-out.yaml --cluster --user tidb -p -i /home/tidb/.ssh/id_rsa), it prompted that the Java environment was not installed. I am very frustrated and seeking help online.


cdc2

[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]

| username: Lucien-卢西恩 | Original post link

TiSpark is a wrapper for Spark, and Spark is written in Java. However, TiCDC is written in Golang and does not require a Java environment.

| username: 我是咖啡哥 | Original post link

TiSpark requires Java, please install it yourself.

| username: 末0_0想 | Original post link

I installed CDC and TiSpark separately. The Java environment on the Spark machine passed the detection. However, the Java environment on the CDC machine did not pass the detection, even though I have installed the Java environment. :joy:

| username: Lucien-卢西恩 | Original post link

This check result is for reference only. It is possible that the check action sees the tispark configuration and then performs JRE environment monitoring on both nodes. tiup/pkg/cluster/operation/check.go at 1fd18a0ddd01327c99b55c25ec8a0dd4a4638bb7 · pingcap/tiup · GitHub

| username: 末0_0想 | Original post link

Got it, I’ll try to force install it.

| username: Lucien-卢西恩 | Original post link

Sure, progress can be synchronized to the Q&A post.