Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17
java-version: 21
cache: 'maven'
- name: Build with Maven (${{ matrix.profile.name }})
run: mvn -B -V -e -ntp "-Dstyle.color=always" ${{ matrix.profile.args }}
Expand All @@ -70,4 +70,3 @@ jobs:
name: mini-tests-logs-${{ matrix.profile.name }}
path: ./**/target/**/mini-tests/**/logs/
if-no-files-found: ignore

2 changes: 1 addition & 1 deletion conf/env.sh.example
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ conf_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# Versions set below will be what is included in the shaded jar
export ACCUMULO_VERSION="`$ACCUMULO_HOME/bin/accumulo version`"
export HADOOP_VERSION="`$HADOOP_HOME/bin/hadoop version | head -n1 | awk '{print $2}'`"
export ZOOKEEPER_VERSION=3.7.0
export ZOOKEEPER_VERSION=3.9.5
# Path to shaded test jar
ex_home=$( cd "$( dirname "$conf_dir" )" && pwd )
export EXAMPLES_JAR_PATH="${ex_home}/target/accumulo-examples-shaded.jar"
37 changes: 25 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>31</version>
<version>37</version>
</parent>
<groupId>org.apache.accumulo</groupId>
<artifactId>accumulo-examples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
<name>Apache Accumulo Examples</name>
<description>Example code and corresponding documentation for using Apache Accumulo</description>
<properties>
<accumulo.version>3.1.0-SNAPSHOT</accumulo.version>
<accumulo.version>4.0.0-SNAPSHOT</accumulo.version>
<eclipseFormatterStyle>contrib/Eclipse-Accumulo-Codestyle.xml</eclipseFormatterStyle>
<hadoop.version>3.3.6</hadoop.version>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<minimalJavaBuildVersion>11</minimalJavaBuildVersion>
<hadoop.version>3.4.2</hadoop.version>
<maven.compiler.release>17</maven.compiler.release>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<minimalJavaBuildVersion>21</minimalJavaBuildVersion>
<!-- timestamp for reproducible outputs, updated on release by the release plugin -->
<project.build.outputTimestamp>2020-12-17T22:06:50Z</project.build.outputTimestamp>
<zookeeper.version>3.8.3</zookeeper.version>
<zookeeper.version>3.9.5</zookeeper.version>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -114,6 +114,19 @@
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>apache.snapshots</id>
<name>Apache Snapshot Repository</name>
<url>https://repository.apache.org/content/repositories/snapshots</url>
</repository>
</repositories>
<build>
<finalName>${project.artifactId}</finalName>
<pluginManagement>
Expand Down Expand Up @@ -185,7 +198,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.12.2</version>
<version>11.0.1</version>
</dependency>
</dependencies>
<executions>
Expand All @@ -200,7 +213,7 @@
<plugin>
<groupId>net.revelc.code</groupId>
<artifactId>impsort-maven-plugin</artifactId>
<version>1.9.0</version>
<version>1.13.0</version>
<configuration>
<removeUnused>true</removeUnused>
<groups>java.,javax.,jakarta.,org.,com.</groups>
Expand Down Expand Up @@ -238,7 +251,7 @@
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.23.0</version>
<version>2.29.0</version>
<configuration>
<configFile>${eclipseFormatterStyle}</configFile>
<lineEnding>LF</lineEnding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static void main(String[] args) throws Exception {
bs.clearScanIterators();
bs.clearColumns();

IteratorSetting ii = new IteratorSetting(20, "ii", IntersectingIterator.class);
IteratorSetting ii = new IteratorSetting(30, "ii", IntersectingIterator.class);
IntersectingIterator.setColumnFamilies(ii, columns);
bs.addScanIterator(ii);
bs.setRanges(Collections.singleton(new Range()));
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/apache/accumulo/examples/shard/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ public static List<String> query(BatchScanner bs, List<String> terms, Integer cu
IteratorSetting ii;

if (cutoff != null) {
ii = new IteratorSetting(20, "ii", CutoffIntersectingIterator.class);
ii = new IteratorSetting(30, "ii", CutoffIntersectingIterator.class);
CutoffIntersectingIterator.setCutoff(ii, cutoff);
} else {
ii = new IteratorSetting(20, "ii", IntersectingIterator.class);
ii = new IteratorSetting(30, "ii", IntersectingIterator.class);
}

IntersectingIterator.setColumnFamilies(ii, columns);
Expand Down
Loading