示例#1
0
        private static void Main(string[] args)
        {
            if (args.Length > 0 && args[0].Equals("p"))
            {
                bool result = HadoopFilePartitionTest.TestWithByteDeserializer();
                Assert.IsTrue(result);
            }

            if (args.Length > 0 && args[0].Equals("c"))
            {
                HadoopFileSystemTest t = new HadoopFileSystemTest();
                Assert.IsTrue(t.TestCopyFromRemote());
            }

            if (args.Length > 0 && args[0].Equals("b"))
            {
                HadoopFileSystemTest t = new HadoopFileSystemTest();
                Assert.IsTrue(t.TestCopyFromLocalAndBack());
            }            
        }
示例#2
0
        private static void Main(string[] args)
        {
            if (args.Length > 0 && args[0].Equals("p"))
            {
                bool result = HadoopFileInputPartitionTest.TestWithByteDeserializer();
                Assert.IsTrue(result);
            }

            // the remote path name can be either full or relative, passing with the second argument
            if (args.Length > 1 && args[0].Equals("c"))
            {
                HadoopFileSystemTest t = new HadoopFileSystemTest();
                Assert.IsTrue(t.TestCopyFromRemote(args[1]));
            }

            if (args.Length > 0 && args[0].Equals("b"))
            {
                HadoopFileSystemTest t = new HadoopFileSystemTest();
                Assert.IsTrue(t.TestCopyFromLocalAndBack());
            }
        }
示例#3
0
文件: Run.cs 项目: gyeongin/reef
        private static void Main(string[] args)
        {
            if (args.Length > 0 && args[0].Equals("p"))
            {
                bool result = HadoopFileInputPartitionTest.TestWithByteDeserializer();
                Assert.IsTrue(result);
            }

            // the remote path name can be either full or relative, passing with the second argument
            if (args.Length > 1 && args[0].Equals("c"))
            {
                HadoopFileSystemTest t = new HadoopFileSystemTest();
                Assert.IsTrue(t.TestCopyFromRemote(args[1]));
            }

            if (args.Length > 0 && args[0].Equals("b"))
            {
                HadoopFileSystemTest t = new HadoopFileSystemTest();
                Assert.IsTrue(t.TestCopyFromLocalAndBack());
            }            
        }