Hi Nagananda,

could you show us your entire pom.xml?

From what I see it seems that you are using the wrong StreamTableEnvironment. First you need to decide if you want to program in Scala or Java. Depending on that you can add the dependencies as descriped in [1].

There are two environments specialized for Java and Scala development (org.apache.flink.table.api.scala.StreamTableEnvironment OR org.apache.flink.table.api.java.StreamTableEnvironment).

Regards,
Timo

[1] https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/table/#setup

Am 3/5/18 um 8:39 AM schrieb Nagananda M:

Hi Xingcan,

I have included the below portion in my pom.xml. Still the same error is coming.

</dependency>

<dependency>

<groupId>org.apache.flink</groupId>

<artifactId>flink-streaming-scala_2.11</artifactId>

<version>1.4.0</version>

</dependency>

Regards,

Nagananda M

*From:*Xingcan Cui [mailto:xingc...@gmail.com]
*Sent:* Monday, March 05, 2018 1:01 PM
*To:* Nagananda M
*Cc:* user@flink.apache.org
*Subject:* Re: Table API Compilation Error in Flink

Hi Nagananda,

adding `flink-streaming-scala_${scala version}` to your maven dependency would solve this.

Best,

Xingcan



On 5 Mar 2018, at 2:21 PM, Nagananda M <naganand...@tayana.in <mailto:naganand...@tayana.in>> wrote:

Hi All,

Am trying to compile a sample program in apache flink using TableEnvironment and facing some issue in compilation for the addition of the below line.

"StreamTableEnvironment tableEnv = StreamTableEnvironment.getTableEnvironment(env);"

The error is as below

"cannot access org.apache.flink.api.scala.ExecutionEnvironment"

Am compiling the code using maven. Can anyone help on this.

Cheers,

Nagananda M

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>

        

Virus-free.www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>


Reply via email to