Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Pig on Hortonworks Sandbox In Azure

avatar
New Member

I can't run pig on Hortonworks Sandbox in Azure. Keep getting this errors.

Input(s):                                                                                                                                            
Failed to read data from "hdfs://sanbox.hortonworks.com:8020/tmp/demo/data/drivers.tsv" 

Any ideas what the issue could be? I can't seem to get this to work.

1 ACCEPTED SOLUTION

avatar
Super Collaborator

@Fru N. you are trying to load /tmp/demo/piglab04/data/drivers.tsv but your file has a csv extension. Change from tsv to csv. It should work.

View solution in original post

13 REPLIES 13

avatar
New Member

From Grunt, I get this...

grunt> fs -ls /tmp/demo/piglab04/data                                                                                                                                                   
Found 3 items                                                                                                                                                                           
-rwxrwxrwx   3 maria_dev hdfs       2043 2016-12-08 16:05 /tmp/demo/piglab04/data/drivers.csv                                                                                           
-rwxrwxrwx   3 maria_dev hdfs      26205 2016-12-08 16:05 /tmp/demo/piglab04/data/timesheet.csv                                                                                         
-rwxrwxrwx   3 maria_dev hdfs    2272077 2016-12-08 16:05 /tmp/demo/piglab04/data/truck_event_text_partition.csv 

So, not really sure why it happens only when running pig job. Suspecting it's something to do with the Sandbox image.

avatar
Super Collaborator

@Fru N. you are trying to load /tmp/demo/piglab04/data/drivers.tsv but your file has a csv extension. Change from tsv to csv. It should work.

avatar
New Member

That it is! Worked like a charm. Thanks @Mushtaq Rizvi

avatar
Super Collaborator

Glad to hear that, please accept the best answer to close the thread