Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Big data IDEA debug flink program

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Flink development in IDEA is a relatively difficult thing, there is no reference materials on the Internet, even if the employment is too general, I do not know if it will not say or will not talk nonsense, in order to solve the problem of flink, I specially made a simple description of the development. Mainly consider two issues: 1, the construction of the language environment. 2. The flink code is compiled and run.

For more video materials of big data, please add QQ group: 947967114 first solve the first problem:

To create a maven environment, the configuration of maven is not described. In other words, before reading this article, you should first make sure that the maven under IDEA is normal:

[if! supportLists] 1 and [endif] create a maven project: file-new-project-Maven (pull to the lowest change to find scala-archetype-simple) as shown below:

[if! supportLists] 2, [endif] set GroupId and ArtifacId:

[if! supportLists] 3, [endif] pay attention to the maven environment you download:

To continue to get more big data video materials, please add QQ group: 947967114

The environmental conditions you will see after the configuration is completed are as follows

[if! supportLists] 2 and [endif] configure the environment of scala. I have added the environment of spark:

File-Project Structure-Libraries-+Scala SDK: select the scala version of the windows you installed:

Add spark environment (may not be added): File-Project Structure-Libraries-+---java

[if! supportLists] 3, [endif] the key point is to configure the flink environment: File-Project Structure-Libraries-+---java selects the flink that you download. Here you need to add two packages: one is the lib package and the other is the opt package. After that, OK determines:

We see that the environment we choose is like this:

At this point we see that the environment and dependency packages of our project look like this:

But it cannot be developed yet. It is necessary to set up the directory: main right, Make Drectory As--Source Root to get more big data video materials, please add QQ group: 947967114

You can now create the flink program in the main package:

A test program and the running results are as follows:

Friends, if you are also successful, please applaud yourself! IT is endless, come on! For more video information of big data, please add QQ group: 947967114

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report