hive jar的LOC头(错误签名)无效

时间:2018-03-29 09:12:22

标签: java maven hive hdfs

我正在尝试使用JDBC连接连接到hive。 这是我的依赖

<dependencies>
    <dependency>
        <groupId>org.apache.hive</groupId>
        <artifactId>hive-jdbc</artifactId>
        <version>2.1.0</version>
    </dependency>
    <dependency>
        <groupId>org.apache.thrift</groupId>
        <artifactId>libthrift</artifactId>
        <version>0.9.3</version>
        <type>pom</type>
    </dependency>

    <dependency>
        <groupId>org.apache.thrift</groupId>
        <artifactId>libfb303</artifactId>
        <version>0.9.3</version>
    </dependency>
    <dependency>
        <groupId>org.apache.hadoop</groupId>
        <artifactId>hadoop-core</artifactId>
        <version>1.2.1</version>
    </dependency>

    <dependency>
        <groupId>org.apache.hadoop</groupId>
        <artifactId>hadoop-common</artifactId>
        <version>2.9.0</version>
    </dependency>
    <dependency>
        <groupId>org.apache.hive</groupId>
        <artifactId>hive-exec</artifactId>
        <version>2.1.0</version>
    </dependency>
    <dependency>
        <groupId>org.apache.hadoop</groupId>
        <artifactId>hadoop-hdfs</artifactId>
        <version>2.9.0</version>
    </dependency>
</dependencies>

当我mvn package时,我收到以下异常。从Eclipse导出jar并运行jar

时出现相同的异常
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project connector: Compilation failure: Compilation failure:
[ERROR] error: error reading /home/krishnaprasad/.m2/repository/org/apache/hive/hive-llap-server/2.1.0/hive-llap-server-2.1.0.jar; invalid LOC header (bad signature)
[ERROR] error: error reading /home/krishnaprasad/.m2/repository/org/apache/hive/hive-serde/2.1.0/hive-serde-2.1.0.jar; invalid LOC header (bad signature)
[ERROR] error: error reading /home/krishnaprasad/.m2/repository/org/apache/hive/hive-metastore/2.1.0/hive-metastore-2.1.0.jar; invalid LOC header (bad signature)
[ERROR] error: error reading /home/krishnaprasad/.m2/repository/org/datanucleus/datanucleus-api-jdo/4.2.1/datanucleus-api-jdo-4.2.1.jar; invalid LOC header (bad signature)
[ERROR] error: error reading /home/krishnaprasad/.m2/repository/org/datanucleus/datanucleus-rdbms/4.1.7/datanucleus-rdbms-4.1.7.jar; invalid LOC header (bad signature)
[ERROR] error: error reading /home/krishnaprasad/.m2/repository/org/apache/hive/hive-service-rpc/2.1.0/hive-service-rpc-2.1.0.jar; invalid LOC header (bad signature)
[ERROR] error: error reading /home/krishnaprasad/.m2/repository/org/datanucleus/datanucleus-core/4.1.6/datanucleus-core-4.1.6.jar; invalid LOC header (bad signature)
[ERROR] -> [Help 1]

有什么建议吗?

0 个答案:

没有答案