【发布时间】:2018-10-21 12:18:54
【问题描述】:
我在 hive 中使用默认位置创建了一个外部表
CREATE EXTERNAL TABLE `testtable`(
`id` int,
`name` string)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY ','
STORED AS INPUTFORMAT
'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
'<hdfs-uri>/hive/warehouse/testtable'
想确认是否可以将包含 ID/名称值的文本文件从本地移动到外部表 testtable 的 HDFS 位置 /hive/warehouse/testtable/test.txt?谢谢。
【问题讨论】: