jason
jason
https://juejin.cn/post/7005530386641977374 可参考
https://juejin.cn/post/6986816997329731614 可以参考下
@wushengyeyouya 大佬,帮忙解决下这个问题
目前我的调用方式需要调用到5个服务:请求发起 -> /tokenQuery (没有拿到token) -> /execute/query_user(我的服务path, token直接数据库取得) -> /93/get (获取任务状态, status为Suucess就继续下一步) -> /getDirFileTrees(获取到path路径,为下一步提供入参) -> /openFile (获取结果) -> 请求结束。 不知道是不是这样,如果是这样,感觉调用一个服务要走这么多接口吗,还是说我理解错了,求大佬帮助
楼上的 /execute/query_user操作,会经常性的返回status为Failed的结果,我对比了DSS后台的查询方式,看到了/get请求要反复查询的,这个对于外部系统没法这样调用,请问有别的调用方式吗
> Data service token from/queryById? Interface returns (page clicks into use), field is userToken. Access to all interfaces is GateWay certified. The token of a data service can only be...
> /openFile > Data service token from/queryById? Interface returns (page clicks into use), field is userToken. Access to all interfaces is GateWay certified. The token of a data service can...
path: {id}/get result: `{ "method": "/api/dss/apiservice/{id}/get", "status": 0, "message": "OK", "data": { "task": { "taskID": 93, "instance": "DEV-Hadoop-CDH-Node1:29104", "execId": "IDE_root_spark_27", "umUser": "root", "engineInstance": null, "executionCode": "import org.apache.spark.sql.DataFrame\nval executeCode = \"\"\"select...