You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/06/01 14:24:30 UTC
[GitHub] [hadoop-ozone] maobaolong commented on pull request #991: HDDS-3686. Insert an argument of ozone shell to accept jvm arguments
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org