AnsweredAssumed Answered

REST API for job linklogs

Question asked by akusanagi Employee on Dec 13, 2012
Latest reply on Dec 14, 2012 by gera
When I made a REST call "https://myhost:8443/rest/job/linklogs?jobid=job_201212052103_0001&todir=/mydir", it returned an error message like:

    {"timestamp":1355480115143,"status":"ERROR","errors":[{"id":10016,"desc":"No 'columns' specified in the POST params."}]}

Looking at /opt/mapr/adminuiapp/webapp/WEB-INF/web.xml, there is no servlet-mapping entry for the job linklogs command, so I think this causes the problem. When I added the following lines in web.xml, it worked:

            <servlet-mapping>
              <servlet-name>Job Commands Servlet</servlet-name>
              <url-pattern>/api/job/linklogs</url-pattern>
            </servlet-mapping>

            <servlet-mapping>
              <servlet-name>Job Commands REST Servlet</servlet-name>
              <url-pattern>/rest/job/linklogs</url-pattern>
            </servlet-mapping>

Outcomes