Apache在TSV中钻出丢失的unicode [英] Apache drill losing unicode in TSVs

查看:117
本文介绍了Apache在TSV中钻出丢失的unicode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Apache演练中使用了text/tsv存储插件,输出的tsv文件有?用于unicode字符.如果我使用JSON存储插件,则Unicode很好.

I'm using the text/tsv storage plugin with Apache drill and the output tsv files have ? for unicode characters. If I use the JSON storage plugin, the unicode is fine.

类似的东西:

URL: http://localhost:8047/query.json

有效载荷:

{
  "queryType":"SQL",
  "query": "CREATE TABLE st.`repo`.`test` AS SELECT * FROM st.`repo`.`unicode_data`"
}

推荐答案

设置JVM文件编码,此问题已解决.

Set the JVM file encoding and this is fixed.

JAVA_TOOL_OPTIONS = -Dfile.encoding = UTF8

JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8

这篇关于Apache在TSV中钻出丢失的unicode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆