目前,我使用以下代码来显示配置单元中表的ddl:
Show create table cus_data
我正在尝试将该语句的结果写入命令行中给定位置的文件。我试过以下方法,但没有效果:
hive> show create table -f “home/e13/sample_file”
有什么想法/建议吗?
pbgvytdp1#
试试这个
hive -e "show create table cus_data" > ~/output.txt
1条答案
按热度按时间pbgvytdp1#
试试这个