'Data Subscription in TDengine through Java RESTful API
I'm using a time series database called TDengine.
I want to try the data subscription according the document:
TSDBSubscribe sub = ((TSDBConnection)conn).subscribe("topic", "select * from meters", false);
Then I got an error:
java.lang.ClassCastException: com.taosdata.jdbc.rs.RestfulConnection cannot be cast to com.taosdata.jdbc.TSDBConnection
What may be the problem?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
