Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24708

org.apache.thrift.transport.TTransportException: null;Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.2
    • None
    • Metastore
    • None
    • centos7

      hadoop:3.1.4

      hbase:2.2.6

      mysql:5.7.32

      hive:3.1.2

       

    Description

      1.原配置

      在hive-site.xml中配置了:

       

        <property>
          <name>hive.metastore.uris</name>
          <value>thrift://hadoop-server-004:9083,hadoop-server-005:9083</value>
        </property>
      

      之后,在hive中插入数据,会打印一条Error日志,但数据成功插入,查看hive的hive.log日志文件,发现如下错误:

      org.apache.thrift.transport.TTransportException: null
      ......
      2021-01-27T20:00:17,086 ERROR [HiveServer2-Background-Pool: Thread-510] exec.StatsTask: Failed to run stats task org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.thrift.transport.TTransportException
      ......
      Caused by: org.apache.thrift.transport.TTransportException
      ......
      2021-01-27T20:00:17,089 ERROR [HiveServer2-Background-Pool: Thread-510] operation.Operation: Error running hive query: org.apache.hive.service.cli.HiveSQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask
      ......
      

      具体日志错误见 附件

      2.修改配置

      将配置修改为:

       

        <property>
          <name>hive.metastore.uris</name>
          <value/>
        </property>
      

      之后,插入数据正常

      Attachments

        1. hive错误日志.txt
          17 kB
          tiki

        Activity

          People

            Unassigned Unassigned
            tiki tiki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: