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
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static void main(String[] args) throws Exception {
OrcBenchmark bench = benchmarks.get(command);
if (bench == null) {
printUsageAndExit(benchmarks);
System.exit(1);
}
bench.run(args);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import org.apache.commons.cli.CommandLine;
import org.apache.hadoop.fs.Path;
import org.apache.orc.TypeDescription;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.options.ChainedOptionsBuilder;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;
import org.openjdk.jmh.runner.options.TimeValue;
Expand Down
4 changes: 2 additions & 2 deletions java/bench/hive/src/findbugs/exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
-->
<FindBugsFilter>
<Match>
<Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2"/>
<Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2,MS_EXPOSE_REP"/>
</Match>
<Match>
<Class name="~org\.openjdk\.jmh\.infra\.generated.*"/>
</Match>
<Match>
<Class name="~org\.apache\.orc\.bench\.generated.*"/>
<Class name="~org\.apache\.orc\.bench.*\.generated.*"/>
</Match>
</FindBugsFilter>
17 changes: 9 additions & 8 deletions java/bench/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>18</version>
<relativePath></relativePath>
<groupId>org.apache.orc</groupId>
<artifactId>orc</artifactId>
<version>1.7.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to break uber jar building in spark submodule.

$ cd java/bench

$ mvn clean package -pl spark --am

$ ls -alh spark/target/*.jar      
-rw-rw-r-- 1 dongjoon dongjoon  62K Mar 23 05:28 spark/target/orc-benchmarks-spark-1.7.0-SNAPSHOT.jar
-rw-rw-r-- 1 dongjoon dongjoon 808K Mar 23 05:28 spark/target/orc-benchmarks-spark-1.7.0-SNAPSHOT-nohive.jar

The correct uber jar should be 129MB.

$ ls -alh spark/target/*.jar
-rw-rw-r-- 1 dongjoon dongjoon 129M Mar 23 05:32 spark/target/orc-benchmarks-spark-1.7.0-SNAPSHOT.jar
-rw-rw-r-- 1 dongjoon dongjoon  63K Mar 23 05:32 spark/target/original-orc-benchmarks-spark-1.7.0-SNAPSHOT.jar

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll make a PR to fix this.

</parent>

<groupId>org.apache.orc</groupId>
Expand All @@ -37,15 +37,12 @@
<maven.compiler.useIncrementalCompilation>false</maven.compiler.useIncrementalCompilation>

<avro.version>1.8.2</avro.version>
<hadoop.version>2.7.3</hadoop.version>
<hive.version>3.1.2</hive.version>
<jmh.version>1.20</jmh.version>
<orc.version>${project.version}</orc.version>
<parquet.version>1.8.3</parquet.version>
<slf4j.version>1.7.25</slf4j.version>
<spark.version>3.1.0</spark.version>
<storage-api.version>2.7.2</storage-api.version>
<zookeeper.version>3.4.6</zookeeper.version>
</properties>

<modules>
Expand All @@ -64,14 +61,18 @@
<dependency>
<groupId>com.google.auto.service</groupId>
<artifactId>auto-service</artifactId>
<version>1.0-rc4</version>
<version>1.0-rc7</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
Expand Down
25 changes: 25 additions & 0 deletions java/bench/spark/src/findbugs/exclude.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<FindBugsFilter>
<Match>
<Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2,MS_EXPOSE_REP"/>
</Match>
<Match>
<Class name="~org\.openjdk\.jmh\.infra\.generated.*"/>
</Match>
<Match>
<Class name="~org\.apache\.orc\.bench.*\.generated.*"/>
</Match>
</FindBugsFilter>
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ public void partialRead(InputSource source,
"avatar_url:string,gravatar_id:string,id:int,login:string,url:string>," +
"created_at:timestamp>");
break;
default:
throw new IllegalArgumentException("Unknown data set " + source.dataset);
}
Seq<Tuple2<String,String>> optionsScala = JavaConverters.asScalaBufferConverter(options).asScala().toSeq();
@SuppressWarnings("unchecked")
Expand Down Expand Up @@ -269,6 +271,8 @@ public void pushDown(InputSource source,
LessThan$.MODULE$.apply("created_at",
Timestamp.valueOf("2015-11-01 00:01:00.0"))));
break;
default:
throw new IllegalArgumentException("Unknown data set " + source.dataset);
}
List<Tuple2<String,String>> options = new ArrayList<>();
switch (source.format) {
Expand Down