You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by rakesh sharma <ra...@hotmail.com> on 2012/01/18 23:00:12 UTC
Issue with thrift dependency and cloudera CDH3U2
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
Re: Issue with thrift dependency and cloudera CDH3U2
Posted by Scott Carey <sc...@richrelevance.com>.
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" <dv...@gmail.com> 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
><ra...@hotmail.com>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
>>
Re: Issue with thrift dependency and cloudera CDH3U2
Posted by Dmitriy Ryaboy <dv...@gmail.com>.
Pig does not depend on thrift, something else is pulling it in.
-D
On Wed, Jan 18, 2012 at 2:00 PM, rakesh sharma
<ra...@hotmail.com>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
>