Simple pig script


Hi There,

Am just trying to run a simple pig script file in itversity lab
which i placed in hdfs /user/prathikeshav/sqoop_import/pig_demo2.pig

When i try to exec the above in pig i keep getting error as the file /user/prathikeshav/sqoop_import/pig_demo2.pig not found.

Should not the pig scripts in hdfs path run ?

grunt> exec /user/prathikeshav/sqoop_import/pig_demo2.pig
2018-02-06 00:06:10,669 [main] ERROR - ERROR 1000: Error during parsing. File not found: /user/prathikeshav/sqoop_import/pig_demo2.pig