Getting error 2017-05-04 07:02:29,167 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 3, column 143> Syntax error, unexpected symbol at or near 'string' Details at logfile: /home/anuragjaiswal140389/pig_1493895311325.log

when running following command

orders_another = LOAD ‘hdfs://nn01.itversity.com:8020/apps/hive/warehouse/anuragjaiswal.db/orders_another’ USING PigStorage(’,’) AS (order_id: string, order_datetime: string, order_customer_id: int, order_status: varchar(45))

getiing error

ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 3, column 143> Syntax error, unexpected symbol at or near 'string’
Details at logfile: /home/anuragjaiswal140389/pig_1493895311325.log

For string in pig you need to use ‘chararray’ for string.