Error:- cannot locate pig-core-hr. jar. do ‘ant -Dhadoopversion=23 jar’

0 votes

Hi I am new to Hadoop field. After installing Pig in CentOS, I wanted to check the version with the command 

 pig -version

 But got an error as mentioned above. Can anyone help out with the solution? 

Apr 26 in Big Data Hadoop by sunny
28 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+1 vote

Hey,

To recover this error, you can do one thing. Just install "ant" with the use of a command.  

sudo yum install ant

And try to run the same "pig -version" command and try to run in a different terminal. I hope it will work.

answered Apr 26 by Gitika
• 13,350 points
So what is the relation between Pig and Ant? I can't understand why working of Pig is dependent on Apache Ant. As far as I know, Ant is just a build tool, which will probably in our case download all the packages, libraries, etc. needed for pig. But we can also install it manually. And if its not working manually, then whats extra that Ant is installing, which we are not??
+1 vote

Even I got the same error, I tried installing "ant" but it did not work because 'bin' directory was missing over there. I tried something else, I uninstalled the version of pig.0.16.0 I was using and installed the latest version pig.0.17.0

After installing, I put down all the directories present inside it and then installed ant to build the pig. Because the Pig-script file, the pig, is located in the bin directory. Make sure you change all the necessary configuration in the .bashrc file according to your pig version.

answered Apr 26 by disha

edited Apr 29 by Gitika

Related Questions In Big Data Hadoop

0 votes
1 answer

Getting error while building Hadoop core jar using ant.

I think you are missing libtool library. ...READ MORE

answered Apr 18, 2018 in Big Data Hadoop by coldcode
• 1,980 points
30 views
0 votes
1 answer

Pig code in Eclipse shows error :LongWritable cannot be resolved to a type

To rectify this errors, you need to ...READ MORE

answered Jan 2 in Big Data Hadoop by Omkar
• 66,880 points
45 views
0 votes
1 answer

Hadoop Pig: How to include external jar file in PIG?

You can do this: register /local/path/to/Jar_name.jar READ MORE

answered Nov 16, 2018 in Big Data Hadoop by Omkar
• 66,880 points
22 views
0 votes
1 answer

How do I join 2 tables in PIG using 2 fields?

Here, we have two tables: Tab1 having columns ...READ MORE

answered Dec 13, 2018 in Big Data Hadoop by Omkar
• 66,880 points
47 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 9,310 points
1,818 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
8,996 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
646 views
0 votes
1 answer
0 votes
1 answer

Why we need to install "ant -Dhadoopversion=23" ? What is the use of this?

Hi, We install ant to build pig, If the ...READ MORE

answered Apr 26 in Big Data Hadoop by Gitika
• 13,350 points
20 views
0 votes
1 answer

Why do we need the FOR EACH operation in Pig Scripts?

The operation FOREACH in Apache Pig is ...READ MORE

answered Apr 30 in Big Data Hadoop by Gitika
• 13,350 points
15 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.