Some more information:
(1) Lingual version is 1.2
(2) Provider version : 3.0.0
(3) hadoop 1.0.3
The script is as follows: ( I have removed the data base name, username and password)
hadoop fs -rmr .lingual
# tell lingual which platform to run on ("local" or "hadoop")
export LINGUAL_PLATFORM=hadoop
## location of Lingual catalog
CATALOG_PATH=/user/$USER/.lingual
#-------------------------------------------------------------------------------------------------------------------------------------
# initialize lingual catalog
lingual catalog --init --showstacktrace
echo ${CASCADING_JDBC_PATH}
# create cascading-jdbc-redshift provider
lingual catalog --provider --add /home/campus/cascading-jdbc/cascading-jdbc-redshift/build/libs/cascading-jdbc-redshift-3.0.0-wip-dev-provider.jar --showstacktrace
#-------------------------------------------------------------------------------------------------------------------------------------
# create IN schema to read from
lingual catalog --schema IN --add
# create stereotype and define columns and types
lingual catalog --schema IN --stereotype IN -add --columns anonymized_id,make,model,year,vehicle_type,vin,serial,date,country_code,state_code,software_version,bench_mode,driver_type,application_name,application_category_name,total_launches,total_duration,softkey_press_count,job_run_id --types string,string,string,string,string,string,string,string,string,string,string,boolean,string,string,string,long,long,int,int
# add format to schema
delim=`echo 'a' | tr 'a' '\001'`
lingual catalog --schema IN --format ssv --add --provider text --properties "delimiter=${delim}"
# add table to schema
lingual catalog --schema IN --table IN --stereotype IN -add <some file on hdfs> --format ssv
# show table
lingual catalog --schema IN --table IN --show
Putting data into redshift
# create OUT5 schema to write to
lingual catalog --schema OUT5 --add --showstacktrace
# create stereotype and define columns and types
lingual catalog --schema OUT5 --stereotype OUT5 -add --columns anonymized_id --types string --showstacktrace
# add format to schema
lingual catalog --schema OUT5 --format postgresql --add --provider redshift --showstacktrace
# add protocol and table definition to schema
lingual catalog --schema OUT5 --protocol jdbc --add --properties="tabledesc.tablename=sample,tabledesc.columnnames=anonymized_id,tabledesc.columndefs=CHARACTER VARYING NOT NULL DISTKEY ENCODE LZO,jdbcuser=###l,jdbcpassword=##,usedirectinsert=true,sinkmode=UPDATE" --provider redshift --showstacktrace
# add protocol format - postgresql
lingual catalog --schema OUT5 --protocol jdbc --format postgresql --add --provider redshift --showstacktrace
# add table to schema
lingual catalog --schema OUT5 --table OUT5 --stereotype OUT5 --add <URL of redshift databasee> --protocol jdbc --format postgresql --provider redshift --showstacktrace
# show table
lingual catalog --schema OUT5 --table OUT5 --show
echo "INSERT INTO \"OUT5\".\"OUT5\" SELECT \"anonymized_id\" FROM \"IN\".\"IN\";" | lingual shell --showstacktrace --verbose