public NewAzureHDInsightMapReduceJobDefinitionCommand()
 {
     Arguments = new string[] { };
     Files = new string[] { };
     Defines = new Hashtable();
     LibJars = new string[] { };
     job = new AzureHDInsightMapReduceJobDefinition();
 }
コード例 #2
0
        public virtual JobSubmissionResponse SubmitMRJob(AzureHDInsightMapReduceJobDefinition mapredJobDef)
        {
            var mapredJobParams = new MapReduceJobSubmissionParameters
            {
                Arguments = mapredJobDef.Arguments,
                Defines   = mapredJobDef.Defines,
                Files     = mapredJobDef.Files,
                JarClass  = mapredJobDef.ClassName,
                LibJars   = mapredJobDef.LibJars,
                JarFile   = mapredJobDef.JarFile,
                StatusDir = mapredJobDef.StatusFolder
            };

            return(HdInsightJobManagementClient.JobManagement.SubmitMapReduceJob(mapredJobParams));
        }
コード例 #3
0
        public virtual JobSubmissionResponse SubmitMRJob(AzureHDInsightMapReduceJobDefinition mapredJobDef)
        {
            var mapredJobParams = new MapReduceJobSubmissionParameters
            {
                Arguments = mapredJobDef.Arguments,
                Defines = mapredJobDef.Defines,
                Files = mapredJobDef.Files,
                JarClass = mapredJobDef.ClassName,
                LibJars = mapredJobDef.LibJars,
                JarFile = mapredJobDef.JarFile,
                StatusDir = mapredJobDef.StatusFolder
            };

            return HdInsightJobManagementClient.JobManagement.SubmitMapReduceJob(mapredJobParams);
        }
コード例 #4
0
        public virtual JobSubmissionResponse SubmitMRJob(AzureHDInsightMapReduceJobDefinition mapredJobDef)
        {
            var mapredJobParams = new MapReduceJobSubmissionParameters
            {
                Arguments = ConvertListToString(mapredJobDef.Arguments, "arg"),
                Defines   = ConvertDefinesToString(mapredJobDef.Defines),
                Files     = ConvertListToString(mapredJobDef.Files, "file"),
                JarClass  = mapredJobDef.ClassName,
                LibJars   = ConvertListToString(mapredJobDef.LibJars, "jar"),
                JarFile   = mapredJobDef.JarFile,
                StatusDir = mapredJobDef.StatusFolder,
                UserName  = HdInsightJobManagementClient.Credentials.Username
            };

            return(HdInsightJobManagementClient.JobManagement.SubmitMapReduceJob(mapredJobParams));
        }
コード例 #5
0
        public virtual JobSubmissionResponse SubmitMRJob(AzureHDInsightMapReduceJobDefinition mapredJobDef)
        {
            var mapredJobParams = new MapReduceJobSubmissionParameters
            {
                Arguments = ConvertListToString(mapredJobDef.Arguments, "arg"),
                Defines = ConvertDefinesToString(mapredJobDef.Defines),
                Files = ConvertListToString(mapredJobDef.Files, "file"),
                JarClass = mapredJobDef.ClassName,
                LibJars = ConvertListToString(mapredJobDef.LibJars, "jar"),
                JarFile = mapredJobDef.JarFile,
                StatusDir = mapredJobDef.StatusFolder,
                UserName = HdInsightJobManagementClient.Credentials.Username
            };

            return HdInsightJobManagementClient.JobManagement.SubmitMapReduceJob(mapredJobParams);
        }