how to load files on hadoop cluster using apache pig?

前端 未结 3 1834
北海茫月
北海茫月 2021-01-03 08:48

I have a pig script, and need to load files from local hadoop cluster. I can list the files using hadoop command: hadoop fs –ls /repo/mydata,` but when i tried to load file

3条回答
  •  抹茶落季
    2021-01-03 09:17

    Get rid of the space on the either side of "=" in=LOAD '/repo/mydata/2012/02' USING PigStorage() AS (event:chararray, user:chararray)

提交回复
热议问题