HADOOP-9594 commons-math
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1541672 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1c211f6749
commit
70e464500b
|
@ -375,6 +375,9 @@ Release 2.3.0 - UNRELEASED
|
||||||
HADOOP-10064. Upgrade to maven antrun plugin version 1.7 (Arpit Agarwal via
|
HADOOP-10064. Upgrade to maven antrun plugin version 1.7 (Arpit Agarwal via
|
||||||
jeagles)
|
jeagles)
|
||||||
|
|
||||||
|
HADOOP-9594. Update apache commons math dependency (Timothy St. Clair via
|
||||||
|
stevel)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-9748. Reduce blocking on UGI.ensureInitialized (daryn)
|
HADOOP-9748. Reduce blocking on UGI.ensureInitialized (daryn)
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.commons</groupId>
|
<groupId>org.apache.commons</groupId>
|
||||||
<artifactId>commons-math</artifactId>
|
<artifactId>commons-math3</artifactId>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -38,7 +38,7 @@ import static com.google.common.base.Preconditions.*;
|
||||||
import org.apache.commons.configuration.PropertiesConfiguration;
|
import org.apache.commons.configuration.PropertiesConfiguration;
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
import org.apache.commons.math.util.MathUtils;
|
import org.apache.commons.math3.util.ArithmeticUtils;
|
||||||
import org.apache.hadoop.classification.InterfaceAudience;
|
import org.apache.hadoop.classification.InterfaceAudience;
|
||||||
import org.apache.hadoop.metrics2.MetricsInfo;
|
import org.apache.hadoop.metrics2.MetricsInfo;
|
||||||
import org.apache.hadoop.metrics2.MetricsCollector;
|
import org.apache.hadoop.metrics2.MetricsCollector;
|
||||||
|
@ -457,7 +457,7 @@ public class MetricsSystemImpl extends MetricsSystem implements MetricsSource {
|
||||||
MetricsConfig conf = entry.getValue();
|
MetricsConfig conf = entry.getValue();
|
||||||
int sinkPeriod = conf.getInt(PERIOD_KEY, PERIOD_DEFAULT);
|
int sinkPeriod = conf.getInt(PERIOD_KEY, PERIOD_DEFAULT);
|
||||||
confPeriod = confPeriod == 0 ? sinkPeriod
|
confPeriod = confPeriod == 0 ? sinkPeriod
|
||||||
: MathUtils.gcd(confPeriod, sinkPeriod);
|
: ArithmeticUtils.gcd(confPeriod, sinkPeriod);
|
||||||
String clsName = conf.getClassName("");
|
String clsName = conf.getClassName("");
|
||||||
if (clsName == null) continue; // sink can be registered later on
|
if (clsName == null) continue; // sink can be registered later on
|
||||||
String sinkName = entry.getKey();
|
String sinkName = entry.getKey();
|
||||||
|
|
|
@ -324,8 +324,8 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.commons</groupId>
|
<groupId>org.apache.commons</groupId>
|
||||||
<artifactId>commons-math</artifactId>
|
<artifactId>commons-math3</artifactId>
|
||||||
<version>2.1</version>
|
<version>3.1.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.commons</groupId>
|
<groupId>org.apache.commons</groupId>
|
||||||
|
|
Loading…
Reference in New Issue