Пример #1
0
        /// <exception cref="System.IO.IOException"/>
        public virtual void TestWebHDFS()
        {
            Path file = new Path(TestBaseDir1(), "file");
            Path link = new Path(TestBaseDir1(), "linkToFile");

            CreateAndWriteFile(file);
            webhdfs.CreateSymlink(file, link, false);
            wrapper.SetReplication(link, (short)2);
            NUnit.Framework.Assert.AreEqual(0, wrapper.GetFileLinkStatus(link).GetReplication
                                                ());
            NUnit.Framework.Assert.AreEqual(2, wrapper.GetFileStatus(link).GetReplication());
            NUnit.Framework.Assert.AreEqual(2, wrapper.GetFileStatus(file).GetReplication());
        }