Hi all, I have some experience in FlinkSQL. Now I'...
# troubleshooting
v
Hi all, I have some experience in FlinkSQL. Now I'm trying to experiment flink via IntelliJ by following the below two documentation, also i'm new to maven. Here i'm getting error for the below import statement. So how to solve this dependency issue.
Copy code
import org.apache.flink.streaming.api.datastream.DataStream;
Also i found that streaming package is excluded by default in flink git repo , Is this the reason. Can i remove that? https://github.com/apache/flink/tree/master https://m.mage.ai/getting-started-with-apache-flink-a-guide-to-stream-processing-70a785e4bcea
when i try to remove those excludes and run the
Copy code
./mvnw clean package
command its throwing
Copy code
Too many files with unapproved license: 5669 See RAT report in: /Users/vishal/Documents/shopup/flink/flink_test/flink/target/rat.txt
this error
c
What import error are you getting? Did you use a pom file you found on the internet somewhere or create it yourself? I'm not familiar but the RAT tool is for auditing production release code for licenses: https://creadur.apache.org/rat/apache-rat-plugin/index.html If you are just playing around with an example, you could probably remove that from the pom. It says you can disable it via
-Drat.skip=true
when you run mvnw
In general, if you are getting an import error, the dependency is probably missing from your pom file. DataStream is in - https://github.com/apache/flink/blob/master/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStream.java So you may need to make sure you are including
flink-streaming-java
that as a dependency in your pom. Depending on your version, you can find a sample pom snippet here to include: https://mvnrepository.com/artifact/org.apache.flink/flink-streaming-java