Skip to content
Permalink
Browse files
AMBARI-24340 : AMS Migration tools should auto-detect whitelist file.…
… (#1868)
  • Loading branch information
avijayanhwx committed Jul 24, 2018
1 parent e2d2eb5 commit e355ac52eb03b8a4d005bd4a24297b4f65236e28
Showing 1 changed file with 1 addition and 4 deletions.
@@ -105,12 +105,9 @@ public MetricsDataMigrationLauncher(String whitelistedFilePath, String processed

if (whitelistedFilePath != null) {
this.metricNames = readMetricWhitelistFromFile(whitelistedFilePath);
} else if (timelineMetricConfiguration.isWhitelistingEnabled()) {
} else {
String whitelistFile = timelineMetricConfiguration.getMetricsConf().get(TimelineMetricConfiguration.TIMELINE_METRICS_WHITELIST_FILE, TimelineMetricConfiguration.TIMELINE_METRICS_WHITELIST_FILE_LOCATION_DEFAULT);
metricNames = readMetricWhitelistFromFile(whitelistFile);
} else {
LOG.error("No whitelisted metrics specified. Exiting...");
throw new Exception("List of whitelisted metrics must be provided");
}

readProcessedMetricsMap();

0 comments on commit e355ac5

Please sign in to comment.