コード例 #1
0
        public virtual void TestWebHdfsCustomUriPortWithCustomDefaultPorts()
        {
            URI uri = URI.Create("webhdfs://localhost:789");
            WebHdfsFileSystem fs = (WebHdfsFileSystem)FileSystem.Get(uri, conf);

            NUnit.Framework.Assert.AreEqual(123, fs.GetDefaultPort());
            NUnit.Framework.Assert.AreEqual(uri, fs.GetUri());
            NUnit.Framework.Assert.AreEqual("127.0.0.1:789", fs.GetCanonicalServiceName());
        }