maobaolong commented on pull request #991:
URL: https://github.com/apache/hadoop-ozone/pull/991#issuecomment-636890274


   @sodonnel  Thank you for telling this. In fact i used to use HADOOP_OPTS and 
HADOOP_CLIENT_OPTS to achieve my debug purpose, but it hard to support me to 
write the following script.
   
   ```bash
   bin/ozone scm --init
   bin/ozone --daemon start scm
   sh /Users/mbl/projects/github/hadoop-ozone/.project/hadoop/copyconfig.sh om
   bin/ozone om --init
   bin/ozone --daemon start om
   bin/ozone --daemon start recon
   bin/ozone sh vol create myvol;  bin/ozone sh bucket create myvol/mybucket
   bin/ozone --daemon start datanode
   
   ```
   
   I want to start the debug agent of each ozone server with different port. If 
we have this PR, we can 
   ```bash
   
   bin/ozone scm --init
   bin/ozone --jvmargs " 
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5000" --daemon 
start scm
   bin/ozone om --init
   bin/ozone --jvmargs " 
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5001"  --daemon 
start om
   bin/ozone --jvmargs " 
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5002"  --daemon 
start recon
   bin/ozone sh vol create myvol;  bin/ozone sh bucket create myvol/mybucket
   bin/ozone --jvmargs " 
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5003"  --daemon 
start datanode
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to