From b7de7351590c555cf4f810be490f183a2d36f9e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elek=2C=20M=C3=A1rton?= Date: Thu, 16 May 2019 16:38:50 +0200 Subject: [PATCH] HDDS-1522. Provide intellij runConfiguration for Ozone components. Contributed by Elek, Marton. --- .../intellij/install-runconfigs.sh | 21 ++++++ .../dev-support/intellij/log4j.properties | 18 +++++ .../dev-support/intellij/ozone-site.xml | 66 +++++++++++++++++++ .../intellij/runConfigurations/Datanode.xml | 33 ++++++++++ .../runConfigurations/FreonStandalone.xml | 33 ++++++++++ .../runConfigurations/OzoneManager.xml | 33 ++++++++++ .../runConfigurations/OzoneManagerInit.xml | 33 ++++++++++ .../intellij/runConfigurations/OzoneShell.xml | 33 ++++++++++ .../intellij/runConfigurations/Recon.xml | 33 ++++++++++ .../intellij/runConfigurations/S3Gateway.xml | 33 ++++++++++ .../StorageContainerManager.xml | 33 ++++++++++ .../StorageContainerManagerInit.xml | 33 ++++++++++ 12 files changed, 402 insertions(+) create mode 100755 hadoop-ozone/dev-support/intellij/install-runconfigs.sh create mode 100644 hadoop-ozone/dev-support/intellij/log4j.properties create mode 100644 hadoop-ozone/dev-support/intellij/ozone-site.xml create mode 100644 hadoop-ozone/dev-support/intellij/runConfigurations/Datanode.xml create mode 100644 hadoop-ozone/dev-support/intellij/runConfigurations/FreonStandalone.xml create mode 100644 hadoop-ozone/dev-support/intellij/runConfigurations/OzoneManager.xml create mode 100644 hadoop-ozone/dev-support/intellij/runConfigurations/OzoneManagerInit.xml create mode 100644 hadoop-ozone/dev-support/intellij/runConfigurations/OzoneShell.xml create mode 100644 hadoop-ozone/dev-support/intellij/runConfigurations/Recon.xml create mode 100644 hadoop-ozone/dev-support/intellij/runConfigurations/S3Gateway.xml create mode 100644 hadoop-ozone/dev-support/intellij/runConfigurations/StorageContainerManager.xml create mode 100644 hadoop-ozone/dev-support/intellij/runConfigurations/StorageContainerManagerInit.xml 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 0000000000..fc877bdde6 --- /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 0000000000..bc62e32219 --- /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 0000000000..d3209c15cb --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/ozone-site.xml @@ -0,0 +1,66 @@ + + + + hdds.profiler.endpoint.enabled + true + + + ozone.scm.block.client.address + localhost + + + ozone.enabled + True + + + ozone.scm.datanode.id + /tmp/datanode.id + + + ozone.scm.client.address + localhost + + + ozone.metadata.dirs + /tmp/metadata + + + ozone.scm.names + localhost + + + ozone.om.address + localhost + + + ozone.enabled + true + + + ozone.scm.container.size + 10MB + + + ozone.scm.block.size + 1MB + + + hdds.datanode.storage.utilization.critical.threshold + 0.99 + + 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 0000000000..7f2a3e1cf8 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/Datanode.xml @@ -0,0 +1,33 @@ + + + + + \ 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 0000000000..9d964d48b6 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/FreonStandalone.xml @@ -0,0 +1,33 @@ + + + + + \ 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 0000000000..2d4a308798 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/OzoneManager.xml @@ -0,0 +1,33 @@ + + + + + \ 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 0000000000..7988ff17f0 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/OzoneManagerInit.xml @@ -0,0 +1,33 @@ + + + + + \ 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 0000000000..2d0bf803ed --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/OzoneShell.xml @@ -0,0 +1,33 @@ + + + + + \ 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 0000000000..6c8e0ec9e8 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/Recon.xml @@ -0,0 +1,33 @@ + + + + + \ 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 0000000000..93f4a9d98d --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/S3Gateway.xml @@ -0,0 +1,33 @@ + + + + + \ 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 0000000000..40097cf6c1 --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/StorageContainerManager.xml @@ -0,0 +1,33 @@ + + + + + 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 0000000000..8178f242ea --- /dev/null +++ b/hadoop-ozone/dev-support/intellij/runConfigurations/StorageContainerManagerInit.xml @@ -0,0 +1,33 @@ + + + + +