static void Test() { UploadFile(@"D:\Research\KB\kb.entity.subset"); DownLoadFile("kb.entity.subset"); var wclient = new NameNodeServiceClient(); wclient.DeleteFile("kb.entity.subset"); FileServiceClient client = new FileServiceClient("BasicHttpBinding_IFileService", "http://*****:*****@"D:\Research\KB\kb.entity", FileMode.Open); var stream = new CombinedStream(streams); client.UploadChunk(stream); }
private static void DeleteFile(string p) { var client = new NameNodeServiceClient(); client.DeleteFile(p); }