curl -u hadoop:123456 -H "Accept: application/json" -H "Content-type: application/json" -v -X PUT -d '{"state": "KILLED"}' "http://host:8088/ws/v1/cluster/apps/application_1575020200992_1673895/state"
我已经添加了用户名和密码,但是返回:
Unauthorized attempt to kill appid application_1575020200992_1673895 by remote user dr.who
什么是who医生
1条答案
按热度按时间jtoj6r0c1#
我想。。。添加user.name查询字符串参数。
这样地:
http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/httpauthentication.html