-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-3878. Make OMHA serviceID optional if one (but only one) is defined in the config #1149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 20 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d2e2869
fix1
elek bd8b353
update om ha compose fix
elek 0c540c5
fix ofs without host names
elek 8f0a92c
fix unit test
elek e5b35b1
fix acceptance tests
elek 9c5e18e
add missing stop command
elek ccfdd3e
Merge remote-tracking branch 'origin/master' into HDDS-3878
elek 689f6d2
rollback irrelevant changes
elek ab346cb
fix rpc client generation
elek 8c4500b
fix OzoneClientFactory
elek 36b9295
Merge remote-tracking branch 'origin/master' into HDDS-3878
adoroszlai 4772331
trigger new CI check
adoroszlai 0fa87ad
trigger new CI check
adoroszlai 1c7a9ba
trigger new CI check
adoroszlai 3b860ef
trigger new CI check
adoroszlai 732e83c
revert ozone fs related changes
elek 78d4c7a
Merge remote-tracking branch 'elek/HDDS-3878' into HDDS-3878
elek 024d7a4
fix om related freon tests
elek 0818fa8
add more unit test
elek dfc0766
Merge remote-tracking branch 'origin/master' into HDDS-3878
elek 29550ce
typo fix
elek 9980b56
one line method def
elek 3f305df
Merge remote-tracking branch 'origin/master' into HDDS-3878
elek 9776c88
retrigger build with empty commit
elek 872d13e
fix unit tests
elek 5129554
restore original om-ha-tests
elek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
hadoop-hdds/test-utils/src/main/java/org/apache/hadoop/test/InMemoryConfiguration.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| /* | ||
| * 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 | ||
| * <p> | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * <p> | ||
| * 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. | ||
| */ | ||
| package org.apache.hadoop.test; | ||
|
|
||
| import java.io.IOException; | ||
| import java.util.Collection; | ||
| import java.util.HashMap; | ||
| import java.util.Map; | ||
|
|
||
| import org.apache.hadoop.hdds.conf.MutableConfigurationSource; | ||
|
|
||
| /** | ||
| * In memory, mutable configuration source for testing.. | ||
elek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| */ | ||
| public class InMemoryConfiguration implements MutableConfigurationSource { | ||
|
|
||
| private Map<String, String> configs = new HashMap<>(); | ||
|
|
||
| public InMemoryConfiguration() { | ||
| } | ||
|
|
||
| public InMemoryConfiguration(String key, String value) { | ||
| set(key, value); | ||
| } | ||
|
|
||
| @Override | ||
| public String get(String key) { | ||
| return configs.get(key); | ||
| } | ||
|
|
||
| @Override | ||
| public Collection<String> getConfigKeys() { | ||
| return configs.keySet(); | ||
| } | ||
|
|
||
| @Override | ||
| public char[] getPassword(String key) throws IOException { | ||
| return configs.get(key).toCharArray(); | ||
| } | ||
|
|
||
| @Override | ||
| public void set(String key, String value) { | ||
| configs.put(key, value); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
93 changes: 93 additions & 0 deletions
93
hadoop-ozone/dist/src/main/compose/ozone-ha/docker-compose.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| # 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. | ||
|
|
||
| version: "3.4" | ||
|
|
||
| # reusable fragments (see https://docs.docker.com/compose/compose-file/#extension-fields) | ||
| x-common-config: | ||
| &common-config | ||
| image: apache/ozone-runner:${OZONE_RUNNER_VERSION} | ||
| volumes: | ||
| - ../..:/opt/hadoop | ||
| env_file: | ||
| - docker-config | ||
|
|
||
| x-replication: | ||
| &replication | ||
| OZONE-SITE.XML_ozone.replication: ${OZONE_REPLICATION_FACTOR:-1} | ||
|
|
||
| services: | ||
| datanode: | ||
| <<: *common-config | ||
| ports: | ||
| - 9864 | ||
| - 9882 | ||
| environment: | ||
| <<: *replication | ||
| command: ["ozone","datanode"] | ||
| om1: | ||
| <<: *common-config | ||
| environment: | ||
| ENSURE_OM_INITIALIZED: /data/metadata/om/current/VERSION | ||
| <<: *replication | ||
| ports: | ||
| - 9874 | ||
| - 9862 | ||
| hostname: om1 | ||
| command: ["ozone","om"] | ||
| om2: | ||
| <<: *common-config | ||
| environment: | ||
| ENSURE_OM_INITIALIZED: /data/metadata/om/current/VERSION | ||
| <<: *replication | ||
| ports: | ||
| - 9874 | ||
| - 9862 | ||
| hostname: om2 | ||
| command: ["ozone","om"] | ||
| om3: | ||
| <<: *common-config | ||
| environment: | ||
| ENSURE_OM_INITIALIZED: /data/metadata/om/current/VERSION | ||
| <<: *replication | ||
| ports: | ||
| - 9874 | ||
| - 9862 | ||
| hostname: om3 | ||
| command: ["ozone","om"] | ||
| scm: | ||
| <<: *common-config | ||
| ports: | ||
| - 9876:9876 | ||
| environment: | ||
| ENSURE_SCM_INITIALIZED: /data/metadata/scm/current/VERSION | ||
| OZONE-SITE.XML_hdds.scm.safemode.min.datanode: ${OZONE_SAFEMODE_MIN_DATANODES:-1} | ||
| <<: *replication | ||
| command: ["ozone","scm"] | ||
| s3g: | ||
| <<: *common-config | ||
| environment: | ||
| <<: *replication | ||
| ports: | ||
| - 9878:9878 | ||
| command: ["ozone","s3g"] | ||
| recon: | ||
| <<: *common-config | ||
| ports: | ||
| - 9888:9888 | ||
| environment: | ||
| <<: *replication | ||
| command: ["ozone","recon"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 0 additions & 99 deletions
99
hadoop-ozone/dist/src/main/compose/ozone-om-ha-s3/docker-compose.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
hadoop-ozone/dist/src/main/compose/ozone-om-ha/.ssh/authorized_keys
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.