Naveen Gangam created YARN-9777:
-----------------------------------

             Summary: hadoop-yarn-server-common pom.xml has runtime dependency 
on mssql-jdbc
                 Key: YARN-9777
                 URL: https://issues.apache.org/jira/browse/YARN-9777
             Project: Hadoop YARN
          Issue Type: Bug
          Components: yarn
    Affects Versions: 3.1.0
            Reporter: Naveen Gangam


I dont know the history behind this or what these classes are used for in YARN 
but having a runtime dependency on vendor specific JDBC driver seems wrong.
    <dependency>
      <groupId>com.microsoft.sqlserver</groupId>
      <artifactId>mssql-jdbc</artifactId>
      <scope>runtime</scope>
       <exclusions>
        <exclusion>
          <groupId>com.microsoft.azure</groupId>
          <artifactId>azure-keyvault</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

This causes uber jars in dependent modules like hive-jdbc-standalone.jar to 
include all "runtime" scoped jars to be automatically bundled. 

Instead the scope of the above dependency to be "provided" rather than 
"runtime".

Also is this scoped correctly? or should this be a "runtime" dependency instead 
of the default "compile"
    <dependency>
      <groupId>com.zaxxer</groupId>
      <artifactId>HikariCP-java7</artifactId>
    </dependency>


Thanks



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to