Remove sensitive info (#692)
This commit is contained in:
@ -244,7 +244,7 @@
|
||||
WITH BROKER my_hdfs_broker
|
||||
(
|
||||
"hadoop.security.authentication" = "kerberos",
|
||||
"kerberos_principal"="palo@BAIDU.COM",
|
||||
"kerberos_principal"="doris@YOUR.COM",
|
||||
"kerberos_keytab"="/home/palo/palo.keytab"
|
||||
)
|
||||
|
||||
@ -261,7 +261,7 @@
|
||||
WITH BROKER my_hdfs_broker
|
||||
(
|
||||
"hadoop.security.authentication"="kerberos",
|
||||
"kerberos_principal"="palo@BAIDU.COM",
|
||||
"kerberos_principal"="doris@YOUR.COM",
|
||||
"kerberos_keytab_content"="BQIAAABEAAEACUJBSURVLkNPTQAEcGFsbw"
|
||||
)
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ import java.util.List;
|
||||
import io.netty.handler.codec.http.HttpMethod;
|
||||
|
||||
// Format:
|
||||
// http://username:password@10.73.150.30:8138/api/show_proc?path=/
|
||||
// http://username:password@192.168.1.1:8030/api/show_proc?path=/
|
||||
public class ShowProcAction extends RestBaseAction {
|
||||
private static final Logger LOG = LogManager.getLogger(ShowProcAction.class);
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ public class AmbariDeployManagerTest {
|
||||
|
||||
Field ambariUrlF = manager.getClass().getDeclaredField("ambariUrl");
|
||||
ambariUrlF.setAccessible(true);
|
||||
ambariUrlF.set(manager, "180.76.168.210:8080");
|
||||
ambariUrlF.set(manager, "127.0.0.1:8080");
|
||||
|
||||
Field clusterNameF = manager.getClass().getDeclaredField("clusterName");
|
||||
clusterNameF.setAccessible(true);
|
||||
@ -60,7 +60,7 @@ public class AmbariDeployManagerTest {
|
||||
|
||||
Field blueprintF = manager.getClass().getDeclaredField("blueprintUrl");
|
||||
blueprintF.setAccessible(true);
|
||||
blueprintF.set(manager, "http://180.76.168.210:8080/api/v1/clusters/BDP?format=blueprint");
|
||||
blueprintF.set(manager, "http://127.0.0.1:8080/api/v1/clusters/BDP?format=blueprint");
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -85,14 +85,14 @@ public class AmbariDeployManagerTest {
|
||||
}
|
||||
|
||||
private String getBlueprint() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
|
||||
String res = Util.getResultForUrl("http://180.76.168.210:8080/api/v1/clusters/BDP?format=blueprint",
|
||||
String res = Util.getResultForUrl("http://127.0.0.1:8080/api/v1/clusters/BDP?format=blueprint",
|
||||
null, 2000, 2000);
|
||||
return res;
|
||||
}
|
||||
|
||||
private String getComponent(String comp)
|
||||
throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
|
||||
String res = Util.getResultForUrl("http://180.76.168.210:8080/api/v1/clusters/BDP/services/PALO/components/"
|
||||
String res = Util.getResultForUrl("http://127.0.0.1:8080/api/v1/clusters/BDP/services/PALO/components/"
|
||||
+ comp, null, 2000, 2000);
|
||||
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user