【发布时间】:2020-08-13 00:53:39
【问题描述】:
我有非常大量的数据存储在一个文本分隔表中,我通过Impala 创建了它的DDL,我已经用Hive 中的数据编写了它,我想把它送到@987654325 中的local file system @ 在一个文件中。
我在HDFS 表位置路径中有多个文件,这是我使用的命令:
hadoop fs -cat '<tablelocationinHDFS>/*' > /unixlocalpathandfilename.csv
我收到 2 个错误:
-
cat: is a directory error
因为里面有一个impala_insert_staging目录,如何避免这个错误? cat: Unable to write to output stream
或者我是否应该使用get 命令或getmerge 命令将数据放入本地?
如何避免上述错误并成功运行命令。
【问题讨论】: