使用gpload实用程序加载到greenplum表时出现问题

时间:2017-03-03 14:56:52

标签: sql greenplum

我的目标是将特殊字符加载到Greenplum表中。我收到了以下错误。

user_folder

emp.yaml 包含:

[gpadmin@mdw ~]$ gpload -f emp.yaml
2017-03-03 19:55:47|INFO|gpload session started 2017-03-03 19:55:47
2017-03-03 19:55:47|INFO|started gpfdist -p 8000 -P 9000 -f "/home/gpadmin/emp.ftm" -t 30
2017-03-03 19:55:50|ERROR|ERROR:  invalid byte sequence for encoding "UTF8": 0xa6  (seg2 slice1 sdw2:40000 pid=16577)
DETAIL:  External table ext_gpload_4b5b4fa4_001d_11e7_88fe_005056a752ea, line 2 of file gpfdist://mdw:8000//home/gpadmin/emp.ftm
encountered while running INSERT INTO "sample"."emp" ("emp_id","emp_name") SELECT "emp_id","emp_name" FROM ext_gpload_4b5b4fa4_001d_11e7_88fe_005056a752ea
2017-03-03 19:55:50|INFO|rows Inserted          = 0
2017-03-03 19:55:50|INFO|rows Updated           = 0
2017-03-03 19:55:50|INFO|data formatting errors = 0
2017-03-03 19:55:50|INFO|gpload failed
[gpadmin@mdw ~]$

emp.ftm 包含:

VERSION: 1.0.0.1
DATABASE: tutorial
USER: gpadmin
PASSWORD: Welcome@1
HOST: 172.16.7.104
PORT: 5432
GPLOAD:
 INPUT:
- SOURCE:
   FILE:
     - /home/gpadmin/emp.ftm
- COLUMNS:
- DELIMITER: "\x01"
- FORMAT: CSV
- ESCAPE:
- QUOTE: "\x08"
- ENCODING: "UTF-8"
- ERROR_LIMIT: 0
OUTPUT:
- TABLE: '"sample".emp'
- MODE: INSERT
 PRELOAD:
- TRUNCATE: FALSE

没有特殊字符,我可以将上面的ftm加载到'emp'表中。 有人可以帮忙加载带有特殊字符的表格。

0 个答案:

没有答案