SpringBoot整合Hadoop(HDFS)導致專案啟動報錯
現象一
原因:這是由於Hadoop中依賴的slf4j-log4j12與Spring依賴發生衝突
解決辦法(Gradle):
compile('org.apache.hadoop:hadoop-common:2.9.1') {
exclude module: 'slf4j-log4j12'
}
現象二
原因:這是由於Hadoop中依賴的servlet-api與SpringBoot依賴發生衝突
解決辦法(Gradle):
compile('org.apache.hadoop:hadoop-hdfs:2.9.1') { exclude module: 'servlet-api' } compile('org.apache.hadoop:hadoop-common:2.9.1') { exclude module: 'servlet-api' }
同時解決上述2個問題(Gradle)
compile('org.apache.hadoop:hadoop-hdfs:2.9.1') {
exclude module: 'servlet-api'
}
compile('org.apache.hadoop:hadoop-common:2.9.1') {
exclude module: 'slf4j-log4j12'
exclude module: 'servlet-api'
}
相關推薦
SpringBoot整合Hadoop(HDFS)導致專案啟動報錯
現象一 原因:這是由於Hadoop中依賴的slf4j-log4j12與Spring依賴發生衝突 解決辦法(Gradle): compile('org.apache.hadoop:hadoop-
springboot整合dubbo加上事務註解啟動報錯的問題
springboot整合dubbo加上事務註解啟動報錯的問題 如果使用以下方式 在其實現類中加入了事務註解 @Reference(version = "1.0.0", timeout = 30000) private ShopService shopService;
轉:springboot專案啟動報錯Failed to configure a DataSource: 'url' attribute is not specified and no embedde
*************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute
SpringBoot 專案啟動報錯 Caused by: java.lang.NoSuchMethodError: freemarker.template.Configuration.
SpringBoot 專案啟動報錯: 第一次啟動報錯: Caused by: java.lang.NoSuchMethodError: freemarker.template.Configuration.<init>(Lfreemarker/template/Vers
Springboot專案啟動報錯,提示Cannot determine embedded database driver class for database type NONE
我在springboot專案裡面引入了資料庫的配置: <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId&g
解決新建springboot專案啟動報錯問題
Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled. 參考了網上很多方
轉:springboot專案啟動報錯Failed to configure a DataSource: 'url' attribute is not specified and no embedde
*************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url'
springboot專案啟動報錯Failed to configure a DataSource: 'url' attribute is not specified and no embedded..
*************************** APPLICATION FAILED TO START *************************** Description:
springboot 專案啟動報錯 url' attribute is not specified and no embedded datasource could be configured
報錯資訊: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. [2m2018
springboot---沒有配置數據庫啟動報錯
禁用 註解 eas embed 配置 啟動報錯 path ngs may If you want an embedded database please put a supported one on the classpath. If you have database s
web專案啟動報錯:java.lang.IllegalStateException
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack tra
1.vue專案之前後端分離(vue前端專案啟動報錯出現問題的解決)
1.首先安裝node.js環境,安裝完成之後,可在控制面板中,進行驗證,如下圖所示: 因為我自己已經裝了,所以就不需要去擔心這個問題了: "D:\IDEA_JAVA\IntelliJ IDEA 2018.2.4\bin\runnerw.exe" D:\node\node.exe D:\
springboot 整合 druid監控, 批量操作報錯問題
springboot 整合 druid監控, 批量操作報錯問題 如下 WallFilter wallFilter; @Bean(name = "wallConfig") WallConfig wallFilterConfig(){ Wall
Spring Boot專案啟動報錯com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connec
報錯內容: com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect 或者com.netflix.discovery.s
記一次專案啟動報錯
22:31:57,703 ERROR com.acce.auth.exception.CommonExceptionHandler : 59 - Handler dispatch failed; nested exception is java.lang.ExceptionI
Spring專案啟動報錯org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find classs分析
報錯大致資訊:org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [XXXXX] for bean with name 'XXX' defined in class
maven專案啟動報錯:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2
相信很多人啟動maven專案都遇到過這種型別的錯。me too! 原因1:jdk版本跟maven版本不一致導致的。舉個例子,jdk1.6是不支援maven 2.0.2的,jdk1.7才行。 解決方案:這個得自己查詢,jdk 與 maven 版本的對應,再去java b
升級node版本後VUE專案啟動報錯
檢視node版本: node -v 原來的node版本是8.11.3 升級後的node版本是10.13.0 啟動VUE專案 npm run dev 報錯: fs.js:129 throw new ERR_INVALID_CALLBACK(); ^ Typ
dubbo專案啟動報錯,無法載入org.apache.zookeeper.server.ZooTrace
INFO: Server startup in 3425 ms 七月 11, 2017 3:06:04 下午 org.apache.catalina.loader.WebappClassLoader
安裝vue專案啟動報錯Cannot find module
Cannot find module 這個是以為我們安裝的專案缺少依賴: npm install 是安裝專案所需要的依賴,簡單理解就是安裝一些必要的外掛,需要等一段時間; 當然我們也可以用國內的淘寶映