Java 类org.apache.hadoop.fs.shell.CopyCommands.Cp 实例源码

项目:hadoop    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testDirectoryCpWithP() throws Exception {
  run(new Cp(), "-p", "d1", "d3");
  assertEquals(fs.getFileStatus(new Path("d1")).getModificationTime(),
      fs.getFileStatus(new Path("d3")).getModificationTime());
  assertEquals(fs.getFileStatus(new Path("d1")).getPermission(),
      fs.getFileStatus(new Path("d3")).getPermission());
}
项目:hadoop    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testDirectoryCpWithoutP() throws Exception {
  run(new Cp(), "d1", "d4");
  assertTrue(fs.getFileStatus(new Path("d1")).getModificationTime() !=
      fs.getFileStatus(new Path("d4")).getModificationTime());
  assertTrue(!fs.getFileStatus(new Path("d1")).getPermission()
      .equals(fs.getFileStatus(new Path("d4")).getPermission()));
}
项目:big-c    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testDirectoryCpWithP() throws Exception {
  run(new Cp(), "-p", "d1", "d3");
  assertEquals(fs.getFileStatus(new Path("d1")).getModificationTime(),
      fs.getFileStatus(new Path("d3")).getModificationTime());
  assertEquals(fs.getFileStatus(new Path("d1")).getPermission(),
      fs.getFileStatus(new Path("d3")).getPermission());
}
项目:big-c    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testDirectoryCpWithoutP() throws Exception {
  run(new Cp(), "d1", "d4");
  assertTrue(fs.getFileStatus(new Path("d1")).getModificationTime() !=
      fs.getFileStatus(new Path("d4")).getModificationTime());
  assertTrue(!fs.getFileStatus(new Path("d1")).getPermission()
      .equals(fs.getFileStatus(new Path("d4")).getPermission()));
}
项目:hadoop-2.6.0-cdh5.4.3    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testDirectoryCpWithP() throws Exception {
  run(new Cp(), "-p", "d1", "d3");
  assertEquals(fs.getFileStatus(new Path("d1")).getModificationTime(),
      fs.getFileStatus(new Path("d3")).getModificationTime());
  assertEquals(fs.getFileStatus(new Path("d1")).getPermission(),
      fs.getFileStatus(new Path("d3")).getPermission());
}
项目:hadoop-2.6.0-cdh5.4.3    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testDirectoryCpWithoutP() throws Exception {
  run(new Cp(), "d1", "d4");
  assertTrue(fs.getFileStatus(new Path("d1")).getModificationTime() !=
      fs.getFileStatus(new Path("d4")).getModificationTime());
  assertTrue(!fs.getFileStatus(new Path("d1")).getPermission()
      .equals(fs.getFileStatus(new Path("d4")).getPermission()));
}
项目:hadoop-oss    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithP() throws Exception {
    run(new Cp(), "-p", FROM.toString(), TO.toString());
    assertAttributesPreserved(TO);
}
项目:hadoop-oss    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithoutP() throws Exception {
    run(new Cp(), FROM.toString(), TO.toString());
    assertAttributesChanged(TO);
}
项目:hadoop-oss    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testDirectoryCpWithP() throws Exception {
  run(new Cp(), "-p", DIR_FROM.toString(), DIR_TO2.toString());
  assertAttributesPreserved(DIR_TO2);
}
项目:hadoop-oss    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testDirectoryCpWithoutP() throws Exception {
  run(new Cp(), DIR_FROM.toString(), DIR_TO2.toString());
  assertAttributesChanged(DIR_TO2);
}
项目:hadoop    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithP() throws Exception {
    run(new Cp(), "-p", FROM.toString(), TO.toString());
    assertAttributesPreserved();
}
项目:hadoop    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithoutP() throws Exception {
    run(new Cp(), FROM.toString(), TO.toString());
    assertAttributesChanged();
}
项目:aliyun-oss-hadoop-fs    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithP() throws Exception {
    run(new Cp(), "-p", FROM.toString(), TO.toString());
    assertAttributesPreserved(TO);
}
项目:aliyun-oss-hadoop-fs    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithoutP() throws Exception {
    run(new Cp(), FROM.toString(), TO.toString());
    assertAttributesChanged(TO);
}
项目:aliyun-oss-hadoop-fs    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testDirectoryCpWithP() throws Exception {
  run(new Cp(), "-p", DIR_FROM.toString(), DIR_TO2.toString());
  assertAttributesPreserved(DIR_TO2);
}
项目:aliyun-oss-hadoop-fs    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testDirectoryCpWithoutP() throws Exception {
  run(new Cp(), DIR_FROM.toString(), DIR_TO2.toString());
  assertAttributesChanged(DIR_TO2);
}
项目:big-c    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithP() throws Exception {
    run(new Cp(), "-p", FROM.toString(), TO.toString());
    assertAttributesPreserved();
}
项目:big-c    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithoutP() throws Exception {
    run(new Cp(), FROM.toString(), TO.toString());
    assertAttributesChanged();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithP() throws Exception {
    run(new Cp(), "-p", FROM.toString(), TO.toString());
    assertAttributesPreserved();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithoutP() throws Exception {
    run(new Cp(), FROM.toString(), TO.toString());
    assertAttributesChanged();
}
项目:hadoop-plus    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithP() throws Exception {
    run(new Cp(), "-p", FROM.toString(), TO.toString());
    assertAttributesPreserved();
}
项目:hadoop-plus    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithoutP() throws Exception {
    run(new Cp(), FROM.toString(), TO.toString());
    assertAttributesChanged();
}
项目:hops    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithP() throws Exception {
    run(new Cp(), "-p", FROM.toString(), TO.toString());
    assertAttributesPreserved(TO);
}
项目:hops    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithoutP() throws Exception {
    run(new Cp(), FROM.toString(), TO.toString());
    assertAttributesChanged(TO);
}
项目:hops    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testDirectoryCpWithP() throws Exception {
  run(new Cp(), "-p", DIR_FROM.toString(), DIR_TO2.toString());
  assertAttributesPreserved(DIR_TO2);
}
项目:hops    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testDirectoryCpWithoutP() throws Exception {
  run(new Cp(), DIR_FROM.toString(), DIR_TO2.toString());
  assertAttributesChanged(DIR_TO2);
}
项目:hadoop-TCP    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithP() throws Exception {
    run(new Cp(), "-p", FROM.toString(), TO.toString());
    assertAttributesPreserved();
}
项目:hadoop-TCP    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithoutP() throws Exception {
    run(new Cp(), FROM.toString(), TO.toString());
    assertAttributesChanged();
}
项目:hardfs    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithP() throws Exception {
    run(new Cp(), "-p", FROM.toString(), TO.toString());
    assertAttributesPreserved();
}
项目:hardfs    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithoutP() throws Exception {
    run(new Cp(), FROM.toString(), TO.toString());
    assertAttributesChanged();
}
项目:hadoop-on-lustre2    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithP() throws Exception {
    run(new Cp(), "-p", FROM.toString(), TO.toString());
    assertAttributesPreserved();
}
项目:hadoop-on-lustre2    文件:TestCopyPreserveFlag.java   
@Test(timeout = 10000)
public void testCpWithoutP() throws Exception {
    run(new Cp(), FROM.toString(), TO.toString());
    assertAttributesChanged();
}