Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HIVE Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

Tags:

hive

I am getting the below error on creating a hive database

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. com/facebook/fb303/FacebookService$Iface

Hadoop version:**hadoop-1.2.1**

HIVE Version: **hive-0.12.0**

Hadoop path:/home/hadoop_test/data/hadoop-1.2.1
hive path :/home/hadoop_test/data/hive-0.12.0

I have copied hive*.jar ,jline-.jar,antlr-runtime.jar from hive-0.12.0/lib to hadoop-1.2./lib

like image 886
user3579986 Avatar asked Apr 28 '14 05:04

user3579986


3 Answers

set hive.msck.path.validation=ignore;
MSCK REPAIR TABLE table_name;

Make sure the location is specified correctly

like image 53
loneStar Avatar answered Nov 08 '22 05:11

loneStar


In the following way, I solved the problem.

set hive.msck.repair.batch.size=1;
set hive.msck.path.validation=ignore;

If you can not set the value, and get the error.Error: Error while processing statement: Cannot modify hive.msck.path.validation at runtime. It is not in list of params that are allowed to be modified at runtime (state=42000,code=1)

add content in hive-site:

key:
hive.security.authorization.sqlstd.confwhitelist.append
value:
hive\.msck\.path\.validation|hive\.msck\.repair\.batch\.size

enter image description here

like image 27
QiuYi Avatar answered Nov 08 '22 06:11

QiuYi


Set hive.metastore.schema.verification property in hive-site.xml to true, by default it is false.

For further details check this link.

like image 2
Shailvi Avatar answered Nov 08 '22 06:11

Shailvi