git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ask about convert KafkaTableSource to table


Please take a look at the table api/SQL doc [1] below on how to register a table/tablesource. Thanks. 

[1] https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/table/common.html#register-a-table

On Thu, May 31, 2018 at 6:22 AM, Radhya Sahal <radhya.sahal@xxxxxxxxx> wrote:
Hi,

Could you help me which is the integrated versions of Java/Kafka/ Flink
which can work without errors.


I have a problem when I read streamed data from  KafkaTableSource to table.
I use this command

 tableEnv.registerDataStream("sensors", myKafkaTableSource)

But, there it doesn't run (i.e., compilation error). Since, these are the
dependencies in pom.xml

</dependency>
            <dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-streaming-java_2.11</artifactId>
            <version>1.4.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-clients_2.11</artifactId>
            <version>1.4.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-connector-kafka-0.11_2.11</artifactId>
            <version>1.4.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-table_2.11</artifactId>
            <version>1.4.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-core</artifactId>
            <version>1.4.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-streaming-scala_2.11</artifactId>
            <version>1.4.0</version>
        </dependency>
    </dependencies>





Regards.

Radhya Sahal




--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/



--
"So you have to trust that the dots will somehow connect in your future."


( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-flink-users/msg09552.html on line 130
Call Stack
#TimeMemoryFunctionLocation
10.0007368696{main}( ).../msg09552.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-flink-users/msg09552.html on line 130
Call Stack
#TimeMemoryFunctionLocation
10.0007368696{main}( ).../msg09552.html:0