neils-dev opened a new pull request #2081: URL: https://github.com/apache/ozone/pull/2081
## What changes were proposed in this pull request? Added intellij support for ozone fs shell commands for osf://, osf3:// such as `-ls -R osf3` through an intellij run configuration. Configuration file, _OzoneFsShell.xml_ runs the `hadoop-ozone-filesystem` main class executing shell commands through program arguments such as `-ls` and `-rm -R`. Run configuration executing through `hadoop-ozone-filesystem` requires two items added to the java classpath: 1. core-site.xml (_$PROJECT_DIR$/hadoop-ozone/dev-support/intellij_) resource 2. commons-cli (_$MAVEN_REPOSITORY$/commons-cli/commons-cli/1.2/commons-cli-1.2.jar_) jar - this jar is **_already_ included** in the ozone build from _hadoop-hdds-tools/pom.xml_ **Also** in addition the environment variable _OZONE_CONF_DIR_ is set to the location of the core-site.xml configuration in the _/hadoop-ozone/dev-support/intellij_ directory. The two additions the the java classpath are appended to the build classpath through the VM Arguments **_-Xbootclasspath/a_** for the ide environment. In doing so, the classpath is set for the ide environment without modifying the ozone production/test build environment. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-5007 ## How was this patch tested? Patch is manually tested through the intellij run configuration ide environment. Test is setup by the following steps: - volume create /vol1 - bucket create /vol1/bucket1 - key put /vol1/bucket1/key1 /tmp/myfile OzoneFsShell run configuration is configured with program argument `-ls -R osf3://bucket1.vol1`. Run configuration, OzoneFsShell is run. Expected output in intellij terminal window is: -rw-rw-rw- 3 neil neil 12 2021-03-24 17:49 o3fs://bucket1.vol1/key1 Process finished with exit code 0 Tested with both Java 8 and Java 11 compilers. See attached images.    -- 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]
