diff --git a/.travis.yml b/.travis.yml index 4b9bb96785..bbde0af5b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,21 @@ language: java -git: - depth: 3 jdk: - oraclejdk8 -env: - - HADOOP_VERSION=2.7.6 - - HADOOP_VERSION=2.8.4 -script: "./gradlew test --stacktrace --info -Ddyno.hadoop.bin.version=${HADOOP_VERSION}" +git: + depth: 3 +install: true + +jobs: + include: + - stage: test + name: "Build" + script: "./gradlew build -x test" + - stage: test + script: "./gradlew test --stacktrace --info -Ddyno.hadoop.bin.version=${HADOOP_VERSION}" + env: HADOOP_VERSION=2.7.6 + - stage: test + script: "./gradlew test --stacktrace --info -Ddyno.hadoop.bin.version=${HADOOP_VERSION}" + env: HADOOP_VERSION=2.8.4 + +stages: + - test diff --git a/dynamometer-workload/src/main/java/com/linkedin/dynamometer/workloadgenerator/TimedInputFormat.java b/dynamometer-workload/src/main/java/com/linkedin/dynamometer/workloadgenerator/TimedInputFormat.java index 147c57e5f7..6880d87fcc 100644 --- a/dynamometer-workload/src/main/java/com/linkedin/dynamometer/workloadgenerator/TimedInputFormat.java +++ b/dynamometer-workload/src/main/java/com/linkedin/dynamometer/workloadgenerator/TimedInputFormat.java @@ -20,11 +20,11 @@ /** * An {@link InputFormat} which is time-based. Starts at some timestamp (specified by the - * {@value WorkloadDriver#START_TIMESTAMP_MS configuration) and runs for a time specified by the + * {@value WorkloadDriver#START_TIMESTAMP_MS} configuration) and runs for a time specified by the * {@value DURATION_KEY} configuration. Spawns {@value NUM_MAPPERS_KEY} mappers. Both {@value DURATION_KEY} * and {@value NUM_MAPPERS_KEY} are required. * - *
The values returned as the key by this InputFormat are just a sequential counter. + *The values returned as the key by this InputFormat are just a sequential counter.
*/
public class TimedInputFormat extends InputFormat
+ *
* Note that the sorting step is important; events in each distinct file must be in
* time-ascending order.
*/
diff --git a/dynamometer-workload/src/main/java/com/linkedin/dynamometer/workloadgenerator/audit/UserCommandKey.java b/dynamometer-workload/src/main/java/com/linkedin/dynamometer/workloadgenerator/audit/UserCommandKey.java
index 7126bd83f4..2c4c922263 100644
--- a/dynamometer-workload/src/main/java/com/linkedin/dynamometer/workloadgenerator/audit/UserCommandKey.java
+++ b/dynamometer-workload/src/main/java/com/linkedin/dynamometer/workloadgenerator/audit/UserCommandKey.java
@@ -13,7 +13,7 @@
import org.apache.hadoop.io.WritableComparable;
/**
- * UserCommandKey is a {@link Writable} used as a composite key combining the user id and
+ * UserCommandKey is a {@link WritableComparable} used as a composite key combining the user id and
* type of a replayed command. It is used as the output key for AuditReplayMapper and the
* keys for AuditReplayReducer.
*/
{@code
* INSERT OVERWRITE DIRECTORY '${outputPath}'
* SELECT (timestamp - ${startTimestamp} AS relativeTimestamp, ugi, cmd, src, dst, ip
* FROM '${auditLogTableLocation}'
* WHERE timestamp >= ${startTimestamp} AND timestamp < ${endTimestamp}
* DISTRIBUTE BY src
* SORT BY relativeTimestamp ASC;
- *
+ * }