我尝试过
%sh
curl -POST 'http://my_ip:8080/api/notebook/job/my_notebook_id'
但出现错误“找不到请求的网址”
答案 0 :(得分:0)
这是解决方案,就像一个魅力:
# get credentials
curl --data 'userName=user&password=passwd' -c cookies.txt -XPOST http://server:8080/api/login
## run notebook with id 2DMZYRW7W
curl -b cookies.txt -X POST 'http://server:8080/api/notebook/job/2DMZYRW7W'