/** * Returns all the active timeline service versions. It does not check * whether the timeline service itself is enabled. * * @param conf the configuration * @return the timeline service versions as a collection of floats. */ private static Collection<Float> getTimelineServiceVersions( Configuration conf) { String versions = conf.get(TIMELINE_SERVICE_VERSIONS); if (versions == null) { versions = Float.toString(getTimelineServiceVersion(conf)); } List<String> stringList = Arrays.asList(versions.split(",")); List<Float> floatList = new ArrayList<Float>(); for (String s : stringList) { Float f = Float.parseFloat(s); floatList.add(f); } return floatList; }
YarnConfiguration.getTimelineServiceVersion(conf)); } else { LOG.info("Timeline service is not enabled");