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/02/20 09:19:39 UTC

[GitHub] [hadoop-ozone] elek opened a new pull request #571: HDDS-3042. Support running full Ratis pipeline from IDE (IntelliJ)

elek opened a new pull request #571: HDDS-3042. Support running full Ratis pipeline from IDE (IntelliJ)
URL: https://github.com/apache/hadoop-ozone/pull/571
 
 
   ## What changes were proposed in this pull request?
   
   [HDDS-1522](https://issues.apache.org/jira/browse/HDDS-1522) introduced a method to run full cluster in IntelliJ. The runner configurations can be copied with a shell script and a basic `ozone-site.xml` and log configuration to make it easy to run ozone from IDE.
   
   Unfortunately this setup supports only one Datanode and it's hard to debug full Ozone pipeline (3 datanodes) from IDE.
   
   This patch provides 3 different configuration for 3 datanodes with different ports to make it possible to run them on the same host from the IDE.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-3042
   
   ## How was this patch tested?
   
   Copy the scripts to the IntelliJ:
   
   ```
   ./hadoop-ozone/dev-support/intellij/install-runconfigs.sh
   ```
   
   And run the following run Configuration (in this order)
    * StorageContainerManagerInit
    * StorageContainerManager
    * OzoneManagerInit
    * OzoneManager
    * Datanode1
    * Datanode2
    * Datanode3
   
   You can test the cluster with the OzoneShell runner (it creates a volume, but it can be adjusted to create a bucket and put a key)
    

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] elek commented on a change in pull request #571: HDDS-3042. Support running full Ratis pipeline from IDE (IntelliJ)

Posted by GitBox <gi...@apache.org>.
elek commented on a change in pull request #571: HDDS-3042. Support running full Ratis pipeline from IDE (IntelliJ)
URL: https://github.com/apache/hadoop-ozone/pull/571#discussion_r394476150
 
 

 ##########
 File path: hadoop-ozone/dev-support/intellij/runConfigurations/Datanode2.xml
 ##########
 @@ -0,0 +1,35 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<component name="ProjectRunConfigurationManager">
+  <configuration default="false" name="Datanode2" type="Application" factoryName="Application">
+    <option name="ALTERNATIVE_JRE_PATH" value="13" />
 
 Review comment:
   Good point. Those lines seem to be optional. I removed them...

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] xiaoyuyao merged pull request #571: HDDS-3042. Support running full Ratis pipeline from IDE (IntelliJ)

Posted by GitBox <gi...@apache.org>.
xiaoyuyao merged pull request #571: HDDS-3042. Support running full Ratis pipeline from IDE (IntelliJ)
URL: https://github.com/apache/hadoop-ozone/pull/571
 
 
   

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] xiaoyuyao commented on a change in pull request #571: HDDS-3042. Support running full Ratis pipeline from IDE (IntelliJ)

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #571: HDDS-3042. Support running full Ratis pipeline from IDE (IntelliJ)
URL: https://github.com/apache/hadoop-ozone/pull/571#discussion_r393391039
 
 

 ##########
 File path: hadoop-ozone/dev-support/intellij/runConfigurations/Datanode2.xml
 ##########
 @@ -0,0 +1,35 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<component name="ProjectRunConfigurationManager">
+  <configuration default="false" name="Datanode2" type="Application" factoryName="Application">
+    <option name="ALTERNATIVE_JRE_PATH" value="13" />
 
 Review comment:
   Some setup may not have JRE 13. Should we keep JDK8 as a minimum supported Java version that is common on Mac Dev box? 

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org