Hive 中的 Unicode 字符
我尝试在 hive 中按 unicode 文本与 unicode 字符进行分组,但减速器惨败。 Hive 面临运行时异常。 hive 是否支持 unicode 字符?
引起原因:org.apache.hadoop.hive.ql.metadata.HiveException:处理行时出现 Hive 运行时错误 (tag=0) {"key":{"reducesinkkey0":"h�ngekommode ","reducesinkkey1":"1 "},"value":{"_col0":"h�ngekommode ","_col1":"1 "},"alias":0}
I tried to group by unicode text with unicode characters in hive and the reducer failed miserably. Hive faces a run time exception. Does hive support unicode characters at all?
Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row (tag=0) {"key":{"reducesinkkey0":"h�ngekommode ","reducesinkkey1":"1 "},"value":{"_col0":"h�ngekommode ","_col1":"1 "},"alias":0}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Hadoop和Hive支持UTF8编码。这是 Hadoop 和 Hive 代码库中许多地方的隐含假设。您需要将数据转换为 UTF8。
你得到的实际异常是什么?您可以在作业日志中找到它。
Hadoop and Hive support UTF8 encoding. This is an implicit assumption in many places in the Hadoop and Hive codebases. You will need to convert your data to UTF8.
What was the actual exception you got? You can find it in the job logs.