private int removeSpanReceiver(List<String> args) throws IOException { String indexStr = StringUtils.popFirstNonOption(args); long id = -1; try { id = Long.parseLong(indexStr); } catch (NumberFormatException e) { System.err.println("Failed to parse ID string " + indexStr + ": " + e.getMessage()); return 1; } remote.removeSpanReceiver(id); System.err.println("Removed trace span receiver " + id); return 0; }
@Override public int run(Configuration conf, List<String> args) throws IOException { String name = StringUtils.popFirstNonOption(args); if (name == null) { System.err.println("You must specify a name when deleting a " + "cache pool."); return 1; } if (!args.isEmpty()) { System.err.print("Can't understand arguments: " + Joiner.on(" ").join(args) + "\n"); System.err.println("Usage is " + getShortUsage()); return 1; } DistributedFileSystem dfs = AdminHelper.getDFS(conf); try { dfs.removeCachePool(name); } catch (IOException e) { System.err.println(AdminHelper.prettifyException(e)); return 2; } System.out.println("Successfully removed cache pool " + name + "."); return 0; } }
@Override public int run(Configuration conf, List<String> args) throws IOException { String idString= StringUtils.popFirstNonOption(args); if (idString == null) { System.err.println("You must specify a directive ID to remove.");
String hostPort = StringUtils.popFirstNonOption(args); if (hostPort == null) { System.err.println("You must specify a host:port pair.");
return 1; String name = StringUtils.popFirstNonOption(args); if (name == null) { System.err.println("You must specify a name when creating a " +
@Override public int run(Configuration conf, List<String> args) throws IOException { String name = StringUtils.popFirstNonOption(args); if (name == null) { System.err.println("You must specify a name when creating a " +
@Override public int run(Configuration conf, List<String> args) throws IOException { String name = StringUtils.popFirstNonOption(args); final boolean printStats = StringUtils.popOption("-stats", args); if (!args.isEmpty()) {
private int removeSpanReceiver(List<String> args) throws IOException { String indexStr = StringUtils.popFirstNonOption(args); long id = -1; try { id = Long.parseLong(indexStr); } catch (NumberFormatException e) { System.err.println("Failed to parse ID string " + indexStr + ": " + e.getMessage()); return 1; } remote.removeSpanReceiver(id); System.err.println("Removed trace span receiver " + id); return 0; }
private int removeSpanReceiver(List<String> args) throws IOException { String indexStr = StringUtils.popFirstNonOption(args); long id = -1; try { id = Long.parseLong(indexStr); } catch (NumberFormatException e) { System.err.println("Failed to parse ID string " + indexStr + ": " + e.getMessage()); return 1; } remote.removeSpanReceiver(id); System.err.println("Removed trace span receiver " + id); return 0; }
private int removeSpanReceiver(List<String> args) throws IOException { String indexStr = StringUtils.popFirstNonOption(args); long id = -1; try { id = Long.parseLong(indexStr); } catch (NumberFormatException e) { System.err.println("Failed to parse ID string " + indexStr + ": " + e.getMessage()); return 1; } remote.removeSpanReceiver(id); System.err.println("Removed trace span receiver " + id); return 0; }
private int removeSpanReceiver(List<String> args) throws IOException { String indexStr = StringUtils.popFirstNonOption(args); long id = -1; try { id = Long.parseLong(indexStr); } catch (NumberFormatException e) { System.err.println("Failed to parse ID string " + indexStr + ": " + e.getMessage()); return 1; } remote.removeSpanReceiver(id); System.err.println("Removed trace span receiver " + id); return 0; }
@Override public int run(Configuration conf, List<String> args) throws IOException { String name = StringUtils.popFirstNonOption(args); if (name == null) { System.err.println("You must specify a name when deleting a " + "cache pool."); return 1; } if (!args.isEmpty()) { System.err.print("Can't understand arguments: " + Joiner.on(" ").join(args) + "\n"); System.err.println("Usage is " + getShortUsage()); return 1; } DistributedFileSystem dfs = AdminHelper.getDFS(conf); try { dfs.removeCachePool(name); } catch (IOException e) { System.err.println(AdminHelper.prettifyException(e)); return 2; } System.out.println("Successfully removed cache pool " + name + "."); return 0; } }
@Override public int run(Configuration conf, List<String> args) throws IOException { String idString= StringUtils.popFirstNonOption(args); if (idString == null) { System.err.println("You must specify a directive ID to remove.");
@Override public int run(Configuration conf, List<String> args) throws IOException { String idString= StringUtils.popFirstNonOption(args); if (idString == null) { System.err.println("You must specify a directive ID to remove.");
String hostPort = StringUtils.popFirstNonOption(args); if (hostPort == null) { System.err.println("You must specify a host:port pair.");
@Override public int run(Configuration conf, List<String> args) throws IOException { String name = StringUtils.popFirstNonOption(args); if (name == null) { System.err.println("You must specify a name when deleting a " + "cache pool."); return 1; } if (!args.isEmpty()) { System.err.print("Can't understand arguments: " + Joiner.on(" ").join(args) + "\n"); System.err.println("Usage is " + getShortUsage()); return 1; } DistributedFileSystem dfs = AdminHelper.getDFS(conf); try { dfs.removeCachePool(name); } catch (IOException e) { System.err.println(AdminHelper.prettifyException(e)); return 2; } System.out.println("Successfully removed cache pool " + name + "."); return 0; } }
String hostPort = StringUtils.popFirstNonOption(args); if (hostPort == null) { System.err.println("You must specify a host:port pair.");
@Override public int run(Configuration conf, List<String> args) throws IOException { String name = StringUtils.popFirstNonOption(args); if (name == null) { System.err.println("You must specify a name when creating a " +
@Override public int run(Configuration conf, List<String> args) throws IOException { String name = StringUtils.popFirstNonOption(args); final boolean printStats = StringUtils.popOption("-stats", args); if (!args.isEmpty()) {
@Override public int run(Configuration conf, List<String> args) throws IOException { String name = StringUtils.popFirstNonOption(args); if (name == null) { System.err.println("You must specify a name when creating a " +