1
+ using Azure . Analytics . Synapse . Artifacts . Models ;
2
+ using System . Collections . Generic ;
3
+
4
+ namespace Microsoft . Azure . Commands . Synapse . Models
5
+ {
6
+ public class PSSparkJobProperties
7
+ {
8
+ public PSSparkJobProperties ( SparkJobProperties sparkJobProperties )
9
+ {
10
+ this . Name = sparkJobProperties . Name ;
11
+ this . File = sparkJobProperties . File ;
12
+ this . ClassName = sparkJobProperties . ClassName ;
13
+ this . Configuration = sparkJobProperties . Conf ;
14
+ this . Arguments = sparkJobProperties . Args ;
15
+ this . Jars = sparkJobProperties . Files ;
16
+ this . Archives = sparkJobProperties . Archives ;
17
+ this . DriverMemory = sparkJobProperties . DriverMemory ;
18
+ this . DriverCores = sparkJobProperties . DriverCores ;
19
+ this . ExecutorMemory = sparkJobProperties . ExecutorMemory ;
20
+ this . ExecutorCores = sparkJobProperties . ExecutorCores ;
21
+ this . NumberOfExecutors = sparkJobProperties . NumExecutors ;
22
+ }
23
+
24
+ /// <summary> The name of the job. </summary>
25
+ public string Name { get ; set ; }
26
+
27
+ /// <summary> File containing the application to execute. </summary>
28
+ public string File { get ; set ; }
29
+
30
+ /// <summary> Main class for Java/Scala application. </summary>
31
+ public string ClassName { get ; set ; }
32
+
33
+ /// <summary> Spark configuration properties. </summary>
34
+ public object Configuration { get ; set ; }
35
+
36
+ /// <summary> Command line arguments for the application. </summary>
37
+ public IList < string > Arguments { get ; }
38
+
39
+ /// <summary> Jars to be used in this job. </summary>
40
+ public IList < string > Jars { get ; }
41
+
42
+ /// <summary> files to be used in this job. </summary>
43
+ public IList < string > Files { get ; }
44
+
45
+ /// <summary> Archives to be used in this job. </summary>
46
+ public IList < string > Archives { get ; }
47
+
48
+ /// <summary> Amount of memory to use for the driver process. </summary>
49
+ public string DriverMemory { get ; set ; }
50
+
51
+ /// <summary> Number of cores to use for the driver. </summary>
52
+ public int DriverCores { get ; set ; }
53
+
54
+ /// <summary> Amount of memory to use per executor process. </summary>
55
+ public string ExecutorMemory { get ; set ; }
56
+
57
+ /// <summary> Number of cores to use for each executor. </summary>
58
+ public int ExecutorCores { get ; set ; }
59
+
60
+ /// <summary> Number of executors to launch for this job. </summary>
61
+ public int NumberOfExecutors { get ; set ; }
62
+ }
63
+ }
0 commit comments