apache flink 无法解析导入

编程入门 行业动态 更新时间:2024-10-26 08:32:25
本文介绍了apache flink 无法解析导入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在研究 flink 介绍,但我无法正确导入

import org.apache.flink.streaming.api.datastream.DataStream;导入 org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;导入 org.apache.flink.walkthroughmon.sink.AlertSink;导入 org.apache.flink.walkthroughmon.entity.Alert;导入 org.apache.flink.walkthroughmon.entity.Transaction;导入 org.apache.flink.walkthroughmon.source.TransactionSource;

以上这些包无法导入我使用了以下网站

我能够从命令行(通过mvn clean package")构建应用程序,而无需进行任何更改.

Hi iam working on the flink introduction but iam not able to import properly

import org.apache.flink.streaming.api.datastream.DataStream; import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; import org.apache.flink.walkthroughmon.sink.AlertSink; import org.apache.flink.walkthroughmon.entity.Alert; import org.apache.flink.walkthroughmon.entity.Transaction; import org.apache.flink.walkthroughmon.source.TransactionSource;

these above packages are not able to import i have used from the following site link

in this link i have imported the project via mvn command

please help me resolve this

解决方案

I just tried this myself, and found that in order to run the application in my IDE (IntelliJ) I had to select the option under Run / Edit Configurations to 'Include dependencies with "Provided" scope'. Once I did that, everything worked fine.

I was able to build the application from the command line (via "mvn clean package") without making any changes.

更多推荐

apache flink 无法解析导入

本文发布于:2023-05-29 21:34:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/353333.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:apache   flink

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!