Hbase与Hadoop结合出现的jar包冲突问题

在使用hadoop和hbase结合使用的时候,由于jar包冲突,出现以下错误:




Initializing Spring root WebApplicationContext
2016-03-18 16:30:06,382 INFO  [localhost-startStop-1] context.ContextLoader (ContextLoader.java:initWebApplicationContext(273)) - Root WebApplicationContext: initialization started
2016-03-18 16:30:06,503 INFO  [localhost-startStop-1] support.XmlWebApplicationContext (AbstractApplicationContext.java:prepareRefresh(495)) - Refreshing Root WebApplicationContext: startup date [Fri Mar 18 16:30:06 GMT+08:00 2016]; root of context hierarchy
2016-03-18 16:30:06,577 INFO  [localhost-startStop-1] xml.XmlBeanDefinitionReader (XmlBeanDefinitionReader.java:loadBeanDefinitions(315)) - Loading XML bean definitions from class path resource [config/applicationContext.xml]
2016-03-18 16:30:06,713 INFO  [localhost-startStop-1] annotation.ClassPathBeanDefinitionScanner (ClassPathScanningCandidateComponentProvider.java:registerDefaultFilters(202)) - JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning
2016-03-18 16:30:06,715 INFO  [localhost-startStop-1] annotation.ClassPathBeanDefinitionScanner (ClassPathScanningCandidateComponentProvider.java:registerDefaultFilters(210)) - JSR-330 'javax.inject.Named' annotation found and supported for component scanning
2016-03-18 16:30:07,330 INFO  [localhost-startStop-1] config.PropertyPlaceholderConfigurer (PropertiesLoaderSupport.java:loadProperties(177)) - Loading properties file from class path resource [config/jdbc.properties]
2016-03-18 16:30:07,341 INFO  [localhost-startStop-1] annotation.AutowiredAnnotationBeanPostProcessor (AutowiredAnnotationBeanPostProcessor.java:(139)) - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2016-03-18 16:30:07,384 INFO  [localhost-startStop-1] support.DefaultListableBeanFactory (DefaultListableBeanFactory.java:preInstantiateSingletons(557)) - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2c467f96: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,chatService,foodProductInfoService,foodService,loginService,mainPagePromotionService,mallService,menuService,deleteFileService,downloadFileService,uploadFileService,registService,uploadMallService,uploadProductService,uploadSellerInfoService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,dataSource,transactionManager,sqlSessionFactory,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.mybatis.spring.mapper.MapperScannerConfigurer#0,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0,chatMapper,foodMapper,foodProductInfoMapper,loginMapper,mainPagePromotionMapper,mallMapper,menuMapper,operatorHadoopFileMapper,registMapper,uploadMallMapper,uploadProductMapper,uploadSellerInfoMapper]; root of factory hierarchy
2016-03-18 16:30:29,217 INFO  [localhost-startStop-1] context.ContextLoader (ContextLoader.java:initWebApplicationContext(302)) - Root WebApplicationContext: initialization completed in 22833 ms
三月 18, 2016 4:30:29 下午 com.sun.faces.config.ConfigureListener contextInitialized



解决的办法是删除以下jar包:

hadoop-mapreduce-client-jobclient-2.2.0-tests.jar

你可能感兴趣的:(分布式系统)