Debug HDFS (远程调试HDFS)

替换bin/hdfs里的相应的启动配置
如果不替换直接添加,会有
ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.
Error occurred during initialization of VM
agent library failed to init: jdwp
的错误
当然可以用echo看看启动配置里原来是什么

用sbin/hadoop-daemon.sh start datanode
sbin/hadoop-daemon.sh start namenode启动

你可能感兴趣的:(hdfs)