Antoine created PHOENIX-4823:
--------------------------------

             Summary: Issue with Maven Dependencies
                 Key: PHOENIX-4823
                 URL: https://issues.apache.org/jira/browse/PHOENIX-4823
             Project: Phoenix
          Issue Type: Bug
    Affects Versions: 5.0.0
            Reporter: Antoine
             Fix For: 5.0.0


There is a runtime error using phoenix 5.0.0-HBase-2.0 with java and maven. The 
exception is when the following method is called: 

DriverManager.getConnection("jdbc:phoenix:localhost");

 

The problem is from hadoop-auth which is included twice in 2 different versions 
in the dependency tree. The fix is to do the followingL

 

<dependencies>
 <dependency>
 <groupId>org.apache.phoenix</groupId>
 <artifactId>phoenix-core</artifactId>
 <version>5.0.0-HBase-2.0</version>
 <exclusions>
 <exclusion>
 <groupId>org.apache.hadoop</groupId>
 <artifactId>hadoop-auth</artifactId>
 </exclusion>
 </exclusions>
 </dependency>

 <dependency>
 <groupId>org.apache.hadoop</groupId>
 <artifactId>hadoop-auth</artifactId>
 <version>3.0.0</version>
 </dependency>
</dependencies>



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to