GBase 8a数据库本地加载语句

GBase 8a数据库本地加载语句语法如下:load data infile ‘file:///opt/test_data/t.txt’ into table t fields terminated by ‘|’;

load data infile ‘file://${ip_host}/opt/test_data/t.txt’ into table t fields terminated by ‘|’;(指定ip)

本地加载需要特别注意:

(1)若使用第一种本地加载语句方式,需要所有集群节点具备/opt/test_load/t1.txt数据文件(数据文件的存放路径必须相同),若某一节点不存在该路径的数据文件,加载时会有如下报错:filed with error – No such file or directory。

(2)若使用第二种本地加载指定ip语句方式,则只需要指定ip节点下存在/opt/test_load/t1.txt数据文件即可。

原创文章,作者:kirin,如若转载,请注明出处:https://blog.ytso.com/tech/bigdata/317620.html

(0)
上一篇 1小时前
下一篇 1小时前

相关推荐

发表回复

登录后才能评论