Github user SparshSinghalHM commented on a diff in the pull request: https://github.com/apache/incubator-griffin/pull/409#discussion_r215148542 --- Diff: service/src/main/java/org/apache/griffin/core/job/SparkSubmitJob.java --- @@ -113,8 +117,13 @@ private void updateJobInstanceState(JobExecutionContext context) throws private String post2Livy() { String result = null; try { - result = restTemplate.postForObject(livyUri, livyConfMap, - String.class); + HttpHeaders headers = new HttpHeaders(); + headers.setContentType(MediaType.APPLICATION_JSON); + headers.set("X-Requested-By","admin"); --- End diff -- Yes. Can do it this way.
---