Rakesh, I suggest you try: 'mvn dependency:tree' to see where it is coming from. You may also prune your dependencies by using maven <exclusion> declarations if needed.
On 1/18/12 4:03 PM, "Dmitriy Ryaboy" <[email protected]> wrote: >Pig does not depend on thrift, something else is pulling it in. > >-D > >On Wed, Jan 18, 2012 at 2:00 PM, rakesh sharma ><[email protected]>wrote: > >> >> Hi All, >> I am using following dependency in my maven pom: >> <dependency> <groupId>org.apache.pig</groupId> >> <artifactId>pig</artifactId> <version>0.8.1-cdh3u2</version> >> </dependency> <dependency> >><groupId>org.apache.hadoop</groupId> >> <artifactId>hadoop-core</artifactId> >> <version>0.20.2-cdh3u2</version> </dependency> >> The java code in my project invokes pig script using PigServer class. >> While compiling, I get following error: "Could not find artifact >> org.apache.thrift:thrift:jar:0.2.0 in nexus". I am wondering why so old >> version of thrift is being used by pig here. Also, is it the right >>artifact >> to use when I need to use only PigServer class? >> Thanks,Rakesh >>
