This is an automated email from the ASF dual-hosted git repository. aengineer pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push: new b7de735 HDDS-1522. Provide intellij runConfiguration for Ozone components. Contributed by Elek, Marton. b7de735 is described below commit b7de7351590c555cf4f810be490f183a2d36f9e3 Author: Elek, Márton <e...@users.noreply.github.com> AuthorDate: Thu May 16 16:38:50 2019 +0200 HDDS-1522. Provide intellij runConfiguration for Ozone components. Contributed by Elek, Marton. --- .../dev-support/intellij/install-runconfigs.sh | 21 +++++++ hadoop-ozone/dev-support/intellij/log4j.properties | 18 ++++++ hadoop-ozone/dev-support/intellij/ozone-site.xml | 66 ++++++++++++++++++++++ .../intellij/runConfigurations/Datanode.xml | 33 +++++++++++ .../intellij/runConfigurations/FreonStandalone.xml | 33 +++++++++++ .../intellij/runConfigurations/OzoneManager.xml | 33 +++++++++++ .../runConfigurations/OzoneManagerInit.xml | 33 +++++++++++ .../intellij/runConfigurations/OzoneShell.xml | 33 +++++++++++ .../intellij/runConfigurations/Recon.xml | 33 +++++++++++ .../intellij/runConfigurations/S3Gateway.xml | 33 +++++++++++ .../runConfigurations/StorageContainerManager.xml | 33 +++++++++++ .../StorageContainerManagerInit.xml | 33 +++++++++++ 12 files changed, 402 insertions(+) diff --git a/hadoop-ozone/dev-support/intellij/install-runconfigs.sh b/hadoop-ozone/dev-support/intellij/install-runconfigs.sh new file mode 100755 index 0000000..fc877bd --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/install-runconfigs.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +# 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. +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +SRC_DIR="$SCRIPT_DIR/runConfigurations" +DEST_DIR="$SCRIPT_DIR/../../../.idea/runConfigurations/" +mkdir -p "$DEST_DIR" +#shellcheck disable=SC2010 +ls -1 "$SRC_DIR" | grep -v ozone-site.xml | xargs -n1 -I FILE cp "$SRC_DIR/FILE" "$DEST_DIR" diff --git a/hadoop-ozone/dev-support/intellij/log4j.properties b/hadoop-ozone/dev-support/intellij/log4j.properties new file mode 100644 index 0000000..bc62e32 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/log4j.properties @@ -0,0 +1,18 @@ +# Licensed 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. +# log4j configuration used during build and unit tests +log4j.rootLogger=INFO,stdout +log4j.threshold=ALL +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n +log4j.logger.io.jagertraecing=DEBUG diff --git a/hadoop-ozone/dev-support/intellij/ozone-site.xml b/hadoop-ozone/dev-support/intellij/ozone-site.xml new file mode 100644 index 0000000..d3209c1 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/ozone-site.xml @@ -0,0 +1,66 @@ +<!-- + 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. +--> +<configuration> + <property> + <name>hdds.profiler.endpoint.enabled</name> + <value>true</value> + </property> + <property> + <name>ozone.scm.block.client.address</name> + <value>localhost</value> + </property> + <property> + <name>ozone.enabled</name> + <value>True</value> + </property> + <property> + <name>ozone.scm.datanode.id</name> + <value>/tmp/datanode.id</value> + </property> + <property> + <name>ozone.scm.client.address</name> + <value>localhost</value> + </property> + <property> + <name>ozone.metadata.dirs</name> + <value>/tmp/metadata</value> + </property> + <property> + <name>ozone.scm.names</name> + <value>localhost</value> + </property> + <property> + <name>ozone.om.address</name> + <value>localhost</value> + </property> + <property> + <name>ozone.enabled</name> + <value>true</value> + </property> + <property> + <name>ozone.scm.container.size</name> + <value>10MB</value> + </property> + <property> + <name>ozone.scm.block.size</name> + <value>1MB</value> + </property> + <property> + <name>hdds.datanode.storage.utilization.critical.threshold</name> + <value>0.99</value> + </property> +</configuration> diff --git a/hadoop-ozone/dev-support/intellij/runConfigurations/Datanode.xml b/hadoop-ozone/dev-support/intellij/runConfigurations/Datanode.xml new file mode 100644 index 0000000..7f2a3e1 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/Datanode.xml @@ -0,0 +1,33 @@ +<!-- + 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="Datanode" type="Application" factoryName="Application"> + <option name="MAIN_CLASS_NAME" value="org.apache.hadoop.ozone.HddsDatanodeService" /> + <module name="hadoop-ozone-datanode" /> + <option name="PROGRAM_PARAMETERS" value="-conf=hadoop-ozone/dev-support/intellij/ozone-site.xml" /> + <option name="VM_PARAMETERS" value="-Dlog4j.configuration=file:hadoop-ozone/dev-support/intellij/log4j.properties" /> + <extension name="coverage"> + <pattern> + <option name="PATTERN" value="org.apache.hadoop.ozone.*" /> + <option name="ENABLED" value="true" /> + </pattern> + </extension> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> +</component> \ No newline at end of file diff --git a/hadoop-ozone/dev-support/intellij/runConfigurations/FreonStandalone.xml b/hadoop-ozone/dev-support/intellij/runConfigurations/FreonStandalone.xml new file mode 100644 index 0000000..9d964d4 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/FreonStandalone.xml @@ -0,0 +1,33 @@ +<!-- + 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="FreonStandalone" type="Application" factoryName="Application"> + <option name="MAIN_CLASS_NAME" value="org.apache.hadoop.ozone.freon.Freon" /> + <module name="hadoop-ozone-tools" /> + <option name="PROGRAM_PARAMETERS" value="-conf=hadoop-ozone/dev-support/intellij/ozone-site.xml rk" /> + <option name="VM_PARAMETERS" value="-Dlog4j.configuration=file:hadoop-ozone/dev-support/intellij/log4j.properties" /> + <extension name="coverage"> + <pattern> + <option name="PATTERN" value="org.apache.hadoop.ozone.*" /> + <option name="ENABLED" value="true" /> + </pattern> + </extension> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> +</component> \ No newline at end of file diff --git a/hadoop-ozone/dev-support/intellij/runConfigurations/OzoneManager.xml b/hadoop-ozone/dev-support/intellij/runConfigurations/OzoneManager.xml new file mode 100644 index 0000000..2d4a308 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/OzoneManager.xml @@ -0,0 +1,33 @@ +<!-- + 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="OzoneManager" type="Application" factoryName="Application"> + <option name="MAIN_CLASS_NAME" value="org.apache.hadoop.ozone.om.OzoneManager" /> + <module name="hadoop-ozone-ozone-manager" /> + <option name="PROGRAM_PARAMETERS" value="-conf=hadoop-ozone/dev-support/intellij/ozone-site.xml" /> + <option name="VM_PARAMETERS" value="-Dlog4j.configuration=file:hadoop-ozone/dev-support/intellij/log4j.properties" /> + <extension name="coverage"> + <pattern> + <option name="PATTERN" value="org.apache.hadoop.ozone.*" /> + <option name="ENABLED" value="true" /> + </pattern> + </extension> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> +</component> \ No newline at end of file diff --git a/hadoop-ozone/dev-support/intellij/runConfigurations/OzoneManagerInit.xml b/hadoop-ozone/dev-support/intellij/runConfigurations/OzoneManagerInit.xml new file mode 100644 index 0000000..7988ff1 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/OzoneManagerInit.xml @@ -0,0 +1,33 @@ +<!-- + 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="OzoneManagerInit" type="Application" factoryName="Application"> + <option name="MAIN_CLASS_NAME" value="org.apache.hadoop.ozone.om.OzoneManager" /> + <module name="hadoop-ozone-ozone-manager" /> + <option name="PROGRAM_PARAMETERS" value="-conf=hadoop-ozone/dev-support/intellij/ozone-site.xml --init" /> + <option name="VM_PARAMETERS" value="-Dlog4j.configuration=file:hadoop-ozone/dev-support/intellij/log4j.properties" /> + <extension name="coverage"> + <pattern> + <option name="PATTERN" value="org.apache.hadoop.ozone.*" /> + <option name="ENABLED" value="true" /> + </pattern> + </extension> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> +</component> \ No newline at end of file diff --git a/hadoop-ozone/dev-support/intellij/runConfigurations/OzoneShell.xml b/hadoop-ozone/dev-support/intellij/runConfigurations/OzoneShell.xml new file mode 100644 index 0000000..2d0bf80 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/OzoneShell.xml @@ -0,0 +1,33 @@ +<!-- + 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="OzoneShell" type="Application" factoryName="Application"> + <option name="MAIN_CLASS_NAME" value="org.apache.hadoop.ozone.web.ozShell.OzoneShell" /> + <module name="hadoop-ozone-ozone-manager" /> + <option name="PROGRAM_PARAMETERS" value="-conf=hadoop-ozone/dev-support/intellij/ozone-site.xml volume create /vol1" /> + <option name="VM_PARAMETERS" value="-Dlog4j.configuration=file:hadoop-ozone/dev-support/intellij/log4j.properties" /> + <extension name="coverage"> + <pattern> + <option name="PATTERN" value="org.apache.hadoop.ozone.*" /> + <option name="ENABLED" value="true" /> + </pattern> + </extension> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> +</component> \ No newline at end of file diff --git a/hadoop-ozone/dev-support/intellij/runConfigurations/Recon.xml b/hadoop-ozone/dev-support/intellij/runConfigurations/Recon.xml new file mode 100644 index 0000000..6c8e0ec --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/Recon.xml @@ -0,0 +1,33 @@ +<!-- + 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="Recon" type="Application" factoryName="Application"> + <option name="MAIN_CLASS_NAME" value="org.apache.hadoop.ozone.recon.ReconServer" /> + <module name="hadoop-ozone-recon" /> + <option name="PROGRAM_PARAMETERS" value="-conf=hadoop-ozone/dev-support/intellij/ozone-site.xml" /> + <option name="VM_PARAMETERS" value="-Dlog4j.configuration=file:hadoop-ozone/dev-support/intellij/log4j.properties" /> + <extension name="coverage"> + <pattern> + <option name="PATTERN" value="org.apache.hadoop.ozone.*" /> + <option name="ENABLED" value="true" /> + </pattern> + </extension> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> +</component> \ No newline at end of file diff --git a/hadoop-ozone/dev-support/intellij/runConfigurations/S3Gateway.xml b/hadoop-ozone/dev-support/intellij/runConfigurations/S3Gateway.xml new file mode 100644 index 0000000..93f4a9d --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/S3Gateway.xml @@ -0,0 +1,33 @@ +<!-- + 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="S3Gateway" type="Application" factoryName="Application"> + <option name="MAIN_CLASS_NAME" value="org.apache.hadoop.ozone.s3.Gateway" /> + <module name="hadoop-ozone-s3gateway" /> + <option name="PROGRAM_PARAMETERS" value="-conf=hadoop-ozone/dev-support/intellij/ozone-site.xml" /> + <option name="VM_PARAMETERS" value="-Dlog4j.configuration=file:hadoop-ozone/dev-support/intellij/log4j.properties" /> + <extension name="coverage"> + <pattern> + <option name="PATTERN" value="org.apache.hadoop.ozone.*" /> + <option name="ENABLED" value="true" /> + </pattern> + </extension> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> +</component> \ No newline at end of file diff --git a/hadoop-ozone/dev-support/intellij/runConfigurations/StorageContainerManager.xml b/hadoop-ozone/dev-support/intellij/runConfigurations/StorageContainerManager.xml new file mode 100644 index 0000000..40097cf --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/StorageContainerManager.xml @@ -0,0 +1,33 @@ +<!-- + 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="StorageContainerManager" type="Application" factoryName="Application" nameIsGenerated="falsee"> + <option name="MAIN_CLASS_NAME" value="org.apache.hadoop.hdds.scm.server.StorageContainerManager" /> + <module name="hadoop-hdds-server-scm" /> + <option name="PROGRAM_PARAMETERS" value="-conf=hadoop-ozone/dev-support/intellij/ozone-site.xml" /> + <option name="VM_PARAMETERS" value="-Dlog4j.configuration=file:hadoop-ozone/dev-support/intellij/log4j.properties" /> + <extension name="coverage"> + <pattern> + <option name="PATTERN" value="org.apache.hadoop.ozone.*" /> + <option name="ENABLED" value="true" /> + </pattern> + </extension> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> +</component> diff --git a/hadoop-ozone/dev-support/intellij/runConfigurations/StorageContainerManagerInit.xml b/hadoop-ozone/dev-support/intellij/runConfigurations/StorageContainerManagerInit.xml new file mode 100644 index 0000000..8178f24 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/StorageContainerManagerInit.xml @@ -0,0 +1,33 @@ +<!-- + 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="StorageContainerManagerInit" type="Application" factoryName="Application" nameIsGenerated="false"> + <option name="MAIN_CLASS_NAME" value="org.apache.hadoop.hdds.scm.server.StorageContainerManager" /> + <module name="hadoop-hdds-server-scm" /> + <option name="PROGRAM_PARAMETERS" value="-conf=hadoop-ozone/dev-support/intellij/ozone-site.xml --init" /> + <option name="VM_PARAMETERS" value="-Dlog4j.configuration=file:hadoop-ozone/dev-support/intellij/log4j.properties" /> + <extension name="coverage"> + <pattern> + <option name="PATTERN" value="org.apache.hadoop.ozone.*" /> + <option name="ENABLED" value="true" /> + </pattern> + </extension> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> +</component> --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org