[
https://issues.apache.org/jira/browse/HBASE-23760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17026058#comment-17026058
]
Nick Dimiduk commented on HBASE-23760:
--------------------------------------
{noformat}
+ public static void setSSLConfiguration(HBaseTestingUtility utility, Class
clazz)
+ throws Exception {
+ Configuration conf = utility.getConfiguration();
+ conf.set(DFSConfigKeys.DFS_HTTP_POLICY_KEY,
HttpConfig.Policy.HTTPS_ONLY.name());
+ conf.set(DFSConfigKeys.DFS_NAMENODE_HTTPS_ADDRESS_KEY, "localhost:0");
+ conf.set(DFSConfigKeys.DFS_DATANODE_HTTPS_ADDRESS_KEY, "localhost:0");
{noformat}
Can these use "127.0.0.1" instead of "localhost"? I think a big part of our
test instability due to hostname resolution.
Skimmed, looks like a nice cleanup/consolidation of concerns. +1
> (2.1) Helper method to configure secure DFS cluster for tests
> -------------------------------------------------------------
>
> Key: HBASE-23760
> URL: https://issues.apache.org/jira/browse/HBASE-23760
> Project: HBase
> Issue Type: Task
> Components: security, test
> Reporter: Josh Elser
> Assignee: Josh Elser
> Priority: Major
> Fix For: 2.1.9
>
> Attachments: HBASE-23760.001.branch-2.1.patch
>
>
> Let's get [~weichiu]'s HBASE-20950 onto branch-2.1. It will make the backport
> for HBASE-17115 that much easier.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)