.entrySet()) { String location = entry.getKey(); threadPool.submit(new AssignmentTask(assignmentFailures, location, entry.getValue()));
@Override public void run() { HashSet<Path> uniqMapFiles = new HashSet<>(); for (List<PathSize> mapFiles : assignmentsPerTablet.values()) for (PathSize ps : mapFiles) uniqMapFiles.add(ps.path); log.debug("Assigning {} map files to {} tablets at {}", uniqMapFiles.size(), assignmentsPerTablet.size(), location); try { List<KeyExtent> failures = assignMapFiles(context, location, assignmentsPerTablet); handleFailures(failures, "Not Serving Tablet"); } catch (AccumuloException | AccumuloSecurityException e) { handleFailures(assignmentsPerTablet.keySet(), e.getMessage()); } }
String location = entry.getKey(); threadPool .submit(new AssignmentTask(assignmentFailures, tableName, location, entry.getValue()));
threadPool.submit(new AssignmentTask(credentials, assignmentFailures, tableName, location, entry.getValue()));
@Override public void run() { HashSet<Path> uniqMapFiles = new HashSet<Path>(); for (List<PathSize> mapFiles : assignmentsPerTablet.values()) for (PathSize ps : mapFiles) uniqMapFiles.add(ps.path); log.debug("Assigning " + uniqMapFiles.size() + " map files to " + assignmentsPerTablet.size() + " tablets at " + location); try { List<KeyExtent> failures = assignMapFiles(credentials, location, assignmentsPerTablet); handleFailures(failures, "Not Serving Tablet"); } catch (AccumuloException e) { handleFailures(assignmentsPerTablet.keySet(), e.getMessage()); } catch (AccumuloSecurityException e) { handleFailures(assignmentsPerTablet.keySet(), e.getMessage()); } }
@Override public void run() { HashSet<Path> uniqMapFiles = new HashSet<>(); for (List<PathSize> mapFiles : assignmentsPerTablet.values()) for (PathSize ps : mapFiles) uniqMapFiles.add(ps.path); log.debug("Assigning " + uniqMapFiles.size() + " map files to " + assignmentsPerTablet.size() + " tablets at " + location); try { List<KeyExtent> failures = assignMapFiles(context, location, assignmentsPerTablet); handleFailures(failures, "Not Serving Tablet"); } catch (AccumuloException e) { handleFailures(assignmentsPerTablet.keySet(), e.getMessage()); } catch (AccumuloSecurityException e) { handleFailures(assignmentsPerTablet.keySet(), e.getMessage()); } }