@CliCommand(value = PREFIX + "setrep", help = "Change the replication factor of a file")
	public void setrep(
			@CliOption(key = { PATH }, mandatory = true, help = "path name") final String path,
			@CliOption(key = { "replica" }, mandatory = true, help = SOURCE_FILE_NAMES) final int replica,
			@CliOption(key = { RECURSIVE }, mandatory = false, specifiedDefaultValue = TRUE, unspecifiedDefaultValue = FALSE, help = RECURSION_HELP) final boolean recursive,
			@CliOption(key = { "waiting" }, mandatory = false, specifiedDefaultValue = TRUE, unspecifiedDefaultValue = FALSE, help = "whether wait for the replic number is eqal to the number") final boolean waiting) {
		List<String> argv = new ArrayList<String>();
		argv.add("-setrep");
		if (recursive) {
			argv.add("-R");
		}
		if (waiting) {
			argv.add("-w");
		}
		argv.add(String.valueOf(replica));
		argv.add(path);
		run(argv.toArray(new String[0]));
	}
HDFS shell commands

@author Jarred Li
@author Glenn Renfro
spring-xd-shell/src/main/java/org/springframework/xd/shell/hadoop/FsShellCommands.java