|
@@ -30,7 +30,7 @@ class YarnClient(object):
|
|
|
|
|
|
url = f"http://{self.cluster_ip}:8088/ws/v1/cluster/apps?{query_str}"
|
|
|
print(f"请求的Yarn Restful API为: {url}")
|
|
|
- response = requests.get(url)
|
|
|
+ response = requests.get(url, timeout=60)
|
|
|
res = json.loads(response.text)
|
|
|
result = []
|
|
|
for app in res['apps']['app']:
|