Repository: incubator-livy Updated Branches: refs/heads/master 64d71aa75 -> 1f59e102b
[LIVY-416] Upgrade the version of Jackson from 2.4.4 to 2.9.2 ## What changes were proposed in this pull request? https://issues.apache.org/jira/browse/LIVY-416 `com.fasterxml.jackson.core.JsonGenerationException` is sometimes thrown. The full stack trace is show on [JsonGenerationException.txt](https://github.com/apache/incubator-livy/files/1482566/JsonGenerationException.txt). This is because of the Jackson's bug (https://github.com/FasterXML/jackson-core/issues/307) which was fixed at Jackson 2.7.7. To fix this issue, the version of Jackson should be updated from 2.4.4 to the latest one (2.9.2). In addition, `com.google.guava:guava:15.0` was added to the dependencies because it was removed from the dependencies of `com.fasterxml.jackson.module:jackson-module-scala_{2.10,2.11}:2.9.2`. * [com.fasterxml.jackson.module:jackson-module-scala_2.10:2.4.4](https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-scala_2.10/2.4.4) * [com.fasterxml.jackson.module:jackson-module-scala_2.11:2.4.4](https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-scala_2.11/2.4.4) * [com.fasterxml.jackson.module:jackson-module-scala_2.10:2.9.2](https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-scala_2.10/2.9.2) * [com.fasterxml.jackson.module:jackson-module-scala_2.11:2.9.2](https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-scala_2.11/2.9.2) ## How was this patch tested? By executing `mvn clean package`. Author: Keiji Yoshida <kjmrk...@gmail.com> Closes #64 from kjmrknsn/LIVY-416. Project: http://git-wip-us.apache.org/repos/asf/incubator-livy/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-livy/commit/1f59e102 Tree: http://git-wip-us.apache.org/repos/asf/incubator-livy/tree/1f59e102 Diff: http://git-wip-us.apache.org/repos/asf/incubator-livy/diff/1f59e102 Branch: refs/heads/master Commit: 1f59e102b65c1c18775fe9d286d22b9228497807 Parents: 64d71aa Author: Keiji Yoshida <kjmrk...@gmail.com> Authored: Thu Nov 23 13:19:53 2017 +0800 Committer: jerryshao <ss...@hortonworks.com> Committed: Thu Nov 23 13:19:53 2017 +0800 ---------------------------------------------------------------------- pom.xml | 9 ++++++++- server/pom.xml | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/1f59e102/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 44b33fe..5fb2a7a 100644 --- a/pom.xml +++ b/pom.xml @@ -82,9 +82,10 @@ <hadoop.scope>compile</hadoop.scope> <spark.version>1.6.2</spark.version> <commons-codec.version>1.9</commons-codec.version> + <guava.version>15.0</guava.version> <httpclient.version>4.5.3</httpclient.version> <httpcore.version>4.4.4</httpcore.version> - <jackson.version>2.4.4</jackson.version> + <jackson.version>2.9.2</jackson.version> <javax.servlet-api.version>3.1.0</javax.servlet-api.version> <jetty.version>9.2.16.v20160414</jetty.version> <json4s.version>3.2.10</json4s.version> @@ -310,6 +311,12 @@ </dependency> <dependency> + <groupId>com.google.guava</groupId> + <artifactId>guava</artifactId> + <version>${guava.version}</version> + </dependency> + + <dependency> <groupId>io.dropwizard.metrics</groupId> <artifactId>metrics-core</artifactId> <version>${metrics.version}</version> http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/1f59e102/server/pom.xml ---------------------------------------------------------------------- diff --git a/server/pom.xml b/server/pom.xml index 973bcce..256bb45 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -75,6 +75,11 @@ </dependency> <dependency> + <groupId>com.google.guava</groupId> + <artifactId>guava</artifactId> + </dependency> + + <dependency> <groupId>io.dropwizard.metrics</groupId> <artifactId>metrics-core</artifactId> </dependency>