我有一个带有两个虚拟机的纱线集群。我想用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)
下面的vmargument在comment 中工作
-vmargs-Xdebug-agentlib:jdwp=传输=dt_socket,地址=2020,服务器=y,挂起=n