Describe table shows “from deserializer” for column comments in Hue Hive Avro format

为君一笑 提交于 2019-12-11 05:07:02

问题


We have observed that when we store the data in Avro format, it converts byte stream to binary, due to which all the comments gets converted to “from deserializer”.

We found a jira bug for this issue as well, few confirms, this issue has been addressed with 0.13 version. We are using hive 1.1 (Cloudera). But we are still facing the issue.

Jira :- https://issues.apache.org/jira/browse/HIVE-6681

https://www.bountysource.com/issues/1320154-describe-on-a-table-returns-from-deserializer-for-column-comments-instead-of-values-supplied-in-create-table

But when we change the input and output format to normal text (specified explicitly), column description can be retained, however, it seems it is losing on its actual avro functionality in such a case. So the below code cannot be used.

-- Below is input and output format using text

 ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' 
 STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' 
 OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'

来源:https://stackoverflow.com/questions/36593395/describe-table-shows-from-deserializer-for-column-comments-in-hue-hive-avro-fo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!