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.

Error Trying to get Basic Pig Syntax Running

avatar
New Member

Recently installed a Pig instance on Ambari but continually getting IOException errors and commands unknown(dump, a =5, etc...). I've setup my own local cluster running Ubunt14.04LTS with 1 host and 2 slaves. Any ideas on what I can do? I've run the service check and it returned okay. When i ran the grunt shell and tried to execute the same basic commands it came up with the same errors.

I've tried the below commands(separately) and all have issues.

    a = 5;
    dump 5;
    UPPER('test');

I've tried them in the grunt shell and get the same errors(running pig -x local, or -x webHCat)

1 ACCEPTED SOLUTION

avatar
Expert Contributor
3 REPLIES 3

avatar
Guru

Could you add the exact errors (copy-paste) as a comment to your question?

avatar
Expert Contributor

Please try to run this smoke test and provide complete command O/p if any error.

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_command-line-installation/content/validat...

avatar
New Member
@avoma

Thanks for the help, but it is because my commands weren't PigLatin compliant.... Thanks for the help and reply.