Esempio n. 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());
            }            
        }
Esempio n. 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());
            }
        }
Esempio n. 3
0
File: Run.cs Progetto: 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());
            }            
        }