Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Flink Table Api how to connect with relational source?

Solved Go to solution

Flink Table Api how to connect with relational source?

Expert Contributor

Hi ,

I am referring "https://flink.apache.org/news/2017/04/04/dynamic-tables.html" in that database configuration is not shown

`val sensorTable = ??? // can be a CSV file, Kafka topic, database, or ... // register the table source

tEnv.registerTableSource("sensors", sensorTable)

I have to connect with relational source, do Flink have API for database or JDBC approach we need to use ?

(Did we have any similar like for Apache Spark we have sqlcontext or sparksession object )

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Flink Table Api how to connect with relational source?

New Contributor
4 REPLIES 4
Highlighted

Re: Flink Table Api how to connect with relational source?

Expert Contributor

Adding this detail :

In its current version (1.4.0, Dec. 2017), Flink does not provide a built-in TableSource to ingest data from a relational database.

Highlighted

Re: Flink Table Api how to connect with relational source?

New Contributor
Highlighted

Re: Flink Table Api how to connect with relational source?

Expert Contributor
Highlighted

Re: Flink Table Api how to connect with relational source?

Expert Contributor
Don't have an account?
Coming from Hortonworks? Activate your account here