Bad request Curl with grep

匿名 (未验证) 提交于 2019-12-03 01:09:02

问题:

I'm trying to display the list of Yarn group in curl command with grep.

current_group=$(curl -u "${ranger_admin}:${ranger_password}" \ "${ranger_host}/service/public/v2/api/service/${ranger_cluster}_${policyService}/policy/YARN%20${policyName}" | grep -Poz '(?:\G(?!^)",|"${groups}":\s*\[)\s*"\K[^"]+') echo "${current_group}" 

the result is :

curl: (22) The requested URL returned error: 404 Not Found curl: (1) Protocol  http not supported or disabled in libcurl curl: (22) The requested URL returned error: 400 Bad Request 

How can I resolve it ?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!