Skip to content

Commit

Permalink
Fixing sensitive information
Browse files Browse the repository at this point in the history
  • Loading branch information
SelfImpr001 committed Sep 6, 2020
1 parent 1fd737d commit ec9f28e
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 171 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,53 +333,6 @@ public static String getLinuxLocalIp(Logger log) {

public static void main(String[] args) {

Map resultMap = new HashMap();
String maskUrl = "http://10.255.10.90:8087/api/v1/mask-status?";

RequestBody requestBody = new FormBody.Builder()
.add("targetDb", "bdp_test_ods_mask")
.add("targetTable", "ccpd_dump")
.add("partition", "dcn_id=UA0/type_id=6042/ip=127.0.0.1/ds=2015-04-06")
.build();

FormBody.Builder formBuilder = new FormBody.Builder();

Map<String, String> map = new HashMap<>();
map.put("targetDb", "bdp_test_ods_mask");
map.put("targetTable", "ccpd_dump");
//map.put("partition", "ds=20180925");
map.put("partition", "ds\\=20180925");

//String params = gson.toJson(map);
MediaType JSON = MediaType.parse("application/json; charset=utf-8");

Iterator<String> iterator = map.keySet().iterator();
String key = "";
while(iterator.hasNext()){
key = iterator.next().toString();
formBuilder.add(key, map.get(key));
}

RequestBody requestBody2 = formBuilder.build();

Properties props = new Properties();
// props.put(DataChecker.MASK_APP_ID, "wtss");
// props.put(DataChecker.MASK_APP_TOKEN, "20a0ccdfc0");
//
// Map<String, String> dataMap = HttpUtils.initSelectParams(props);
//
// try {
// String result = HttpUtils.httpClientHandle(maskUrl, requestBody, dataMap);
// System.out.println(result);
// Map resulMap = HttpUtils.getReturnMap(result);
// if("200".equals(resulMap.get("code"))){
// System.out.println("数据查找成功变更datacheck状态");
// }
// } catch (Exception e) {
// e.printStackTrace();
// System.out.println(e.getMessage());
// }

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static class EmbeddedMysqlDataSource extends AzkabanDataSource {

public EmbeddedMysqlDataSource() {
super();
final String url = "jdbc:mysql://127.0.0.1:3306/wtss_qyh_test?useUnicode=true&characterEncoding=UTF-8";
final String url = "jdbc:mysql://10.255.0.76:3306/wtss_qyh_test?useUnicode=true&characterEncoding=UTF-8";
setDriverClassName("com.mysql.jdbc.Driver");
setUrl(url);
setUsername("root");
Expand Down
6 changes: 3 additions & 3 deletions azkaban-db/src/test/java/azkaban/db/AzDBTestUtility.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ public static class EmbeddedMysqlDataSource extends AzkabanDataSource {

public EmbeddedMysqlDataSource() {
super();
final String url = "jdbc:mysql://127.0.0.1:8504/bdp_scheduler_01?useUnicode=true&characterEncoding=UTF-8";
final String url = "jdbc:mysql://localhost:port/bdp_scheduler_01?useUnicode=true&characterEncoding=UTF-8";
setDriverClassName("com.mysql.jdbc.Driver");
setUrl(url);
setUsername("bdpscheduler");
setPassword("bdp@2017");
setUsername("username");
setPassword("password");
}

@Override
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ public static void main(String[] args) {
// p.put("msg.body","msg.body");

p.put("msg.eventchecker.jdo.option.name","msg");
p.put("msg.eventchecker.jdo.option.url","jdbc:mysql://127.0.0.1:3306/wtss_qyh_test?useUnicode=true&characterEncoding=UTF-8");
p.put("msg.eventchecker.jdo.option.username","root");
p.put("msg.eventchecker.jdo.option.password","YmRwI3Jvb3RAMjAxOQ==");
p.put("msg.eventchecker.jdo.option.url","jdbc:mysql://locahost:port/wtss_qyh_test?useUnicode=true&characterEncoding=UTF-8");
p.put("msg.eventchecker.jdo.option.username","username");
p.put("msg.eventchecker.jdo.option.password","password");

EventChecker ec = new EventChecker("AA",p);
ec.run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public static void main(String[] args) {
RequestBody requestBody = new FormBody.Builder()
.add("targetDb", "bdp_test_ods_mask")
.add("targetTable", "ccpd_dump")
.add("partition", "dcn_id=UA0/type_id=6042/ip=127.0.0.1/ds=2015-04-06")
.add("partition", "dcn_id=UA0/type_id=6042/ip=10.240.228.31/ds=2015-04-06")
.build();

FormBody.Builder formBuilder = new FormBody.Builder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,12 @@ public void testLogWithMultipleApplicationIdsAppearingMultipleTimes() throws IOE
bw.write("28-08-2015 12:29:38 PDT Training_clickSelectFeatures INFO - INFO See http://eat1-nertzwp02.grid.linkedin.com:8080/proxy/application_1440264346270_3044/ for details.\n");
bw.write("28-08-2015 12:29:38 PDT Training_clickSelectFeatures INFO - INFO Running job: job_1440264346270_3044\n");
bw.write("28-08-2015 12:30:21 PDT Training_clickSelectFeatures INFO - INFO Closing idle connection Socket[addr=eat1-hcl5481.grid.linkedin.com/172.20.138.228,port=42492,localport=42382] to server eat1-hcl5481.grid.linkedin.com/172.20.138.228:42492\n");
bw.write("28-08-2015 12:30:37 PDT Training_clickSelectFeatures INFO - INFO Closing idle connection Socket[addr=eat1-nertznn01.grid.linkedin.com/127.0.01,port=9000,localport=30453] to server eat1-nertznn01.grid.linkedin.com/127.0.01:9000\n");
bw.write("28-08-2015 12:30:37 PDT Training_clickSelectFeatures INFO - INFO Closing idle connection Socket[addr=eat1-nertznn01.grid.linkedin.com/172.20.158.57,port=9000,localport=30453] to server eat1-nertznn01.grid.linkedin.com/172.20.158.57:9000\n");
bw.write("28-08-2015 12:31:09 PDT Training_clickSelectFeatures INFO - INFO Job job_1440264346270_3044 running in uber mode : false\n");
bw.write("28-08-2015 12:29:38 PDT Training_clickSelectFeatures INFO - INFO Submitted application application_1440264346270_3088\n");
bw.write("28-08-2015 12:29:38 PDT Training_clickSelectFeatures INFO - INFO The url to track the job: http://eat1-nertzwp02.grid.linkedin.com:8080/proxy/application_1440264346270_3088/\n");
bw.write("28-08-2015 12:29:38 PDT Training_clickSelectFeatures INFO - INFO See http://eat1-nertzwp02.grid.linkedin.com:8080/proxy/application_1440264346270_3088/ for details.\n");
bw.write("28-08-2015 12:29:38 PDT Training_clickSelectFeatures INFO - INFO Running job: job_1440264346270_3088\n");
bw.write("28-08-2015 12:30:21 PDT Training_clickSelectFeatures INFO - INFO Closing idle connection Socket[addr=eat1-hcl5481.grid.linkedin.com/172.20.138.228,port=42492,localport=42382] to server eat1-hcl5481.grid.linkedin.com/172.20.138.228:42492\n");
bw.write("28-08-2015 12:30:37 PDT Training_clickSelectFeatures INFO - INFO Closing idle connection Socket[addr=eat1-nertznn01.grid.linkedin.com/127.0.01,port=9000,localport=30453] to server eat1-nertznn01.grid.linkedin.com/127.0.01:9000\n");
bw.write("28-08-2015 12:31:09 PDT Training_clickSelectFeatures INFO - INFO Job job_1440264346270_3088 running in uber mode : false\n");
bw.close();

Expand Down
2 changes: 1 addition & 1 deletion bin/construct/hdp_wtss_deploy_script.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- --------------------------------------------------------
-- 主机: 127.0.0.1
-- 主机: 10.255.4.29
-- 服务器版本: 10.1.9-MariaDBV1.0R030D002-20161207-1922 - Source distribution
-- 服务器操作系统: Linux
-- HeidiSQL 版本: 9.4.0.5125
Expand Down
4 changes: 2 additions & 2 deletions bin/upgrade/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ v_hosts=/data/change/client/hdp_client.hosts${UUID}
echo >$v_hosts
cat >$v_hosts <<EOF
[all:vars]
ansible_ssh_port=36000
ansible_ssh_pass=Isd#APP@2020
ansible_ssh_port=[#ssh_port]
ansible_ssh_pass=[#ssh_password]
[all_nodes]
EOF
Expand Down
2 changes: 1 addition & 1 deletion docs/schedulis_deploy_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ sudo sh 2.hdp_wtss_deploy_web.sh 10.255.10.99:bdphdp02jobs05 1.0.0
参数6:数据库密码(base64加密)
例: (初始化部署1.5.0版本数据库):
sudo sh 3.hdp_wtss_deploy_script.sh 1.0.0 127.0.0.1 3306 wtssdb root 123456
sudo sh 3.hdp_wtss_deploy_script.sh 1.0.0 10.255.0.76 3306 wtssdb root 123456
```

#### 4. 进程启动
Expand Down

0 comments on commit ec9f28e

Please sign in to comment.