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
39 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 by Gitika
• 20,760 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
• 2,010 points
42 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
• 67,160 points
50 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
• 67,160 points
26 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
• 67,160 points
63 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
• 10,210 points
2,079 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
10,676 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,240 points
779 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
• 20,760 points
27 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
• 20,760 points
20 views