Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
773 views
in Technique[技术] by (71.8m points)

hiveql - Hive - No enum constant org.apache.parquet.schema.OriginalType.s (state=,code=0)

I have a table in hive. Which while creating I used the following partitions, format etc.

PARTITIONED BY (
`abc_dt` string,
`xyz_last` string)
ROW FORMAT SERDE
'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
STORED AS INPUTFORMAT
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'
LOCATION
'hdfs://cluster/tmp/oip/logprint_poc_new'
 TBLPROPERTIES (
'bucketing_version'='2',
'discover.partitions'='true',
'transient_lastDdlTime'='1609830728')

When I am running the query: select * from oip_poc I am getting the following exception at the end. Although the query is returning the schema of the table correctly in the beginning of the result. But at the end of the result I see the following exception.

INFO  : Completed compiling command(queryId=hive_20210122112612_d5edb9e8-d954-41e9-ae1e- c1deca9e8e47); Time taken: 4.192 seconds
INFO  : Executing command(queryId=hive_20210122112612_d5edb9e8-d954-41e9-ae1e-c1deca9e8e47): select * from oip_poc
INFO  : Completed executing command(queryId=hive_20210122112612_d5edb9e8-d954-41e9-ae1e-c1deca9e8e47); Time taken: 0.041 seconds
INFO  : OK
Error: java.io.IOException: java.lang.IllegalArgumentException: No enum constant org.apache.parquet.schema.OriginalType.s (state=,code=0)

I am not able to understand why I am getting this. Is this because while creating the table I made a mistake or something else. I am new to hive. Any help is appreciated.

Following is the screenshot of the exception:

enter image description here

question from:https://stackoverflow.com/questions/65844787/hive-no-enum-constant-org-apache-parquet-schema-originaltype-s-state-code-0

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...