HIVE错误 - 处理语句时出错:FAILED:执行错误,从org.apache.hadoop.hive.ql.exec.mr.MapRedTask返回代码2

时间:2016-03-17 14:45:47

标签: hive hql hiveql

当我尝试通过HUE执行以下语句时,我收到错误消息:

查询 - 从TABLE_NAME中选择*,其中STATUS ='ENABLE'限制20

错误::处理语句时出错:FAILED:执行错误,从org.apache.hadoop.hive.ql.exec.mr.MapRedTask返回代码2

但是当我在没有WHERE子句的情况下执行错误时它工作正常。

LOGS ::

16/03/17 07:24:57 INFO log.PerfLogger: <PERFLOG method=compile from=org.apache.hadoop.hive.ql.Driver>
16/03/17 07:24:57 INFO log.PerfLogger: <PERFLOG method=parse from=org.apache.hadoop.hive.ql.Driver>
16/03/17 07:24:57 INFO parse.ParseDriver: Parsing command: select * from TABLE_NAME   where item_status_cd = 'ENABLE' limit 20
16/03/17 07:24:57 INFO parse.ParseDriver: Parse Completed
16/03/17 07:24:57 INFO log.PerfLogger: </PERFLOG method=parse start=1458224697812 end=1458224697813 duration=1 from=org.apache.hadoop.hive.ql.Driver>
16/03/17 07:24:57 INFO log.PerfLogger: <PERFLOG method=semanticAnalyze from=org.apache.hadoop.hive.ql.Driver>
16/03/17 07:24:57 INFO parse.SemanticAnalyzer: Starting Semantic Analysis
16/03/17 07:24:57 INFO parse.SemanticAnalyzer: Completed phase 1 of Semantic Analysis
16/03/17 07:24:57 INFO parse.SemanticAnalyzer: Get metadata for source tables
16/03/17 07:24:57 INFO metastore.HiveMetaStore: 6: get_table : db=ktn_soe_nf tbl=TABLE_NAME
16/03/17 07:24:57 INFO HiveMetaStore.audit: ugi=hdpromkt    ip=unknown-ip-addr  cmd=get_table : db=ktn_soe_nf tbl=TABLE_NAME    
16/03/17 07:24:57 INFO parse.SemanticAnalyzer: Get metadata for subqueries
16/03/17 07:24:57 INFO parse.SemanticAnalyzer: Get metadata for destination tables
16/03/17 07:24:57 INFO ql.Context: New scratch dir is maprfs:/app/HiveTemp/mapr/hive_2016-03-17_07-24-57_812_8772722600545874039-83
16/03/17 07:24:57 INFO parse.SemanticAnalyzer: Completed getting MetaData in Semantic Analysis
16/03/17 07:24:57 INFO parse.SemanticAnalyzer: Set stats collection dir : maprfs:/app/HiveTemp/mapr/hive_2016-03-17_07-24-57_812_8772722600545874039-83/-ext-10002
16/03/17 07:24:57 INFO ppd.OpProcFactory: Processing for FS(15678)
16/03/17 07:24:57 INFO ppd.OpProcFactory: Processing for LIM(15677)
16/03/17 07:24:57 INFO ppd.OpProcFactory: Processing for SEL(15676)
16/03/17 07:24:57 INFO ppd.OpProcFactory: Processing for FIL(15675)
16/03/17 07:24:57 INFO ppd.OpProcFactory: Pushdown Predicates of FIL For Alias : TABLE_NAME
16/03/17 07:24:57 INFO ppd.OpProcFactory:   (item_status_cd = 'ENABLE')
16/03/17 07:24:57 INFO ppd.OpProcFactory: Processing for TS(15674)
16/03/17 07:24:57 INFO ppd.OpProcFactory: Pushdown Predicates of TS For Alias : TABLE_NAME
16/03/17 07:24:57 INFO ppd.OpProcFactory:   (item_status_cd = 'ENABLE')
16/03/17 07:24:57 INFO log.PerfLogger: <PERFLOG method=partition-retrieving from=org.apache.hadoop.hive.ql.optimizer.ppr.PartitionPruner>
16/03/17 07:24:57 INFO log.PerfLogger: </PERFLOG method=partition-retrieving start=1458224697867 end=1458224697868 duration=1 from=org.apache.hadoop.hive.ql.optimizer.ppr.PartitionPruner>
16/03/17 07:24:57 INFO optimizer.SortedDynPartitionOptimizer: Sorted dynamic partitioning optimization kicked in..
16/03/17 07:24:57 INFO physical.MetadataOnlyOptimizer: Looking for table scans where optimization is applicable
16/03/17 07:24:57 INFO physical.MetadataOnlyOptimizer: Found 0 metadata only table scans
16/03/17 07:24:57 INFO parse.SemanticAnalyzer: Completed plan generation
16/03/17 07:24:57 INFO ql.Driver: Semantic Analysis Completed
16/03/17 07:24:57 INFO log.PerfLogger: </PERFLOG method=semanticAnalyze start=1458224697813 end=1458224697869 duration=56 from=org.apache.hadoop.hive.ql.Driver>
16/03/17 07:24:57 INFO exec.ListSinkOperator: Initializing Self 15680 OP
16/03/17 07:24:57 INFO exec.ListSinkOperator: Operator 15680 OP initialized
16/03/17 07:24:57 INFO exec.ListSinkOperator: Initialization Done 15680 OP
16/03/17 07:24:57 INFO ql.Driver: Returning Hive schema: Schema(fieldSchemas:[FieldSchema(name:TABLE_NAME.bk_product_id, type:string, comment:null), FieldSchema(name:TABLE_NAME.product_description, type:string, comment:null), FieldSchema(name:TABLE_NAME.item_status_cd, type:string, comment:null), FieldSchema(name:TABLE_NAME.product_pricing_category_cd, type:string, comment:null), FieldSchema(name:TABLE_NAME.ru_bk_product_subgroup_id, type:string, comment:null), FieldSchema(name:TABLE_NAME.bk_product_type_id, type:string, comment:null), FieldSchema(name:TABLE_NAME.sk_inventory_item_id_int, type:int, comment:null), FieldSchema(name:TABLE_NAME.ru_bk_product_family_id, type:string, comment:null), FieldSchema(name:TABLE_NAME.technology_group_code, type:string, comment:null), FieldSchema(name:TABLE_NAME.technology_group_description, type:string, comment:null), FieldSchema(name:TABLE_NAME.dv_item_type_cd, type:string, comment:null), FieldSchema(name:TABLE_NAME.product_family_owner_cd, type:string, comment:null), FieldSchema(name:TABLE_NAME.prdct_configuration_dscrptr_cd, type:string, comment:null), FieldSchema(name:TABLE_NAME.dv_scdc_serialized_flg, type:string, comment:null), FieldSchema(name:TABLE_NAME.product_group_s_flg, type:string, comment:null), FieldSchema(name:TABLE_NAME.service_fee_value_usd_amt, type:int, comment:null), FieldSchema(name:TABLE_NAME.line_item_mapped_to_service, type:string, comment:null), FieldSchema(name:TABLE_NAME.list_price_amount, type:int, comment:null), FieldSchema(name:TABLE_NAME.end_of_new_svc_attachment_dt, type:string, comment:null), FieldSchema(name:TABLE_NAME.end_of_sale_dt, type:string, comment:null), FieldSchema(name:TABLE_NAME.end_of_svc_contract_rnwl_dt, type:string, comment:null), FieldSchema(name:TABLE_NAME.last_support_dt, type:string, comment:null), FieldSchema(name:TABLE_NAME.fiscal_year_number_int, type:int, comment:null), FieldSchema(name:TABLE_NAME.fiscal_month_number_int, type:int, comment:null), FieldSchema(name:TABLE_NAME.fiscal_month_name, type:string, comment:null), FieldSchema(name:TABLE_NAME.fiscal_quarter_name, type:string, comment:null), FieldSchema(name:TABLE_NAME.llw_flag, type:string, comment:null), FieldSchema(name:TABLE_NAME.bk_business_entity_name, type:string, comment:null), FieldSchema(name:TABLE_NAME.bk_business_unit_id, type:string, comment:null), FieldSchema(name:TABLE_NAME.product_id_expired, type:string, comment:null), FieldSchema(name:TABLE_NAME.top_level_pid, type:string, comment:null), FieldSchema(name:TABLE_NAME.product_relationship, type:string, comment:null), FieldSchema(name:TABLE_NAME.hw_or_sw_contract_indicator, type:string, comment:null), FieldSchema(name:TABLE_NAME.item_type_code, type:string, comment:null), FieldSchema(name:TABLE_NAME.end_of_sw_maintenance_dt, type:string, comment:null), FieldSchema(name:TABLE_NAME.end_of_sw_license_avl_dt, type:string, comment:null), FieldSchema(name:TABLE_NAME.category_pct, type:string, comment:null), FieldSchema(name:TABLE_NAME.svc_coverage_eligible_flg, type:string, comment:null), FieldSchema(name:TABLE_NAME.ru_bk_acqstn_cmpny_name, type:string, comment:null), FieldSchema(name:TABLE_NAME.ru_subscription_type_cd, type:string, comment:null), FieldSchema(name:TABLE_NAME.prdt_vndr_vrtl_sub_division_nm, type:string, comment:null), FieldSchema(name:TABLE_NAME.serviceable_product_flg, type:string, comment:null), FieldSchema(name:TABLE_NAME.product_family_erp_subgroupid, type:string, comment:null), FieldSchema(name:TABLE_NAME.software_stack_cd, type:string, comment:null), FieldSchema(name:TABLE_NAME.ru_software_usage_type_cd, type:string, comment:null), FieldSchema(name:TABLE_NAME.monetization_type_cd, type:string, comment:null), FieldSchema(name:TABLE_NAME.product_category_cd, type:string, comment:null), FieldSchema(name:TABLE_NAME.prdt_setup_classification_cd, type:string, comment:null), FieldSchema(name:TABLE_NAME.end_of_routine_fail_anlysys_dt, type:string, comment:null), FieldSchema(name:TABLE_NAME.eol_external_announce_dt, type:string, comment:null), FieldSchema(name:TABLE_NAME.eol_software_available_dt, type:string, comment:null), FieldSchema(name:TABLE_NAME.eol_signature_release_dt, type:string, comment:null), FieldSchema(name:TABLE_NAME.mapped_to_service_cd, type:string, comment:null)], properties:null)
16/03/17 07:24:57 INFO log.PerfLogger: </PERFLOG method=compile start=1458224697812 end=1458224697870 duration=58 from=org.apache.hadoop.hive.ql.Driver>

0 个答案:

没有答案