THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
String schemaRegistryURL = ...; Map<String, String> kafkaProps = ...; SchemaRegistryCatalog catalog = SchemaRegistryCatalog.builder() .schemaRegistryURL(schemaRegistryURL) .kafkaOptions(kafkaProps) .catalogName("myCatalog") .dbName("myDB") .build(); tEnv.registerCatalog("catalog1", catalog); // ---------- Consume stream from Kafka ------------------- // Assumes there is a topic named 'transactions' String String query = "SELECT\n" + " id, amount\n" + "FROM myCatalog.myDB.transactions"; |
...