tiki created HIVE-24708:
---------------------------

             Summary: org.apache.thrift.transport.TTransportException: 
null;Error while processing statement: FAILED: Execution Error, return code 1 
from org.apache.hadoop.hive.ql.exec.StatsTask
                 Key: HIVE-24708
                 URL: https://issues.apache.org/jira/browse/HIVE-24708
             Project: Hive
          Issue Type: Bug
          Components: Metastore
    Affects Versions: 3.1.2
         Environment: centos7

hadoop:3.1.4

hbase:2.2.6

mysql:5.7.32

hive:3.1.2

 
            Reporter: tiki
             Fix For: 0.13.0
         Attachments: hive错误日志.txt

h2. 1.原配置

在hive-site.xml中配置了:

 
{code:java}
  <property>
    <name>hive.metastore.uris</name>
    <value>thrift://hadoop-server-004:9083,hadoop-server-005:9083</value>
  </property>
{code}
之后,在hive中插入数据,会打印一条Error日志,但数据成功插入,查看hive的hive.log日志文件,发现如下错误:
{code:java}
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
......
{code}
具体日志错误见 附件
h2. 2.修改配置

将配置修改为:

 
{code:java}
  <property>
    <name>hive.metastore.uris</name>
    <value/>
  </property>
{code}
之后,插入数据正常



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to