Commit 7f70c018 authored by litaolemo's avatar litaolemo

update

parent b5676875
......@@ -7,6 +7,7 @@
# coding=utf-8
import hashlib
import json
import time
from pyspark import SparkConf
from pyspark.sql import SparkSession, DataFrame
......@@ -70,7 +71,7 @@ def from_es_get_service_num(query):
doc_type='service',
timeout='10s',
size=0,
body=q
body=json.dumps(q)
)
if results['hits']['total'] > 0:
return results['hits']['total']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment