Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exchange is configured mysql->mysql task, then click execute, and the task has been queued. #123

Closed
zczy999 opened this issue Nov 18, 2021 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@zczy999
Copy link

zczy999 commented Nov 18, 2021

image

1.版本:
exchangis-0.5.0.RELEASE
2. 现象
配置好mysql -> mysql 任务,并点击执行后, 所有任务都处于排队状态,没有进入到执行状态。
观察service、 executor、gateway 日志,未发现明显错误日志

  1. version:
    exchangis-0.5.0.RELEASE
  2. phenomenon
    After configuring mysql -> mysql tasks, and clicking Execute, all tasks are in the queue state, but not in the execution state.
    Observe the logs of service, executor and gateway, and no obvious error log is found.

#12
And I see that the previous issue has been solved. Can you explain in detail where to change it? Thank you.
并且我看到之前的issue已经解决了,能不能详细的说明下要改哪里,谢谢

@zczy999
Copy link
Author

zczy999 commented Nov 19, 2021

Found the init () method in ExecutorServiceImpl class.
String host = MachineInfo.getIpAddress(configuration.getNetworkInterface());
When the getIpAddress method is called, if there are multiple ip addresses in the machine, such as virtual machine ip, an ip binding bug will be generated, which will cause the executor service to be abnormal, and then it will always be queued when the front-end display.
It is recommended to have an ip configuration item directly to fix this bug.
找到了ExecutorServiceImpl类中init()方法中
String host = MachineInfo.getIpAddress(configuration.getNetworkInterface());
调用getIpAddress方法时,如果机器中多个ip地址,比如虚拟机ip,就会产生ip绑定bug,导致executor服务不正常,然后在前端显示时一直在排队中。
建议直接有个ip配置项来修复这个bug

@jefftlin jefftlin changed the title Exchangis配置好mysql->mysql 任务后,点击执行,任务一直处于排队状态 Exchange is configured mysql->mysql task, then click execute, and the task has been queued. May 28, 2022
@jefftlin jefftlin added the help wanted Extra attention is needed label May 28, 2022
@jefftlin jefftlin reopened this May 30, 2022
@ocean-zhc
Copy link

ocean-zhc commented Jun 23, 2022

根据指定ip获取网卡名称,脚本如下:
1、比如你需要绑定的executor的ip是10.0.0.14
2、获取网卡名称如下:

#!/bin/bash
ip="10.0.0.14"
interfaces=(`ip l | awk -F":"  '/^[^ ]/{print $2}'| awk '{print $1}'`)
for interface in ${interfaces[*]};do
     rs=`ip a show $interface| grep $ip`
     if [ -n "$rs"   ];then
         echo $interface                                                                                                                                                   
         break
     fi
done

3、将获取的网卡名字,比如第二步输出的结果是“em1”
4、将第3步骤的结果配置到/wedatasphere-exchangis-0.5.0.RELEASE/modules/exchangis-executor/conf/bootstrap.yml

network:
interface:
name: "em1"
5、重启exchangis-executor、以及exchangis-service服务

./bin/start.sh -m exchangis-executor
./bin/start.sh -m exchangis-service
6、大功告成,附上一张测试成功的截图(hive同步mysql,一条数据)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants