Apache Pinot Docs
Search…
Controller Admin API
The Pinot Admin UI contains all the APIs that you will need to operate and manage your cluster. It provides a set of APIs for Pinot cluster management including health check, instances management, schema and table management, data segments management.
Note: The controller API's are primarily for admin tasks. Even though the UI console queries Pinot when running queries from the query console, please use the Broker Query API for querying Pinot.
Let's check out the tables in this cluster by going to Table -> List all tables in cluster and click on Try it out!. We can see the baseballStats table listed here. We can also see the exact curl call made to the controller API.
List all tables in cluster
You can look at the configuration of this table by going to Tables -> Get/Enable/Disable/Drop a table, type in baseballStats in the table name, and click Try it out!
Let's check out the schemas in the cluster by going to Schema -> List all schemas in the cluster and click Try it out!. We can see a schema called baseballStats in this list.
List all schemas in the cluster
Take a look at the schema by going to Schema -> Get a schema, type baseballStats in the schema name, and click Try it out!.
1
{
2
"schemaName": "baseballStats",
3
"dimensionFieldSpecs": [
4
{
5
"name": "playerID",
6
"dataType": "STRING"
7
},
8
{
9
"name": "yearID",
10
"dataType": "INT"
11
},
12
{
13
"name": "teamID",
14
"dataType": "STRING"
15
},
16
{
17
"name": "league",
18
"dataType": "STRING"
19
},
20
{
21
"name": "playerName",
22
"dataType": "STRING"
23
}
24
],
25
"metricFieldSpecs": [
26
{
27
"name": "playerStint",
28
"dataType": "INT"
29
},
30
{
31
"name": "numberOfGames",
32
"dataType": "INT"
33
},
34
{
35
"name": "numberOfGamesAsBatter",
36
"dataType": "INT"
37
},
38
{
39
"name": "AtBatting",
40
"dataType": "INT"
41
},
42
{
43
"name": "runs",
44
"dataType": "INT"
45
},
46
{
47
"name": "hits",
48
"dataType": "INT"
49
},
50
{
51
"name": "doules",
52
"dataType": "INT"
53
},
54
{
55
"name": "tripples",
56
"dataType": "INT"
57
},
58
{
59
"name": "homeRuns",
60
"dataType": "INT"
61
},
62
{
63
"name": "runsBattedIn",
64
"dataType": "INT"
65
},
66
{
67
"name": "stolenBases",
68
"dataType": "INT"
69
},
70
{
71
"name": "caughtStealing",
72
"dataType": "INT"
73
},
74
{
75
"name": "baseOnBalls",
76
"dataType": "INT"
77
},
78
{
79
"name": "strikeouts",
80
"dataType": "INT"
81
},
82
{
83
"name": "intentionalWalks",
84
"dataType": "INT"
85
},
86
{
87
"name": "hitsByPitch",
88
"dataType": "INT"
89
},
90
{
91
"name": "sacrificeHits",
92
"dataType": "INT"
93
},
94
{
95
"name": "sacrificeFlies",
96
"dataType": "INT"
97
},
98
{
99
"name": "groundedIntoDoublePlays",
100
"dataType": "INT"
101
},
102
{
103
"name": "G_old",
104
"dataType": "INT"
105
}
106
]
107
}
Copied!
Finally, let's checkout the data segments in the cluster by going to List all segments, type in baseballStats in the table name, and click Try it out!. There's 1 segment for this table, called baseballStats_OFFLINE_0.
You might have figured out by now, in order to get data into the Pinot cluster, we need a table, a schema and segments. Let's head over to Batch upload sample data, to find out more about these components and learn how to create them for your own data.
Last modified 2mo ago
Copy link