Hive of common errors

1.Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask. org.apache.hadoop.hive.ql.metadata.HiveException: Unable to move source file:

Here Insert Picture Description

Solution:
Quit hive, close namenode and datanode, delete namenode tmp directory, then restart

2. Multi-table query has aggregate functions to perform mapreduce error:

FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask MapReduce Jobs Launched:
Here Insert Picture Description
待解决:
hive> set hive.exec.mode.local.auto=true;

3. Start hive, the second time the same select statement to be wrong.
FAILED: Hive Internal Error: java.lang.IllegalArgumentException ( The value of property yarn.resourcemanager.zk-address must not be null) java.lang.IllegalArgumentException: The value of property yarn.resourcemanager.zk-address must not be null

Here Insert Picture Description
Solution:
The yarn.resourcemanager.zk-address yarn-site.xml was changed hadoop.zk.address
and restart hadoop.

4.cannot recognize input near 'date' ' string' ',' in column specification
Here Insert Picture Description
to solve:
DATE is a reserved keyword, when the field names with the same name as a keyword. To add backquote
Here Insert Picture Description
5.Error: Could not open client transport with JDBC Uri: jdbc: hive2: //192.168.1.101: 10000: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc. RemoteException (org.apache.hadoop.security.authorize.AuthorizationException): User: leon is not allowed to impersonate leon (state = 08S01, code = 0)

Here Insert Picture Description
Solution:
Modify core-site.xml file and add the following:

<property>
    <name>hadoop.proxyuser.leon.hosts</name>
    <value>*</value>
</property>
<property>
    <name>hadoop.proxyuser.leon.groups</name>
    <value>*</value>
</property>

Note: hadoop.proxyuser.leon.hosts and hadoop.proxyuser.leon.groups in leon is my username, you have to change your user name

Here Insert Picture Description

Published 18 original articles · won praise 2 · Views 379

Guess you like

Origin blog.csdn.net/CH_Axiaobai/article/details/103586947