Skip to content

Commit

Permalink
Changed guava Stopwatch to Apache StopWatch because of hadoop
Browse files Browse the repository at this point in the history
  • Loading branch information
Aklakan committed Mar 1, 2021
1 parent 64c5172 commit b884035
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -15,10 +15,11 @@ import org.apache.jena.shared.impl.PrefixMappingImpl
import org.apache.spark.rdd.RDD
import org.apache.spark.sql.SparkSession
import org.slf4j.LoggerFactory

import java.nio.file.{Files, Paths}
import java.util.concurrent.TimeUnit

import org.apache.commons.lang3.time.StopWatch


/**
* Called from the Java class [[CmdSansaTrigMerge]]
Expand All @@ -32,7 +33,7 @@ object CmdSansaTrigMergeImpl {

import collection.JavaConverters._

val stopwatch = Stopwatch.createStarted()
val stopwatch = StopWatch.createStarted()

val prefixes: PrefixMapping = new PrefixMappingImpl()

Expand Down Expand Up @@ -131,7 +132,7 @@ object CmdSansaTrigMergeImpl {

// ResultSetMgr.write(System.out, resultSetSpark.collectToTable().toResultSet, outLang)

logger.info("Processing time: " + stopwatch.elapsed(TimeUnit.SECONDS) + " seconds")
logger.info("Processing time: " + stopwatch.getTime(TimeUnit.SECONDS) + " seconds")

0 // exit code
}
Expand Down

0 comments on commit b884035

Please sign in to comment.