You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by Антон Чевычалов <ca...@arenadata.io> on 2017/10/25 08:28:49 UTC

KafkaSource.java:[468,37] error: cannot find symbol [ERROR] variable zkUtils of type ZkUtils

Hi to everyone!

I am trying to compile flume with latest kafka 0.11.0.1 and got the
following

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project flume-kafka-source: Compilation failure:
Compilation failure:
[ERROR]
/code/build/flume/rpm/BUILD/apache-flume-1.8.0-src/flume-ng-sources/flume-kafka-source/src/main/java/org/apache/flume/source/kafka/KafkaSource.java:[69,0]
error: cannot find symbol
[ERROR] class
[ERROR]
/code/build/flume/rpm/BUILD/apache-flume-1.8.0-src/flume-ng-sources/flume-kafka-source/src/main/java/org/apache/flume/source/kafka/KafkaSource.java:[468,37]
error: cannot find symbol
[ERROR] variable zkUtils of type ZkUtils
[ERROR]
/code/build/flume/rpm/BUILD/apache-flume-1.8.0-src/flume-ng-sources/flume-kafka-source/src/main/java/org/apache/flume/source/kafka/KafkaSource.java:[600,30]
error: cannot find symbol
[ERROR] -> [Help 1]


That is strange trouble because we have that class in imports. That looks
for me like environment trouble (Maven version maybe). Does someone compile
flume with kafka 0.11.0.1?


---
Anton B Chevychalov
CI/CD Engineer of ArenaData

Re: KafkaSource.java:[468,37] error: cannot find symbol [ERROR] variable zkUtils of type ZkUtils

Posted by Антон Чевычалов <ca...@arenadata.io>.
Oh!

I should learn Scala. I never suspect such changes in minor version. Thanks
for help. I made patch based on your  and attach that here. Should I do
something more? Create ticket in Jira maybe?



On 25 October 2017 at 15:22, Ferenc Szabo <fs...@cloudera.com> wrote:

> Hi Anton,
>
> with the kafka upgrade, there comes a scala-library update as well and for
> the 2.11 scala version there were backward compatibility breaking changes
>
> in this case  scala.collection.JavaConverters.asJavaListConverter has
> been removed
>
> I have attached part of my solution of this upgrade.
> You may not be able to apply the diff file itself, but the solution is in
> it.
>
> Let me know if you need more help with it.
>
>
>
>
>
>
> On Wed, Oct 25, 2017 at 10:28 AM, Антон Чевычалов <ca...@arenadata.io>
> wrote:
>
>> Hi to everyone!
>>
>> I am trying to compile flume with latest kafka 0.11.0.1 and got the
>> following
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
>> (default-compile) on project flume-kafka-source: Compilation failure:
>> Compilation failure:
>> [ERROR]
>> /code/build/flume/rpm/BUILD/apache-flume-1.8.0-src/flume-ng-
>> sources/flume-kafka-source/src/main/java/org/apache/flume/
>> source/kafka/KafkaSource.java:[69,0]
>> error: cannot find symbol
>> [ERROR] class
>> [ERROR]
>> /code/build/flume/rpm/BUILD/apache-flume-1.8.0-src/flume-ng-
>> sources/flume-kafka-source/src/main/java/org/apache/flume/
>> source/kafka/KafkaSource.java:[468,37]
>> error: cannot find symbol
>> [ERROR] variable zkUtils of type ZkUtils
>> [ERROR]
>> /code/build/flume/rpm/BUILD/apache-flume-1.8.0-src/flume-ng-
>> sources/flume-kafka-source/src/main/java/org/apache/flume/
>> source/kafka/KafkaSource.java:[600,30]
>> error: cannot find symbol
>> [ERROR] -> [Help 1]
>>
>>
>> That is strange trouble because we have that class in imports. That looks
>> for me like environment trouble (Maven version maybe). Does someone
>> compile
>> flume with kafka 0.11.0.1?
>>
>>
>> ---
>> Anton B Chevychalov
>> CI/CD Engineer of ArenaData
>>
>
>


-- 
Anton B Chevychalov
CI/CD Engineer of ArenaData

Re: KafkaSource.java:[468,37] error: cannot find symbol [ERROR] variable zkUtils of type ZkUtils

Posted by Ferenc Szabo <fs...@cloudera.com>.
Hi Anton,

with the kafka upgrade, there comes a scala-library update as well and for
the 2.11 scala version there were backward compatibility breaking changes

in this case  scala.collection.JavaConverters.asJavaListConverter has been
removed

I have attached part of my solution of this upgrade.
You may not be able to apply the diff file itself, but the solution is in
it.

Let me know if you need more help with it.






On Wed, Oct 25, 2017 at 10:28 AM, Антон Чевычалов <ca...@arenadata.io> wrote:

> Hi to everyone!
>
> I am trying to compile flume with latest kafka 0.11.0.1 and got the
> following
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> (default-compile) on project flume-kafka-source: Compilation failure:
> Compilation failure:
> [ERROR]
> /code/build/flume/rpm/BUILD/apache-flume-1.8.0-src/flume-
> ng-sources/flume-kafka-source/src/main/java/org/apache/flume/source/kafka/
> KafkaSource.java:[69,0]
> error: cannot find symbol
> [ERROR] class
> [ERROR]
> /code/build/flume/rpm/BUILD/apache-flume-1.8.0-src/flume-
> ng-sources/flume-kafka-source/src/main/java/org/apache/flume/source/kafka/
> KafkaSource.java:[468,37]
> error: cannot find symbol
> [ERROR] variable zkUtils of type ZkUtils
> [ERROR]
> /code/build/flume/rpm/BUILD/apache-flume-1.8.0-src/flume-
> ng-sources/flume-kafka-source/src/main/java/org/apache/flume/source/kafka/
> KafkaSource.java:[600,30]
> error: cannot find symbol
> [ERROR] -> [Help 1]
>
>
> That is strange trouble because we have that class in imports. That looks
> for me like environment trouble (Maven version maybe). Does someone compile
> flume with kafka 0.11.0.1?
>
>
> ---
> Anton B Chevychalov
> CI/CD Engineer of ArenaData
>