hadoop - 配置单元插入查询失败,错误返回码-101

标签 hadoop hive mapreduce hiveql apache-tez

我试图运行一个简单的插入语句,如下所示:

insert into table `bwc_test` partition(call_date)
select * from
`bwc_master`; 

然后它失败并显示以下错误:

INFO:从/apps/hive/warehouse/dtc.db/bwc_test/.hive-staging_hive_2018-11-13_19-10-37_084_8697431764330812894-1/-ext-10000将数据加载到表dtc.bwc_test分区(call_date = null)
Error: Error while processing statement: FAILED: Execution Error, return code -101 from org.apache.hadoop.hive.ql.exec.MoveTask. HIVE_LOAD_DYNAMIC_PARTITIONS_THREAD_COUNT (state=08S01,code=-101)

bwc_master的表定义:
CREATE TABLE `bwc_master`(                                   
unique_id bigint,                                           
customer_id string,                                         
direction string,                                           
call_date_time timestamp,                                   
duration int,                                               
billed_duration int,                                        
retail_rate decimal(9,7),                                   
retail_cost decimal(19,7),                                  
billed_tier smallint,                                       
call_type tinyint,                                          
record_status tinyint,                                      
aggregate_id bigint,                                        
originating_ipaddress string,                               
originating_number string,                                  
destination_number string,                                  
lrn string,                                                 
ocn string,                                                 
destination_rate_center string,                             
destination_lata int,                                       
billed_prefix string,                                       
rate_id string,                                             
wholesale_rate decimal(9,7),                                
wholesale_cost decimal(19,7),                               
cnam_dipped boolean,                                        
billed_number_type tinyint,                                 
source_lata int,                                            
source_ocn string,                                          
location_id string,                                         
sippeer_id int,                                             
rate_attempts tinyint,                                      
source_state string,                                        
source_rc string,                                           
destination_country string,                                 
destination_state string,                                   
destination_ip string,                                      
carrier_id string,                                          
rated_date_time timestamp,                                  
partition_id smallint,                                      
encryption_rate decimal(9,7),                               
encryption_cost decimal(19,7),                              
trans_coding_rate decimal(9,7),                             
trans_coding_cost decimal(19,7),                            
file_name string,                                           
call_id string,                                             
from_tag string,                                            
to_tag string,                                              
unique_record_id string)                                    

PARTITIONED BY (                                                
`call_date` date)  

CLUSTERED BY (                                                  
customer_id)                                                  
INTO 10 BUCKETS 

ROW FORMAT SERDE                                                
 'org.apache.hadoop.hive.ql.io.orc.OrcSerde'  

STORED AS INPUTFORMAT                                           
'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'

OUTPUTFORMAT                                                    
'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'    

LOCATION                                                        
'hdfs://*****/apps/hive/warehouse/dtc.db/bwc_master'  

有人可以帮我调试吗?我没有在日志中找到任何东西。

最佳答案

您错过了bwc_test之前的“表格”

insert into  table `bwc_test` partition(call_date)
select * from
`bwc_master`; 

关于hadoop - 配置单元插入查询失败,错误返回码-101,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53288056/

相关文章:

hadoop - 如何将args传递给mapreduce程序

hadoop - Hadoop开发环境的数据集?

java - windows下运行hadoop作业

hadoop - HDFS 磁盘已满

hadoop - HDFS 与 HIVE 分区

java - Hadoop:如何为每个值提供一个全局唯一 ID 号作为 Mapper 中的键?

hadoop - 使用静态池cgroup限制Hue资源

hadoop - 如何在集群之间迁移数据?

sql - hive 查询中 “”缺少EOF “”

java - Hadoop 2( yarn )。获取 java.io.IOException : wrong key class. 异常