-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbatch_schema.go
56 lines (49 loc) · 1.81 KB
/
batch_schema.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package livy
type Batch struct {
ID int `json:"id"`
AppID string `json:"appId"`
AppInfo map[string]string `json:"appInfo"`
Log []string `json:"log"`
State string `json:"state"`
}
type GetBatchesRequest struct {
From int `json:"from,omitempty"`
Size int `json:"size,omitempty"`
}
type GetBatchesResponse struct {
From int `json:"from"`
Total int `json:"total"`
Sessions []Batch `json:"sessions"`
}
type PostBatchRequest struct {
File string `json:"file,omitempty"`
ProxyUser string `json:"proxyUser,omitempty"`
ClassName string `json:"className,omitempty"`
Args []string `json:"args,omitempty"`
Jars []string `json:"jars,omitempty"`
PyFiles []string `json:"pyFiles,omitempty"`
Files []string `json:"files,omitempty"`
DriverMemory string `json:"driverMemory,omitempty"`
DriverCores int `json:"driverCores,omitempty"`
ExecutorMemory string `json:"executorMemory,omitempty"`
ExecutorCores int `json:"executorCores,omitempty"`
NumExecutors int `json:"numExecutors,omitempty"`
Archives []string `json:"archives,omitempty"`
Queue string `json:"queue,omitempty"`
Name string `json:"name,omitempty"`
Conf map[string]string `json:"conf,omitempty"`
}
type GetBatchStateResponse struct {
ID int `json:"id"`
State string `json:"state"`
}
type GetBatchLogsRequest struct {
From int `json:"from,omitempty"`
Size int `json:"size,omitempty"`
}
type GetBatchLogsResponse struct {
ID int `json:"id"`
From int `json:"from"`
Size int `json:"size"`
Log []string `json:"log"`
}