intellij中运行后出现Hadoop is not in the classpath/dependencies
生活随笔
收集整理的這篇文章主要介紹了
intellij中运行后出现Hadoop is not in the classpath/dependencies
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
intellij中運行check point的時候碰到了一個比較棘手的問題
Hadoop is not in the classpath/dependencies
版本:
| 組件 | 版本號 |
| Flink | 1.12 |
| Ubuntu | 20.04 |
?
網(wǎng)上通用的辦法是在$FLINK_HOME/lib加入一個jar包,我的版本是flink-shaded-hadoop-3-uber-3.1.1.7.0.3.0-79-7.0.jar
加了之后發(fā)現(xiàn)intellij依然報告相同的錯誤。
我的辦法是在intellij的pom.xml中加入下面兩個,第一個看起來好像有用,實測沒啥關(guān)系,第二個必須加上。
<!--<dependency>--><!--<groupId>org.apache.flink</groupId>--><!--<artifactId>flink-connector-filesystem_2.11</artifactId>--><!--<version>1.11.1</version>--> <!--</dependency>--><dependency><groupId>org.apache.hadoop</groupId><artifactId>hadoop-client</artifactId><version>3.3.0</version> </dependency>?
總結(jié)
以上是生活随笔為你收集整理的intellij中运行后出现Hadoop is not in the classpath/dependencies的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 八方旅人经验猫怎么打
- 下一篇: i茅台怎么改城市