Repository: incubator-griffin Updated Branches: refs/heads/master 2430bc54e -> f149e3a8d
Added support for Elastic Search 6 It is necessary to mention the content type in elastic search 6. I was not able to get metrics unless. Author: Sparsh Singhal <[email protected]> Closes #257 from SparshSinghalHM/patch-1. Project: http://git-wip-us.apache.org/repos/asf/incubator-griffin/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-griffin/commit/f149e3a8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-griffin/tree/f149e3a8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-griffin/diff/f149e3a8 Branch: refs/heads/master Commit: f149e3a8d622669728b93fa89ca885d48ca7f9d0 Parents: 2430bc5 Author: Sparsh Singhal <[email protected]> Authored: Mon Apr 16 10:22:24 2018 +0800 Committer: Lionel Liu <[email protected]> Committed: Mon Apr 16 10:22:24 2018 +0800 ---------------------------------------------------------------------- .../scala/org/apache/griffin/measure/persist/HttpPersist.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/f149e3a8/measure/src/main/scala/org/apache/griffin/measure/persist/HttpPersist.scala ---------------------------------------------------------------------- diff --git a/measure/src/main/scala/org/apache/griffin/measure/persist/HttpPersist.scala b/measure/src/main/scala/org/apache/griffin/measure/persist/HttpPersist.scala index c4abc22..e41ae55 100644 --- a/measure/src/main/scala/org/apache/griffin/measure/persist/HttpPersist.scala +++ b/measure/src/main/scala/org/apache/griffin/measure/persist/HttpPersist.scala @@ -65,7 +65,7 @@ case class HttpPersist(config: Map[String, Any], metricName: String, timeStamp: val data = JsonUtil.toJson(dataMap) // post val params = Map[String, Object]() - val header = Map[String, Object]() + val header = Map[String, Object](("Content-Type","application/json")) def func(): Boolean = { HttpUtil.httpRequest(api, method, params, header, data)
