当纱线启动进行远程调试时,我遇到以下错误?

时间:2014-09-18 14:32:17

标签: java eclipse remote-debugging yarn

我有两个虚拟机的纱线集群。我想用eclipse进行远程调试。我在yarn-env.sh

中添加了这个代码块
YARN_OPTS="$YARN_OPTS -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9999"

当纱线启动进行远程调试时,我遇到了以下错误,

master: ERROR: transport error 202: bind failed: Address already in use
master: ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
master: JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

1 个答案:

答案 0 :(得分:0)

以下vmargument正在使用commen

-vmargs -Xdebug -agentlib:jdwp = transport = dt_socket,address = 2020,server = y,suspend = n