如何在 Mac 上的 hive 中将数据加载到表中

问题描述

谁能帮我解决以下问题:

这是我创建的表:

create table if not exists table3(col1 int,col2 array<string>,col3 string,col4 int)row format delimited fields terminated by',' collection items terminated by':' lines terminated by'\n' stored as textfile;

没有受影响的行(0.092 秒)

我正在尝试从本地保存的文件中加载数据,但出现文件路径无效的错误。我检查了文件名,一切都拼写正确。 table1.txt 正好存储在文件路径中。我不知道为什么会出现此错误

load data local inpath'/Users/dennie/Documents/hive/table1.txt'into table table3;

错误:编译语句时出错:Failed:SemanticException Line 1:22 无效路径“/Users/dennie/Documents/hive/table1.txt”:否 文件匹配路径 file:/Users/dennie/Documents/hive/table1.txt (状态=42000,代码=40000)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)