Both of these can be handled by the MAPPING section of the YAML file. I'll ignore columns col3, col4, and col5 and transform your date using to_timestamp in the YAML file to the correct timestamp format.
[gpadmin@gpdbsne ~]$ cat testfile.txt
"col1"|"col2"|"col3"|"col4"|"col5"|20170117091011
"col1"|"col2"|"col3"|"col4"|"col5"|20170117091011
"col1"|"col2"|"col3"|"col4"|"col5"|20170117091011
"col1"|"col2"|"col3"|"col4"|"col5"|20170117091011
"col1"|"col2"|"col3"|"col4"|"col5"|20170117091011
"col1"|"col2"|"col3"|"col4"|"col5"|20170117091011
"col1"|"col2"|"col3"|"col4"|"col5"|20170117091011
"col1"|"col2"|"col3"|"col4"|"col5"|20170117091011
"col1"|"col2"|"col3"|"col4"|"col5"|20170117091011
"col1"|"col2"|"col3"|"col4"|"col5"|20170117091011
[gpadmin@gpdbsne ~]$ cat test.yml
---
VERSION: 1.0.0.1
DATABASE: gpadmin
USER: gpadmin
HOST: gpdbsne
PORT: 5432
GPLOAD:
INPUT:
- SOURCE:
LOCAL_HOSTNAME:
- gpdbsne
PORT: 8999
FILE:
- /home/gpadmin/testfile.txt
- FORMAT: text
- DELIMITER: '|'
- QUOTE: '"'
- COLUMNS:
- col1: text
- col2: text
- col3: text
- col4: text
- col5: text
- col6: text
OUTPUT:
- TABLE: public.test
- MODE: insert
- MAPPING:
col1: col1
col2: col2
col6: to_timestamp(col6, 'YYYYMMDDHH24MISS')
[gpadmin@gpdbsne ~]$ psql
SET
Timing is on.
psql (8.2.15)
Type "help" for help.
gpadmin=# create table public.test (col1 text, col2 text, col6 timestamp) distributed randomly;
CREATE TABLE
Time: 14.006 ms
gpadmin=# \q
[gpadmin@gpdbsne ~]$ gpload -f test.yml
2017-01-13 08:20:58|INFO|gpload session started 2017-01-13 08:20:58
2017-01-13 08:20:58|INFO|started gpfdist -p 8999 -P 9000 -f "/home/gpadmin/testfile.txt" -t 30
2017-01-13 08:20:58|INFO|running time: 0.12 seconds
2017-01-13 08:20:58|INFO|rows Inserted = 10
2017-01-13 08:20:58|INFO|rows Updated = 0
2017-01-13 08:20:58|INFO|data formatting errors = 0
2017-01-13 08:20:58|INFO|gpload succeeded
[gpadmin@gpdbsne ~]$ psql -c "select * from public.test"
col1 | col2 | col6
--------+--------+---------------------
"col1" | "col2" | 2017-01-17 09:10:11
"col1" | "col2" | 2017-01-17 09:10:11
"col1" | "col2" | 2017-01-17 09:10:11
"col1" | "col2" | 2017-01-17 09:10:11
"col1" | "col2" | 2017-01-17 09:10:11
"col1" | "col2" | 2017-01-17 09:10:11
"col1" | "col2" | 2017-01-17 09:10:11
"col1" | "col2" | 2017-01-17 09:10:11
"col1" | "col2" | 2017-01-17 09:10:11
"col1" | "col2" | 2017-01-17 09:10:11
(10 rows)