Skip to content

Commit c52c231

Browse files
aniketbhatnagarJoshRosen
authored andcommitted
SPARK-3638 | Forced a compatible version of http client in kinesis-asl profile
This patch forces use of commons http client 4.2 in Kinesis-asl profile so that the AWS SDK does not run into dependency conflicts Author: aniketbhatnagar <[email protected]> Closes #2535 from aniketbhatnagar/Kinesis-HttpClient-Dep-Fix and squashes the following commits: aa2079f [aniketbhatnagar] Merge branch 'Kinesis-HttpClient-Dep-Fix' of https://github.com/aniketbhatnagar/spark into Kinesis-HttpClient-Dep-Fix 73f55f6 [aniketbhatnagar] SPARK-3638 | Forced a compatible version of http client in kinesis-asl profile 70cc75b [aniketbhatnagar] deleted merge files 725dbc9 [aniketbhatnagar] Merge remote-tracking branch 'origin/Kinesis-HttpClient-Dep-Fix' into Kinesis-HttpClient-Dep-Fix 4ed61d8 [aniketbhatnagar] SPARK-3638 | Forced a compatible version of http client in kinesis-asl profile 9cd6103 [aniketbhatnagar] SPARK-3638 | Forced a compatible version of http client in kinesis-asl profile (cherry picked from commit 93861a5) Signed-off-by: Josh Rosen <[email protected]>
1 parent 24ee616 commit c52c231

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

assembly/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,5 +315,15 @@
315315
</plugins>
316316
</build>
317317
</profile>
318+
<profile>
319+
<id>kinesis-asl</id>
320+
<dependencies>
321+
<dependency>
322+
<groupId>org.apache.httpcomponents</groupId>
323+
<artifactId>httpclient</artifactId>
324+
<version>${commons.httpclient.version}</version>
325+
</dependency>
326+
</dependencies>
327+
</profile>
318328
</profiles>
319329
</project>

examples/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
<artifactId>spark-streaming-kinesis-asl_${scala.binary.version}</artifactId>
4444
<version>${project.version}</version>
4545
</dependency>
46+
<dependency>
47+
<groupId>org.apache.httpcomponents</groupId>
48+
<artifactId>httpclient</artifactId>
49+
<version>${commons.httpclient.version}</version>
50+
</dependency>
4651
</dependencies>
4752
</profile>
4853
</profiles>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
<jets3t.version>0.7.1</jets3t.version>
138138
<aws.java.sdk.version>1.8.3</aws.java.sdk.version>
139139
<aws.kinesis.client.version>1.1.0</aws.kinesis.client.version>
140+
<commons.httpclient.version>4.2.6</commons.httpclient.version>
140141

141142
<PermGen>64m</PermGen>
142143
<MaxPermGen>512m</MaxPermGen>

0 commit comments

Comments
 (0)