[英]FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException while inserting data into Hive partitioned table
I have an employee data with 3 departments A,B,C . 我有3个部门A,B,C的员工数据。 I am trying to create partioned table on departments .
我正在尝试在部门上创建分区表。 I created the table using below command.
我使用以下命令创建了表。
create external table Parti_Trail (EmployeeID Int,FirstName String,Designation String,Salary Int) PARTITIONED BY (Department String) row format delimited fields terminated by "," location '/user/sree/HiveTrail';
创建外部表Parti_Trail(EmployeeID Int,FirstName String,Designation String,Salary Int)PARTITIONED BY(部门字符串)行格式,以“,”位置“ / user / sree / HiveTrail”终止;
But this did nt load my table with data in location '/user/sree/HiveTrail' 但这并没有在表'/ user / sree / HiveTrail'中加载数据到我的表
So I tried to load my table 所以我试图加载我的桌子
LOAD DATA INPATH '/user/aibladmin/HiveTrail' OVERWRITE INTO TABLE Parti_SCDTrail PARTITION(department);
But showing 但是显示
FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: department not found in table's partition spec: {department=null}
SET hive.exec.dynamic.partition.mode = nonstrict;
SET hive.exec.dynamic.partition.mode = nonstrict;
会发生什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.