Hive: writing column headers to local file?

前端 未结 7 1396
别跟我提以往
别跟我提以往 2020-12-08 01:17

Hive documentation lacking again:

I\'d like to write the results of a query to a local file as well as the names of the columns.

Does Hive support this?

相关标签:
7条回答
  • 2020-12-08 01:46

    Hive does support writing to the local directory. You syntax looks right for it as well.
    Check out the docs on SELECTS and FILTERS for additional information.

    I don't think Hive has a way to write the names of the columns to a file for the query you're running . . . I can't say for sure it doesn't, but I do not know of a way.

    I think the only place better than SO for Hive questions would be the mailing list.

    0 讨论(0)
提交回复
热议问题