Skip to content

Commit

Permalink
HPCC4J-697 Update Spark Tests for HPCC4j Repo (#801)
Browse files Browse the repository at this point in the history
Signed-off-by: James McMullan [email protected]
  • Loading branch information
jpmcmu authored Mar 11, 2025
1 parent d790950 commit 0e78527
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/baremetal-regression-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,4 @@ jobs:
restore-keys: ${{ runner.os }}-m2

- name: Build with Maven
run: mvn -B --activate-profiles jenkins-on-demand -Dmaven.gpg.skip=true -Dmaven.javadoc.skip=true -Dmaven.test.failure.ignore=false -Dhpccconn=http://eclwatch.default:8010 -Dwssqlconn=http://sql2ecl.default:8510 -DHPCC30117=open install
run: mvn -B --activate-profiles jenkins-on-demand,spark33 -Dmaven.gpg.skip=true -Dmaven.javadoc.skip=true -Dmaven.test.failure.ignore=false -Dhpccconn=http://eclwatch.default:8010 -Dwssqlconn=http://sql2ecl.default:8510 -DHPCC30117=open install
2 changes: 1 addition & 1 deletion .github/workflows/k8s-regression-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ jobs:
restore-keys: ${{ runner.os }}-m2

- name: Build with Maven
run: mvn -B --activate-profiles jenkins-on-demand -Dmaven.gpg.skip=true -Dmaven.javadoc.skip=true -Dmaven.test.failure.ignore=false -Dhpccconn=https://eclwatch.default:8010 -Dwssqlconn=https://sql2ecl.default:8510 -DHPCC30117=open install
run: mvn -B --activate-profiles jenkins-on-demand,spark33 -Dmaven.gpg.skip=true -Dmaven.javadoc.skip=true -Dmaven.test.failure.ignore=false -Dhpccconn=https://eclwatch.default:8010 -Dwssqlconn=https://sql2ecl.default:8510 -DHPCC30117=open install
10 changes: 0 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,6 @@
<artifactId>json</artifactId>
<version>${json.version}</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4</artifactId>
<version>${antlr.version}</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>${antlr.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
Expand Down
25 changes: 25 additions & 0 deletions spark-hpcc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,23 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hpccsystems</groupId>
<artifactId>wsclient</artifactId>
<type>test-jar</type>
<scope>test</scope>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
</exclusion>
<exclusion>
<groupId>org.antlr</groupId>
<artifactId>antlr4</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hpccsystems</groupId>
<artifactId>dfsclient</artifactId>
Expand Down Expand Up @@ -150,6 +167,14 @@
</plugins>
</build>
<profiles>
<profile>
<id>spark24</id>
<properties>
<spark.runtime.version>2.4.6</spark.runtime.version>
<scala.binary.version>2.11</scala.binary.version>
<scala.version>2.11</scala.version>
</properties>
</profile>
<profile>
<id>spark33</id>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
import org.apache.spark.SparkConf;
import org.apache.spark.SparkContext;
import org.apache.spark.sql.SparkSession;
import org.hpccsystems.ws.client.BaseRemoteTest;

class BaseIntegrationTest
class BaseIntegrationTest extends BaseRemoteTest
{
static SparkContext sparkContext = null;

Expand Down Expand Up @@ -147,21 +148,21 @@ public SparkSession getOrCreateSparkSession(SparkConf conf)

public String getHPCCClusterURL()
{
return System.getProperty("hpccconn", "https://eclwatch.default:8010");
return connString;
}

public String getHPCCClusterUser()
{
return System.getProperty("hpccuser", "");
return hpccUser;
}

public String getHPCCClusterPass()
{
return System.getProperty("hpccpass", "");
return hpccPass;
}

public String getThorCluster()
{
return System.getProperty("thorclustername", "data");
return thorClusterFileGroup;
}
}
10 changes: 10 additions & 0 deletions wsclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@
<artifactId>commons-hpcc</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4</artifactId>
<version>${antlr.version}</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>${antlr.version}</version>
</dependency>
</dependencies>

<profiles>
Expand Down

0 comments on commit 0e78527

Please sign in to comment.