jdbc 连接hive所需要的jar(maven项目)

来源:互联网 发布:php specialchar 编辑:程序博客网 时间:2024/06/11 10:05

看到很多都是自己下包,但是版本什么的都是问题。。。maven项目很好的解决这个问题


 <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1<ersion>
      <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.hive</groupId>
        <artifactId>hive-jdbc</artifactId>
        <version>1.0.0<ersion>
    </dependency>
    <dependency>
        <groupId>org.apache.hadoop</groupId>
        <artifactId>hadoop-common</artifactId>
        <version>2.5.2<ersion>
    </dependency>
    <dependency>
        <groupId>jdk.tools</groupId>
        <artifactId>jdk.tools</artifactId>
        <version>1.7<ersion>
        <scope>system</scope>
        <systemPath>${JAVA_HOME}b/tools.jar</systemPath>
    </dependency>


1 0