You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by Mike Percy <mp...@apache.org> on 2013/07/01 01:44:43 UTC

Re: Errors in class ThriftSourceProtocol

Hmm... Try adding avro as a dependency to those modules in IDEA manually. I don't hit that one on Mac though. BTW not all the unit tests currently pass on Windows just FYI.

Mike

Sent from my iPhone

On Jun 30, 2013, at 11:30 AM, Lenin Raj <em...@gmail.com> wrote:

> Hi Mike,
> 
> Thanks for the help.
> 
> Your suggestions have helped.
> 
> I pulled the repo today and got 1.4.0. And I did
> 
> mvn clean install -DskipTests
> 
> It completed successfully. I imported a new project in IntelliJ and did
> Build -> Make Project
> 
> The earlier errors disappeared. Now I get problems with the below 2 files:
> 
> flume\flume-ng-legacy-sources\flume-avro-source\target\generated-sources\avro\com\cloudera\flume\handlers\avro\AvroFlumeOGEvent.java
> flume\flume-ng-legacy-sources\flume-avro-source\target\generated-sources\avro\com\cloudera\flume\handlers\avro\FlumeOGEventAvroServer.java
> 
> Error is: java: package org.apache.avro.specific does not exist
> 
> While importing the project, should I uncheck all sources that are under
> target/* directory?
> 
> I am on Windows 7.
> 
> 
> Thanks,
> Lenin
> 
> 
> On Sun, Jun 23, 2013 at 3:35 PM, Mike Percy <mp...@apache.org> wrote:
> 
>> Hi Lenin,
>> Intellij is basically a pain with the generated code stuff. The way I
>> typically deal with this (I use IntelliJ also) is I go to the root
>> directory and I do:
>> 
>> mvn clean install -DskipTests
>> 
>> Then I go to Intellij and reimport the whole Maven project. After that, it
>> should be able to see everything.
>> 
>> If not, you may have to go into the Project Settings and make sure that the
>> sources generated by the Avro Maven plugin are included in the sources for
>> each module that uses them (sdk, core)
>> 
>> Hope that helps. Let us know if you continue to run into trouble!
>> 
>> Mike
>> 
>> 
>> 
>> On Thu, Jun 20, 2013 at 8:25 AM, Lenin Raj <em...@gmail.com> wrote:
>> 
>>> Hello,
>>> 
>>> I fixed the above issue by modifying the code a little.
>>> 
>>> Now, in DurablePositionTracker.java I get an error on
>> TransferStateFileMeta
>>> (cannot resolve symbol). Please advise on how to resolve this error.
>>> 
>>> PS - I pulled the repo again today.
>>> 
>>> 
>>> Thanks,
>>> Lenin
>>> 
>>> 
>>> On Sun, Jun 16, 2013 at 1:25 PM, Lenin Raj <em...@gmail.com> wrote:
>>> 
>>>> Hello,
>>>> 
>>>> I pulled the latest source using
>>>> 
>>>> git clone https://git-wip-us.apache.org/repos/asf/flume.git
>>>> 
>>>> I got the version *1.3.0*
>>>> 
>>>> And I added all dependencies in IntelliJ IDE and did Make Project. It
>>>> resulted in errors:
>>>> 
>>>> java: org.apache.flume.thrift.ThriftSourceProtocol.Processor.append is
>>> not
>>>> abstract and does not override abstract method isOneway() in
>>>> org.apache.thrift.ProcessFunction
>>>> 
>>>> When I checked the source of ProcessFunction in 0.9.0 of Thrift,
>> isOneWay
>>>> method is abstract.
>>>> 
>>>> protected abstract boolean isOneway();
>>>> 
>>>> Is is because I am using the incorrect version of the dependent
>>> libraries?
>>>> 
>>>> Please advise.
>>>> 
>>>> Thanks,
>>>> Lenin
>>