Support Questions

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

Cannot locate pig-core-h2.jar. do 'ant -Dhadoopversion=23 jar'

avatar

When running the PIG command at the command prompt. it is giving me error Cannot locate pig-core-h2.jar. do 'ant -Dhadoopversion=23 jar'. Not sure which path to copy these jar files.We have already edited the bash_profile to include the

export PIG_HOME="/Library/apache-pig-0.15.0"

export PATH="/Library/apache-pig-0.15.0/bin:${PATH}"

Can you please help us in fixing this issue,

Even the Ambari web interface pig scripts and never completes or give any error message.

1 ACCEPTED SOLUTION

avatar

Thank for the inputs.We fixed the issue.We copied the file pig-core-h2.jar to

/usr/hdp/current/pig-client/lib and fixed the issue.

View solution in original post

8 REPLIES 8

avatar
Master Mentor

@Sarat Pidaparthi please look in /usr/hdp/current/pig-client/lib directory or /usr/hdp/version/pig/lib. Run pig service check, you need not set path for PIG_HOME as Ambari will take care of that for you. Do you have pig client installed on your edge node?

avatar

Thank Q Artem, we have copied the jar files into the specified path and ran the Service check it giving me the following error message. Not sure of the version which is used in Ambari and from where i can get these jar files.

WARNING: Use "yarn jar" to launch YARN applications.
Not a valid JAR: /usr/hdp/2.3.2.0-2950/pig/pig-0.15.0.2.3.2.0-2950-core-h2.jar /usr/hdp/2.3.2.0-2950/pig/pig-core-h2.jar

avatar
Master Mentor

Go to Ambari > hosts > host > install pig client. You don't need to copy anything manually.

avatar

I am not able to see the above mentioned host.

But i can see the PIG client is Installed.

Not sure how can fix this issue.

Can you please help me.

,

Hello Artem,

I cannot see the path mentioned.

But when open Hosts--> PIG is show me PIG Client Installed.

i am not able to fix the issue yet.

Thanks,

Sarat

avatar
Master Mentor

avatar

Hello Artem,

Thank Q for the reply.

I tired removing PIG and reinstalling but still i am getting the same error.

Not sure wht went wrong and where.

Thanks,

Sarat

avatar
Master Mentor

You're custom paths don't look right, please look at sandbox pig configuration and try to identify inconsistencies

avatar

Thank for the inputs.We fixed the issue.We copied the file pig-core-h2.jar to

/usr/hdp/current/pig-client/lib and fixed the issue.