java - Unable to run spark, phoenix/hbase with Spring Boot: Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path -
when try compile/build spring boot project spark/phoenix dependencies, says there's many slf4j's, , when try exclude package, throws above error.
how can them work together?
buildscript { ext { springbootversion = '1.5.6.release' } repositories { mavencentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springbootversion}") } } apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'org.springframework.boot' version = '0.0.1-snapshot' sourcecompatibility = 1.8 repositories { mavencentral() } //this doesn't work configurations { compile.exclude group:'ch.qos.logback' } dependencies { compile('org.springframework.boot:spring-boot-starter') /* excluding here didn't work */ compile('org.springframework.boot:spring-boot-starter-web') compile('org.apache.spark:spark-sql_2.10:1.5.2') compile('org.apache.spark:spark-core_2.10:1.5.2') compile('org.apache.phoenix:phoenix-spark:4.7.0-hbase-1.1') testcompile('org.springframework.boot:spring-boot-starter-test') }
Comments
Post a Comment