报错信息
{"method":null,"status":1,"message":"operation failed(操作失败)s!the reason(原因):HttpClientResultException: errCode: 10905 ,desc: URL /api/rest_j/v1/bml/upload request failed! ResponseBody is <!DOCTYPE html PUBLIC\n\"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html>\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"></meta>\n <title>500 Internal Server Error</title>\n <style type=\"text/css\">\n #powered_by {\n margin-top: 20px;\n border-top: 2px solid black;\n font-style: italic;\n }\n\n #traceback {\n color: red;\n }\n </style>\n</head>\n <body>\n <h2>500 Internal Server Error</h2>\n <p>The server encountered an unexpected condition which prevented it from fulfilling the request.</p>\n <pre id=\"traceback\"></pre>\n <div id=\"powered_by\">\n <span>\n Powered by <a href=\"http://www.cherrypy.org\">CherryPy 10.2.2</a>\n </span>\n </div>\n </body>\n</html>\n. ,ip: slave03.cdh ,port: 9004 ,serviceKind: dss-server","data":{"errorMsg":{"serviceKind":"dss-server","level":2,"port":9004,"errCode":0,"ip":"slave03.cdh","desc":"operation failed(操作失败)s!the reason(原因):HttpClientResultException: errCode: 10905 ,desc: URL /api/rest_j/v1/bml/upload request failed! ResponseBody is <!DOCTYPE html PUBLIC\n\"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html>\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"></meta>\n <title>500 Internal Server Error</title>\n <style type=\"text/css\">\n #powered_by {\n margin-top: 20px;\n border-top: 2px solid black;\n font-style: italic;\n }\n\n #traceback {\n color: red;\n }\n </style>\n</head>\n <body>\n <h2>500 Internal Server Error</h2>\n <p>The server encountered an unexpected condition which prevented it from fulfilling the request.</p>\n <pre id=\"traceback\"></pre>\n <div id=\"powered_by\">\n <span>\n Powered by <a href=\"http://www.cherrypy.org\">CherryPy 10.2.2</a>\n </span>\n </div>\n </body>\n</html>\n. ,ip: slave03.cdh ,port: 9004 ,serviceKind: dss-server"}}}
解决方法
在dss-server的配置文件中linkis.properties,增加如下配置:
wds.linkis.gateway.url=http://gateway_ip:gateway_port