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, 2019 in Big Data Hadoop by sunny
1,806 views

2 answers to this question.

+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, 2019 by Gitika
• 65,770 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, 2019 by disha

edited Apr 29, 2019 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
• 2,090 points
1,007 views
–1 vote
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, 2019 in Big Data Hadoop by Omkar
• 69,220 points
1,879 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
• 69,220 points
1,174 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
• 69,220 points
2,155 views
+1 vote
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
• 11,380 points
11,077 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
109,071 views
–1 vote
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,350 points
4,642 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, 2019 in Big Data Hadoop by Gitika
• 65,770 points
678 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, 2019 in Big Data Hadoop by Gitika
• 65,770 points
593 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP