Skip to content

Commit 7194ac4

Browse files
bipinprasadrzo1
andauthored
[STORM-3966] Allow reflection in JDK11 test for storm-sql-hdfs; update guava version (apache#3575)
* [STORM-3966] Allow reflection in JDK11 test for storm-sql-hdfs; update guava version * Fix license --------- Co-authored-by: Richard Zowalla <[email protected]>
1 parent 5148014 commit 7194ac4

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

DEPENDENCY-LICENSES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ List of third-party dependencies grouped by their license type.
197197
* Graphite Integration for Metrics (io.dropwizard.metrics:metrics-graphite:3.2.6 - http://metrics.dropwizard.io/metrics-graphite/)
198198
* Gson (com.google.code.gson:gson:2.2.4 - http://code.google.com/p/google-gson/)
199199
* Guava: Google Core Libraries for Java (com.google.guava:guava:16.0.1 - http://code.google.com/p/guava-libraries/guava)
200+
* Guava: Google Core Libraries for Java (com.google.guava:guava:19.0 - https://github.com/google/guava/guava)
200201
* Guava: Google Core Libraries for Java (com.google.guava:guava:27.0.1-jre - https://github.com/google/guava/guava)
201202
* Guava InternalFutureFailureAccess and InternalFutures (com.google.guava:failureaccess:1.0.1 - https://github.com/google/guava/failureaccess)
202203
* Guava ListenableFuture only (com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava - https://github.com/google/guava/listenablefuture)

sql/storm-sql-external/storm-sql-hdfs/pom.xml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,18 @@
2828
<artifactId>storm-sql-hdfs</artifactId>
2929

3030
<properties>
31-
<!-- Required downgrade by calcite-core 1.14.0 -->
32-
<guava.version>16.0.1</guava.version>
31+
<!--
32+
+- org.apache.storm:storm-hdfs:jar:2.6.0-SNAPSHOT:provided
33+
| +- org.apache.hadoop:hadoop-auth:jar:2.10.1:provided
34+
35+
to fix Illegal reflective access by org.apache.hadoop.security.authentication.util.KerberosUtil
36+
(org.apache.hadoop:hadoop-auth:2.10.1)
37+
to method sun.security.krb5.Config.getInstance() add
38+
"add-opens java.security.jgss/sun.security.krb5=ALL-UNNAMED"
39+
-->
40+
<storm-sql-hdfs.test.introspection.argLine>--add-opens java.security.jgss/sun.security.krb5=ALL-UNNAMED</storm-sql-hdfs.test.introspection.argLine>
41+
<!-- Required downgrade by calcite-core 1.16.0 https://mvnrepository.com/artifact/org.apache.calcite/calcite-core/1.16.0 -->
42+
<guava.version.downgrade>19.0</guava.version.downgrade>
3343
</properties>
3444

3545
<developers>
@@ -109,7 +119,7 @@
109119
<dependency>
110120
<groupId>com.google.guava</groupId>
111121
<artifactId>guava</artifactId>
112-
<version>${guava.version}</version>
122+
<version>${guava.version.downgrade}</version>
113123
</dependency>
114124
</dependencies>
115125
<build>
@@ -130,6 +140,21 @@
130140
<groupId>org.apache.maven.plugins</groupId>
131141
<artifactId>maven-pmd-plugin</artifactId>
132142
</plugin>
143+
<plugin>
144+
<groupId>org.apache.maven.plugins</groupId>
145+
<artifactId>maven-surefire-plugin</artifactId>
146+
<configuration>
147+
<argLine>${storm-sql-hdfs.test.introspection.argLine} -Xmx3g -XX:+HeapDumpOnOutOfMemoryError</argLine>
148+
<redirectTestOutputToFile>true</redirectTestOutputToFile>
149+
<excludedGroups>IntegrationTest | ${java.unit.test.exclude.groups}</excludedGroups>
150+
<trimStackTrace>false</trimStackTrace>
151+
<forkCount>1.0C</forkCount>
152+
<reuseForks>true</reuseForks>
153+
<systemPropertyVariables>
154+
<storm.home>${project.basedir}/target/testhome</storm.home>
155+
</systemPropertyVariables>
156+
</configuration>
157+
</plugin>
133158
</plugins>
134159
</build>
135160
</project>

0 commit comments

Comments
 (0)