You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Naveen Gangam (Jira)" <ji...@apache.org> on 2019/08/23 18:53:00 UTC

[jira] [Created] (YARN-9777) hadoop-yarn-server-common pom.xml has runtime dependency on mssql-jdbc

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: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org