Apache drill losing unicode in TSVs

╄→гoц情女王★ 提交于 2019-12-11 05:40:09

问题


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.

Something like:

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

Payload:

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

回答1:


Set the JVM file encoding and this is fixed.

JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8



来源:https://stackoverflow.com/questions/43151313/apache-drill-losing-unicode-in-tsvs

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