메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


build.sbt파일에 아래의 구문을 넣는다(sbt-assembly를 사용하는 경우만 가능함)

assemblyExcludedJars in assembly := { 
  val cp = (fullClasspath in assembly).value
  cp filter {_.data.getName == "slf4j-api-1.7.20.jar"}
}



*참고 : https://github.com/sbt/sbt-assembly#merge-strategy

-------------------------오류내용 -------------------------

C:devworkspacesda-commonbuildlibssda-common-2.0.0-SNAPSHOT.jar:org/slf4j/helpers/SubstituteLoggerFactory.class

C:Usersgooper.ivy2cacheorg.slf4jslf4j-apijarsslf4j-api-1.7.20.jar:org/slf4j/helpers/SubstituteLoggerFactory.class

        at sbtassembly.Assembly$.applyStrategies(Assembly.scala:140)

        at sbtassembly.Assembly$.x$1$lzycompute$1(Assembly.scala:25)

        at sbtassembly.Assembly$.x$1$1(Assembly.scala:23)

        at sbtassembly.Assembly$.stratMapping$lzycompute$1(Assembly.scala:23)

        at sbtassembly.Assembly$.stratMapping$1(Assembly.scala:23)

        at sbtassembly.Assembly$.inputs$lzycompute$1(Assembly.scala:67)

        at sbtassembly.Assembly$.inputs$1(Assembly.scala:57)

        at sbtassembly.Assembly$.apply(Assembly.scala:83)

        at sbtassembly.Assembly$$anonfun$assemblyTask$1.apply(Assembly.scala:240)

        at sbtassembly.Assembly$$anonfun$assemblyTask$1.apply(Assembly.scala:237)

        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)

        at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)

        at sbt.std.Transform$$anon$4.work(System.scala:63)

        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)

        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)

        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)

        at sbt.Execute.work(Execute.scala:237)

        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)

        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)

        at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)

        at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:745)

[error] (*:assembly) deduplicate: different file contents found in the following:

[error] C:devworkspacesda-commonbuildlibssda-common-2.0.0-SNAPSHOT.jar:org/slf4j/LoggerFactory.class

[error] C:Usersgooper.ivy2cacheorg.slf4jslf4j-apijarsslf4j-api-1.7.20.jar:org/slf4j/LoggerFactory.class

[error] deduplicate: different file contents found in the following:

[error] C:devworkspacesda-commonbuildlibssda-common-2.0.0-SNAPSHOT.jar:org/slf4j/helpers/BasicMDCAdapter.class

[error] C:Usersgooper.ivy2cacheorg.slf4jslf4j-apijarsslf4j-api-1.7.20.jar:org/slf4j/helpers/BasicMDCAdapter.class

[error] deduplicate: different file contents found in the following:

[error] C:devworkspacesda-commonbuildlibssda-common-2.0.0-SNAPSHOT.jar:org/slf4j/helpers/BasicMarker.class

[error] C:Usersgooper.ivy2cacheorg.slf4jslf4j-apijarsslf4j-api-1.7.20.jar:org/slf4j/helpers/BasicMarker.class

[error] deduplicate: different file contents found in the following:

[error] C:devworkspacesda-commonbuildlibssda-common-2.0.0-SNAPSHOT.jar:org/slf4j/helpers/SubstituteLogger.class

[error] C:Usersgooper.ivy2cacheorg.slf4jslf4j-apijarsslf4j-api-1.7.20.jar:org/slf4j/helpers/SubstituteLogger.class

[error] deduplicate: different file contents found in the following:

[error] C:devworkspacesda-commonbuildlibssda-common-2.0.0-SNAPSHOT.jar:org/slf4j/helpers/SubstituteLoggerFactory.class

[error] C:Usersgooper.ivy2cacheorg.slf4jslf4j-apijarsslf4j-api-1.7.20.jar:org/slf4j/helpers/SubstituteLoggerFactory.class

[error] Total time: 34 s, completed 2016. 8. 11 오후 1:51:31

번호 제목 날짜 조회 수
510 워킹 메모리에 대한 정보를 처리하는 클래스 파일 2016.07.21 3537
509 spark stream처리할때 두개의 client프로그램이 동일한 checkpoint로 접근할때 발생하는 오류 내용 2018.01.16 3537
508 Cloudera Manager 5.x설치시 embedded postgresql를 사용하는 경우의 관리정보 2018.04.13 3538
507 eclipse editor 설정방법 2022.02.01 3542
506 [Impala jdbc]CDP7.1.7환경에서 java프로그램을 이용하여 kerberized impala cluster에 접근하여 SQL을 수행하는 방법 2023.08.22 3545
505 프로세스를 확인해서 프로세스를 삭제하는 shell script예제(cryptonight) 2018.02.02 3547
504 DBCP Datasource(org.apache.commons.dbcp.BasicDataSource) 설정 및 속성 설명 2016.09.26 3551
503 kafkaWordCount.scala의 producer와 consumer 클래스를 이용하여 kafka를 이용한 word count 테스트 하기 2016.08.02 3561
502 spark notebook 0.7.0설치및 설정 2016.11.14 3575
501 CDH 5.14.2 설치중 agent설치에서 실패하는 경우 확인/조치 2018.05.22 3576
500 hive에서 insert overwrite directory.. 로 하면 default column구분자는 'SOH'혹은 't'가 됨 2014.05.20 3593
499 RDF4J의 rdf4j-server.war가 제공하는 RESTFul API를 이용하여 repository에 CRUD테스트 2017.08.30 3593
498 maven을 이용하여 Hello world 서비스 자동 생성시 HelloServiceImpl.java에서 사용하는 getMessage() 와 getName() 이 정의되지 않은 오류가 발생시 조치방법 2018.01.19 3599
497 이미지 관리 오픈소스 목록 2018.03.11 3602
496 git 초기화(Windows에서 Git Bash사용) 2016.11.17 3607
495 Embedded PostgreSql설정을 외부의 MariaDB로변경하기 [1] 2018.05.22 3608
494 jena jar파일실행시 org.apache.jena.tdb.TDB.init에서 java.lang.NullPointerException발생시 조치사항 2016.08.19 3611
493 update를 많이 하면 heap memory가 많이 소진되고 최종적으로 OOM가 발생하는데 이에 대한 설명 2017.04.10 3611
492 프로그래밍 언어별 딥러닝 라이브러리 정리 file 2016.10.05 3616
491 python3.5에서 numpy버젼에 따른 문제점을 조치하는 방법및 pymysql import할때 오류 발생시 조치사항 2017.09.28 3616
위로