Ejemplo 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());
            }            
        }
Ejemplo 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());
            }
        }
Ejemplo n.º 3
0
Archivo: Run.cs Proyecto: 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());
            }            
        }