druid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] surekhasaharan commented on a change in pull request #6094: Introduce SystemSchema tables (#5989)
Date Sat, 22 Sep 2018 01:39:50 GMT
surekhasaharan commented on a change in pull request #6094: Introduce SystemSchema tables (#5989)
URL: https://github.com/apache/incubator-druid/pull/6094#discussion_r219657790

 File path: docs/content/querying/sql.md
 |JDBC_TYPE|Type code from java.sql.Types (Druid extension)|
+The SYS schema provides visibility into Druid segments, servers and tasks.
+For example to retrieve all segments for datasource "wikipedia", use the query:
+SELECT * FROM sys.segments WHERE datasource = 'wikipedia'
+### SEGMENTS table
+Segments table provides details on all Druid segments, whether they are published yet or
+|segment_id|Unique segment identifier|
+|datasource|Name of datasource|
+|start|Interval start time (in ISO 8601 format)|
+|end|Interval end time (in ISO 8601 format)|
+|size|Size of segment in bytes|
+|version|Version number (generally an ISO8601 timestamp corresponding to when the segment
set was first started)|
+|partition_num|Partition number (an integer, unique within a datasource+interval+version;
may not necessarily be contiguous)|
+|num_replicas|Number replicas of this segment currently being served|
+|is_published|True if this segment has been published to the metadata store|
+|is_available|True if this segment is currently being served by any server|
+|is_realtime|True if this segment is being served on a realtime server|
+|payload|Jsonified datasegment payload|
+### SERVERS table
+Servers table lists all data servers(any server that hosts a segment). It includes both historicals
and peons.
+|server|Server name in the form host:port|
+|scheme|Server scheme http or https|
+|server_type|Type of druid service for example historical, realtime, bridge, indexer_executor|
+|tier|Distribution tier see [druid.server.tier](#../configuration/index.html#Historical-General-Configuration)|
+|current_size|Current size of segments in bytes on this server|
+|max_size|Max size in bytes this server recommends to assign to segments see [druid.server.maxSize](#../configuration/index.html#Historical-General-Configuration)|
+To retrieve information about all servers, use the query:
+SELECT * FROM sys.servers;
+SEGMENT_SERVERS is used to join SEGMENTS with SERVERS table
+|server|Server name in format host:port (Primary key of [servers table](#SERVERS-table))|
+|segment_id|Segment identifier (Primary key of [segments table](#SEGMENTS-table))|
+To retrieve information from segment_servers table, use the query:
+SELECT * FROM sys.segment_servers;
+### TASKS table
+The tasks table provides information about active and recently-completed indexing tasks.
For more information 
 Review comment:

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org

View raw message