Skip to content

Commit

Permalink
[FLINK-1392] Add Kryo serializer for Protobuf
Browse files Browse the repository at this point in the history
Conflicts:
	flink-java/pom.xml
	flink-java/src/main/java/org/apache/flink/api/java/typeutils/runtime/KryoSerializer.java
  • Loading branch information
rmetzger committed Feb 18, 2015
1 parent 7e39bc6 commit 77c4548
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
33 changes: 33 additions & 0 deletions flink-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,39 @@ under the License.
<version>0.5.1</version>
</dependency>

<dependency>
<groupId>com.twitter</groupId>
<artifactId>chill-protobuf</artifactId>
<version>0.5.1</version>
</dependency>
<!-- We need protobuf for chill-protobuf -->
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.5.0</version>
</dependency>

<dependency>
<groupId>com.twitter</groupId>
<artifactId>chill-thrift</artifactId>
<version>0.5.1</version>
</dependency>
<!-- libthrift is required by chill-thrift -->
<dependency>
<groupId>org.apache.thrift</groupId>
<artifactId>libthrift</artifactId>
<version>0.6.1</version>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- guava needs to be in "provided" scope, to make sure it is not included into the jars by the shading -->
<dependency>
Expand Down
3 changes: 3 additions & 0 deletions flink-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ under the License.
<relocation>
<pattern>com.google</pattern>
<shadedPattern>org.apache.flink.shaded.com.google</shadedPattern>
<excludes>
<exclude>com.google.protobuf.**</exclude>
</excludes>
</relocation>
</relocations>
</configuration>
Expand Down
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,9 @@ under the License.
<relocation>
<pattern>com.google</pattern>
<shadedPattern>org.apache.flink.shaded.com.google</shadedPattern>
<excludes>
<exclude>com.google.protobuf.**</exclude>
</excludes>
</relocation>
</relocations>
</configuration>
Expand Down

0 comments on commit 77c4548

Please sign in to comment.