I am trying to create a Writeable External Table in Greenplum (postgresql) and unload data from a Greenplum Table into HDFS using it. Here is the code:
CREATE WRITABLE EXTERNAL TABLE test_writable
( LIKE awc_merged.delivery )
LOCATION ('gphdfs://10.63.33.201-1:8081/path')
FORMAT 'TEXT' (DELIMITER ',')
DISTRIBUTED RANDOMLY;
INSERT INTO test_writable SELECT * FROM awc_merged.delivery;
However, I'm getting the following error:
ERROR: could not write to external resource: Broken pipe (fileam.c:1386) (seg3 sdw2:40001 pid=21676) (cdbdisp.c:1457)
********** Error **********
ERROR: could not write to external resource: Broken pipe (fileam.c:1386) (seg3 sdw2:40001 pid=21676) (cdbdisp.c:1457)
SQL state: XX000
The Greenplum Database and the HDFS are on different servers and I know that the command should atleast include a username and password for the HDFS server. Can anyone help me out with the correct command for this task?
Regards,
Jones