HBASE-30185 Port hbase-spark lower level RDD API to spark4 module#157
HBASE-30185 Port hbase-spark lower level RDD API to spark4 module#157wchevreuil wants to merge 5 commits into
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
(!) A patch to the testing environment has been detected. |
|
💔 -1 overall
This message was automatically generated. |
|
(!) A patch to the testing environment has been detected. |
|
💔 -1 overall
This message was automatically generated. |
|
(!) A patch to the testing environment has been detected. |
|
💔 -1 overall
This message was automatically generated. |
|
(!) A patch to the testing environment has been detected. |
|
💔 -1 overall
This message was automatically generated. |
|
(!) A patch to the testing environment has been detected. |
|
💔 -1 overall
This message was automatically generated. |
|
(!) A patch to the testing environment has been detected. |
|
💔 -1 overall
This message was automatically generated. |
Co-authored-by: Claude Code (claude-opus-4-6) <no-reply@anthropic.com> adding change to personality so that Pspark4 profile is activated when validating spark4 module setting jdk17 in JAVA_HOME for spark4 profile build adding nashorn as js engine and exclude rule to skip auto generated flattened pom from spotless chek. another change in personality to force spotless be run with jdk8 raising spotless version to 2.30 to support both jdk8 and jdk17. Fixed spotless issues on spark4 module. adding jrunsript download to docker file which is needed for pom.xml parsing in jdk17 adding sotless exclusion for flattened-pom
|
(!) A patch to the testing environment has been detected. |
|
💔 -1 overall
This message was automatically generated. |
|
(!) A patch to the testing environment has been detected. |
|
🎊 +1 overall
This message was automatically generated. |
|
|
||
| # Yetus xml check uses jrunscript (removed in JDK 14). Provide a wrapper so | ||
| # it remains available when JAVA_HOME points to JDK 17. | ||
| RUN printf '#!/bin/sh\nexec /usr/local/openjdk-8/bin/jrunscript "$@"\n' \ |
There was a problem hiding this comment.
Is this required because we're using an older Yetus in hbase-connectors? I don't see similar in the main repository.
There was a problem hiding this comment.
Good point. Let me check how does yetus is configured with jdk 17+. Here, I was getting a pom.xml parsing issue, and yetus was then reporting an xml error. The suggestion I got from claude-opus-4-6 was that jdk17 misss this jrunscript. I think the main problem here is that we are trying to support both jdk8 and jdk17.
| # When spark4 modules are in the changed set, activate the spark4 profile | ||
| # so the full reactor (including hbase-spark-pushdown_2.13) is built. | ||
| # The maven-enforcer-plugin in the spark4 profile requires JDK 17+. | ||
| if [[ "${MODULES[*]}" =~ spark4 ]]; then |
There was a problem hiding this comment.
Does it also work if the changed file is in the global pom.xml as an example?
There was a problem hiding this comment.
It would just run with jdk8, then.
| <dependency> | ||
| <groupId>org.scalatest</groupId> | ||
| <artifactId>scalatest_${scala.binary.version}</artifactId> | ||
| <version>3.2.17</version> |
There was a problem hiding this comment.
The spark/hbase-spark/pom.xml also has scalatest dependency. Can the versions be harmonised between the 2 places?
There was a problem hiding this comment.
I tried setting 3.2.17 in the hbase-spark pom, but got some compilation errors. If I try 3.0.5 on hbase-spark4, then it's spark4 build that fails.
| <plugin> | ||
| <groupId>org.scalatest</groupId> | ||
| <artifactId>scalatest-maven-plugin</artifactId> | ||
| <version>2.2.0</version> |
There was a problem hiding this comment.
Can you use a property for the version? The scalatest-maven-plugin is also defined in spark/hbase-spark/pom.xml file.
| <dependency> | ||
| <groupId>org.openjdk.nashorn</groupId> | ||
| <artifactId>nashorn-core</artifactId> | ||
| <version>15.4</version> |
There was a problem hiding this comment.
Please use a version property.
| assert(row.getString(2) == "last") | ||
| } | ||
|
|
||
| test("closure serialization succeeds with serializable column array") { |
There was a problem hiding this comment.
What does this test actually do?
There was a problem hiding this comment.
This test class is not correct, it's not even referring the spark4 module HBaseContext. It's an outdated version, somehow I missed it. Will push a correct test class.
|
(!) A patch to the testing environment has been detected. |
|
🎊 +1 overall
This message was automatically generated. |
|
(!) A patch to the testing environment has been detected. |
No description provided.