Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 hive 0.9 中有一个表,其中的字段是 \001 分隔的。我有一些包含表格的字段。结果,当我在命令行上使用 Hive 查询我的数据时:
hive -e "SELECT * FROM my_table" > output.tsv
我的输出文件中有额外的列。本质上,我希望能够做类似的事情
hive --output-field-separator '\001' -e "SELECT * FROM my_table"
有谁知道解决方法?
您可以尝试INSERT OVERWRITE改用将数据写入文件。在 Hive 0.9 中,您无法使用此方法更改分隔符,但看起来这将在未来的版本中成为可能。
INSERT OVERWRITE
此答案中的更多详细信息。
希望有帮助。