Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Error Trying to get Basic Pig Syntax Running

avatar
Explorer

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
Explorer
@avoma

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