Browse Source

fix: 修改env,es url

许家凯 1 year ago
parent
commit
e9c9d10106
2 changed files with 2 additions and 2 deletions
  1. 1 1
      data_clean/env/env-prod.yaml
  2. 1 1
      data_clean/utils/data_schema_utils.py

+ 1 - 1
data_clean/env/env-prod.yaml

@@ -1,6 +1,6 @@
 es:
 es:
   old:
   old:
-    hosts: es-cn-0pp0r32zf000ipovd.elasticsearch.aliyuncs.com:9200
+    hosts: es-cn-zxu362ii6000oj8y3.elasticsearch.aliyuncs.com:9200
     username: elastic
     username: elastic
     pwd: elastic_168
     pwd: elastic_168
   new:
   new:

+ 1 - 1
data_clean/utils/data_schema_utils.py

@@ -25,7 +25,7 @@ def _cast_by_type(val, val_type: list):
 
 
 async def get_data_schema(tn: str):
 async def get_data_schema(tn: str):
     res = await get('https://bigdata-rt.oss-cn-shanghai.aliyuncs.com/business-schema/' + tn + '.schema',
     res = await get('https://bigdata-rt.oss-cn-shanghai.aliyuncs.com/business-schema/' + tn + '.schema',
-                    result_json=True)
+                    result_json=False)
     res = json.loads(res)
     res = json.loads(res)
 
 
     print(res)
     print(res)