CDC Server Error: bash: cdc: command not found

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

Original topic: cdc server报错bash: cdc: command not found…

| username: TiDBer_8xv3YpMO

What is this problem?

| username: Billmay表妹 | Original post link

【TiDB Usage Environment】Production Environment / Testing / PoC
【TiDB Version】
【Reproduction Path】What operations were performed when the issue occurred
【Encountered Issues: Problem Symptoms and Impact】
【Resource Configuration】
Please provide feedback on the issue according to the requirements~

| username: 裤衩儿飞上天 | Original post link

Set environment variables or execute binary files in the absolute path.

| username: TiDBer_8xv3YpMO | Original post link

It is just the normal process of pulling the ticdc source code on Linux, then running the make command, and executing the command in the compiled bin directory, or executing the command in the source code path, both show the same unavailable message.

| username: 裤衩儿飞上天 | Original post link

In the compiled bin directory: ./cdc server ****************

| username: TiDBer_8xv3YpMO | Original post link

What’s going on here?

| username: TiDBer_8xv3YpMO | Original post link

Is this considered started? What command can I use to see the status?

| username: 裤衩儿飞上天 | Original post link

It’s up
tiup cluster display XXXX

| username: TiDBer_8xv3YpMO | Original post link

Sure, thank you very much. I would also like to ask if TiCDC will output logs to the console if I perform data operations on TiDB.

| username: ShawnYan | Original post link

Refer to the help screenshot above, cdc server --log-file

| username: TiDBer_8xv3YpMO | Original post link

I want to set the environment variables for TiCDC so that my company’s server can recognize them. How should I set them up?

| username: 裤衩儿飞上天 | Original post link

I have two understandings of your server-side recognition:

  1. After compilation, you need to run the CDC service on the server. In this case, you just need to add the directory where the binary file is located to the PATH in the .bash_profile of the OS user running the CDC service.
  2. You are running it in your own development tool. In this case, it might be set in your development tool.
| username: TiDBer_8xv3YpMO | Original post link

My CDC is deployed on Linux, and the company’s server is running with IDEA. So, should I just configure it in Java?

| username: TiDBer_8xv3YpMO | Original post link

If I want to use a Java main method to test whether TiCDC’s RPC is functioning properly, where can I find a reference method for testing?

| username: yilong | Original post link

You can refer to tiflow/tests/integration_tests/README.md at master · pingcap/tiflow · GitHub to try, or write your own tests for reference.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.