Help Center/
MapReduce Service/
User Guide (Kuala Lumpur Region)/
MRS Cluster Component Operation Gudie/
Using Spark/
Interconnecting Spark with OpenTSDB/
Querying an OpenTSDB Table
Updated on 2022-08-12 GMT+08:00
Querying an OpenTSDB Table
This SELECT command is used to query data in an OpenTSDB table.
Syntax
SELECT * FROM table_name WHERE tagk=tagv LIMIT number;
Keyword
Parameter |
Description |
---|---|
LIMIT |
Used to limit the query results. |
number |
Only the INT type is supported. |
Precautions
- The to-be-queried table must exist. Otherwise, an error is reported.
- The value of tagv must exist. Otherwise, an error occurs.
Example
Query data in the opentsdb_table table.
SELECT * FROM opentsdb_table LIMIT 100; SELECT * FROM opentsdb_table WHERE city='city1';
Parent topic: Interconnecting Spark with OpenTSDB
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot