You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2019/06/04 16:53:32 UTC
[GitHub] [hadoop] bharatviswa504 commented on a change in pull request #703:
HDDS-1371. Download RocksDB checkpoint from OM Leader to Follower.
bharatviswa504 commented on a change in pull request #703: HDDS-1371. Download RocksDB checkpoint from OM Leader to Follower.
URL: https://github.com/apache/hadoop/pull/703#discussion_r290395702
##########
File path: hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/HddsUtils.java
##########
@@ -475,4 +478,24 @@ public static InetSocketAddress getScmAddressForSecurityProtocol(
.orElse(ScmConfigKeys.OZONE_SCM_SECURITY_SERVICE_PORT_DEFAULT));
}
+ /**
+ * Get http policy.
+ */
+ public static HttpConfig.Policy getHttpPolicy(Configuration conf) {
+ String policyStr = conf.get(OzoneConfigKeys.OZONE_HTTP_POLICY_KEY);
+ if (policyStr == null) {
+ policyStr = conf.get(DFSConfigKeys.DFS_HTTP_POLICY_KEY,
+ DFSConfigKeys.DFS_HTTP_POLICY_DEFAULT);
+ }
+
+ HttpConfig.Policy policy = HttpConfig.Policy.fromString(policyStr);
+ if (policy == null) {
+ throw new IllegalArgumentException("Unregonized value '"
Review comment:
NIT: Unregonized -> Unrecognized.
----------------------------------------------------------------
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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org