You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "liuxiaocs7 (via GitHub)" <gi...@apache.org> on 2023/05/04 07:20:41 UTC
[GitHub] [rocketmq-connect] liuxiaocs7 opened a new issue, #490: rocketmq-connect worker runtime cannot start normally
liuxiaocs7 opened a new issue, #490:
URL: https://github.com/apache/rocketmq-connect/issues/490
**BUG REPORT**
1. Please describe the issue you observed:
- What did you do (The steps to reproduce)?
Follow the steps in the README, start rocketmq nameserver and broker successfully, build connect successfully.
```shell
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for RocketMQ Connect 0.0.1-SNAPSHOT:
[INFO]
[INFO] RocketMQ Connect ................................... SUCCESS [ 0.777 s]
[INFO] rocketmq-connect-sample ............................ SUCCESS [ 1.130 s]
[INFO] metric-exporter .................................... SUCCESS [ 3.954 s]
[INFO] rocketmq-connect-runtime ........................... SUCCESS [ 6.354 s]
[INFO] rocketmq-connect-cli ............................... SUCCESS [ 1.071 s]
[INFO] rocketmq-connect-distribution 0.0.1-SNAPSHOT ....... SUCCESS [ 4.877 s]
[INFO] rocketmq-connect-transforms ........................ SUCCESS [ 0.734 s]
[INFO] schema-converter ................................... SUCCESS [ 2.188 s]
[INFO] schema-converter-common ............................ SUCCESS [ 2.847 s]
[INFO] json-schema-converter .............................. SUCCESS [ 3.599 s]
[INFO] avro-schema-converter .............................. SUCCESS [ 3.282 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
```
But when i execute
```
cd distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT
sh bin/connect-standalone.sh -c conf/connect-standalone.conf &
```
got:
```
[liuxiao@dev rocketmq-connect-0.0.1-SNAPSHOT]$ sh bin/connect-standalone.sh -c conf/connect-standalone.conf &
[1] 16386
[liuxiao@dev rocketmq-connect-0.0.1-SNAPSHOT]$ /home/liuxiao/Code/JavaProjects/rocketmq-connect/distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT/bin/runconnect.sh: 37: bc: not found
/home/liuxiao/Code/JavaProjects/rocketmq-connect/distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT/bin/runconnect.sh: 37: [[: not found
/home/liuxiao/Code/JavaProjects/rocketmq-connect/distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT/bin/runconnect.sh: 41: [[: not found
/home/liuxiao/Code/JavaProjects/rocketmq-connect/distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT/bin/runconnect.sh: 84: [[: not found
/home/liuxiao/Code/JavaProjects/rocketmq-connect/distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT/bin/runconnect.sh: 37: bc: not found
/home/liuxiao/Code/JavaProjects/rocketmq-connect/distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT/bin/runconnect.sh: 37: [[: not found
/home/liuxiao/Code/JavaProjects/rocketmq-connect/distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT/bin/runconnect.sh: 41: [[: not found
/home/liuxiao/Code/JavaProjects/rocketmq-connect/distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT/bin/runconnect.sh: 87: [[: not found
/home/liuxiao/Code/JavaProjects/rocketmq-connect/distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT/bin/runconnect.sh: 93: [: Linux: unexpected operator
/home/liuxiao/Code/JavaProjects/rocketmq-connect/distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT/bin/runconnect.sh: 37: bc: not found
/home/liuxiao/Code/JavaProjects/rocketmq-connect/distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT/bin/runconnect.sh: 37: [[: not found
/home/liuxiao/Code/JavaProjects/rocketmq-connect/distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT/bin/runconnect.sh: 41: [[: not found
/home/liuxiao/Code/JavaProjects/rocketmq-connect/distribution/target/rocketmq-connect-0.0.1-SNAPSHOT/rocketmq-connect-0.0.1-SNAPSHOT/bin/runconnect.sh: 110: [[: not found
Unrecognized option: -Xlog:gc:/dev/shm/mq_gc_%p.log
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
^C
[1]+ Exit 1 sh bin/connect-standalone.sh -c conf/connect-standalone.conf
[liuxiao@dev rocketmq-connect-0.0.1-SNAPSHOT]$ ^C
```
switch `sudo bash` to execute, i got nothing
```
[liuxiao@dev rocketmq-connect-0.0.1-SNAPSHOT]$ sudo bash bin/connect-standalone.sh -c conf/connect-standalone.co
nf &
[7] 23481
```
and the log dir `rocketmqconnect` is not generated normally.
```
[liuxiao@dev logs]$ ls
rocketmqlogs
[liuxiao@dev logs]$ pwd
/home/liuxiao/logs
```
- What is expected to see?
runtime boot success as follow:
```
The standalone worker boot success...
```
And log file exists
tail -100f ~/logs/rocketmqconnect/connect_runtime.log
- What did you see instead?
2. Please tell us about your environment:
Ubuntu 22.04.2 (Windows WSL2)
4. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-connect] liuxiaocs7 commented on issue #490: rocketmq-connect worker runtime cannot start normally
Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on issue #490:
URL: https://github.com/apache/rocketmq-connect/issues/490#issuecomment-1534747606
`bin/connect-standlone.sh` last line modify `sh` to `bash` works, like this:
```shell
exec bash ${CONNECT_HOME}/bin/runconnect.sh org.apache.rocketmq.connect.runtime.StandaloneConnectStartup $@
```
Also in wsl2, We can't seem to use 127.0.0.1, use localhost or real ip instead.
```shell
curl -X POST -H "Content-Type: application/json" http://{localhost/real_ip}:8082/connectors/fileSourceConnector -d '{"connector.class":"org.apache.rocketmq.connect.file.FileSourceConnector","filename":"test-source-file.txt","connect.topicname":"fileTopic"}'
curl -X POST -H "Content-Type: application/json" http://{localhost/real_ip}:8082/connectors/fileSinkConnector -d '{"connector.class":"org.apache.rocketmq.connect.file.FileSinkConnector","filename":"test-sink-file.txt","connect.topicnames":"fileTopic"}'
```
show all connectors available by `curl -X GET http://localhost:8082/connectors/list`
```
{
"status": 200,
"body": {
"fileSinkConnector": {
"status": {
"name": "fileSinkConnector",
"connector": {
"state": "RUNNING",
"trace": null,
"workerId": "standalone-worker"
},
"tasks": [{
"state": "RUNNING",
"trace": null,
"workerId": "standalone-worker",
"id": 0
}],
"type": "SINK"
},
"info": {
"name": "fileSinkConnector",
"config": {
"connector.class": "org.apache.rocketmq.connect.file.FileSinkConnector",
"filename": "test-sink-file.txt",
"connect.topicnames": "fileTopic"
},
"tasks": [{
"connector": "fileSinkConnector",
"task": 0
}],
"type": "SINK"
}
},
"fileSourceConnector": {
"status": {
"name": "fileSourceConnector",
"connector": {
"state": "RUNNING",
"trace": null,
"workerId": "standalone-worker"
},
"tasks": [{
"state": "RUNNING",
"trace": null,
"workerId": "standalone-worker",
"id": 0
}],
"type": "SOURCE"
},
"info": {
"name": "fileSourceConnector",
"config": {
"connector.class": "org.apache.rocketmq.connect.file.FileSourceConnector",
"filename": "test-source-file.txt",
"connect.topicname": "fileTopic"
},
"tasks": [{
"connector": "fileSourceConnector",
"task": 0
}],
"type": "SOURCE"
}
}
}
}
```
And result is right:
```
[liuxiao@dev rocketmq-connect-0.0.1-SNAPSHOT]$ cat test-sink-file.txt
Hello \r\nRocketMQ\r\n Connect
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-connect] liuxiaocs7 closed issue #490: rocketmq-connect worker runtime cannot start normally
Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 closed issue #490: rocketmq-connect worker runtime cannot start normally
URL: https://github.com/apache/rocketmq-connect/issues/490
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org