[AMBARI-24771] Fix CVE issues for Ambari Metrics (2.7.3) (#7)
authoravijayanhwx <avijayan@hortonworks.com>
Mon, 15 Oct 2018 18:21:57 +0000 (11:21 -0700)
committerGitHub <noreply@github.com>
Mon, 15 Oct 2018 18:21:57 +0000 (11:21 -0700)
ambari-metrics-common/pom.xml
ambari-metrics-flume-sink/pom.xml
ambari-metrics-host-aggregator/pom.xml
ambari-metrics-timelineservice/pom.xml
ambari-metrics-timelineservice/src/main/java/org/apache/ambari/metrics/core/loadsimulator/net/RestMetricsSender.java

index 1c092dc..cb8333c 100644 (file)
     <dependency>
       <groupId>com.google.guava</groupId>
       <artifactId>guava</artifactId>
-      <version>14.0.1</version>
+      <version>18.0</version>
     </dependency>
     <dependency>
       <groupId>org.apache.curator</groupId>
index 72ebb27..7b4f4fa 100644 (file)
@@ -169,7 +169,7 @@ limitations under the License.
     <dependency>
       <groupId>com.google.guava</groupId>
       <artifactId>guava</artifactId>
-      <version>14.0.1</version>
+      <version>18.0</version>
     </dependency>
   </dependencies>
 </project>
index 7d8f6b5..38408df 100644 (file)
@@ -40,7 +40,7 @@
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
-            <version>14.0.1</version>
+            <version>18.0</version>
         </dependency>
         <dependency>
               <groupId>org.apache.ambari</groupId>
index d185811..cacece9 100644 (file)
     <dependency>
       <groupId>com.google.guava</groupId>
       <artifactId>guava</artifactId>
-      <version>14.0.1</version>
+      <version>18.0</version>
     </dependency>
     <dependency>
       <groupId>commons-logging</groupId>
     <dependency>
       <groupId>org.apache.kafka</groupId>
       <artifactId>kafka-clients</artifactId>
-      <version>0.11.0.1</version>
+      <version>0.11.0.3</version>
     </dependency>
 
     <dependency>
index 455b381..0e707ac 100644 (file)
@@ -56,7 +56,7 @@ public class RestMetricsSender implements MetricsSender {
   public String pushMetrics(String payload) {
     String responseString = "";
     UrlService svc = null;
-    Stopwatch timer = new Stopwatch().start();
+    Stopwatch timer = Stopwatch.createStarted();
 
     try {
       LOG.info("server: {}", collectorServiceAddress);