awslabs / amazon-kinesis-agent

Continuously monitors a set of log files and sends new data to the Amazon Kinesis Stream and Amazon Kinesis Firehose in near-real-time.
Other
358 stars 223 forks source link

Amazon-Kinesis-Agent 1.1.2 Build Failure #119

Open Rajeshkumar123 opened 7 years ago

Rajeshkumar123 commented 7 years ago

Hi I am trying to install Amazon-Kinesis-Agent 1.1.2 on my RHEL 7.2. I have installed the following java version

openjdk version "1.8.0_111" OpenJDK Runtime Environment (build 1.8.0_111-b15) OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)

I am getting below build failure exception during installation.

[javac]   symbol:   class STSAssumeRoleSessionCredentialsProvider
    [javac]   location: class AgentContext
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/AgentContext.java:216: error: cannot find symbol
    [javac]     public ClientConfiguration getAwsClientConfiguration() {
    [javac]            ^
    [javac]   symbol:   class ClientConfiguration
    [javac]   location: class AgentContext
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/metrics/IMetricsScope.java:18: error: package com.amazonaws.services.cloudwatch.model does not exist
    [javac] import com.amazonaws.services.cloudwatch.model.Dimension;
    [javac]                                               ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/metrics/IMetricsScope.java:19: error: package com.amazonaws.services.cloudwatch.model does not exist
    [javac] import com.amazonaws.services.cloudwatch.model.StandardUnit;
    [javac]                                               ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/HeartbeatService.java:41: error: cannot find symbol
    [javac]     protected Scheduler scheduler() {
    [javac]               ^
    [javac]   symbol:   class Scheduler
    [javac]   location: class HeartbeatService
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/TrackedFile.java:23: error: package javax.annotation.concurrent does not exist
    [javac] import javax.annotation.concurrent.NotThreadSafe;
    [javac]                                   ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/TrackedFile.java:25: error: package lombok does not exist
    [javac] import lombok.Getter;
    [javac]              ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/TrackedFile.java:26: error: package lombok does not exist
    [javac] import lombok.ToString;
    [javac]              ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/TrackedFile.java:28: error: package org.slf4j does not exist
    [javac] import org.slf4j.Logger;
    [javac]                 ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/TrackedFile.java:31: error: package com.google.common.base does not exist
    [javac] import com.google.common.base.Preconditions;
    [javac]                              ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/TrackedFile.java:37: error: cannot find symbol
    [javac] @NotThreadSafe
    [javac]  ^
    [javac]   symbol: class NotThreadSafe
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/TrackedFile.java:38: error: cannot find symbol
    [javac] @ToString(exclude={"channel", "flow"})
    [javac]  ^
    [javac]   symbol: class ToString
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/checkpoints/FileCheckpoint.java:18: error: package com.google.common.base does not exist
    [javac] import com.google.common.base.Preconditions;
    [javac]                              ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/checkpoints/FileCheckpoint.java:20: error: package lombok does not exist
    [javac] import lombok.EqualsAndHashCode;
    [javac]              ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/checkpoints/FileCheckpoint.java:21: error: package lombok does not exist
    [javac] import lombok.Getter;
    [javac]              ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/checkpoints/FileCheckpoint.java:22: error: package lombok does not exist
    [javac] import lombok.ToString;
    [javac]              ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/checkpoints/FileCheckpoint.java:30: error: cannot find symbol
    [javac] @ToString
    [javac]  ^
    [javac]   symbol: class ToString
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/checkpoints/FileCheckpoint.java:31: error: cannot find symbol
    [javac] @EqualsAndHashCode(exclude={"file"})
    [javac]  ^
    [javac]   symbol: class EqualsAndHashCode
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/FirehoseFileFlow.java:20: error: package lombok does not exist
    [javac] import lombok.Getter;
    [javac]              ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/FirehoseFileFlow.java:21: error: package lombok does not exist
    [javac] import lombok.ToString;
    [javac]              ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/FirehoseFileFlow.java:26: error: package com.google.common.collect does not exist
    [javac] import com.google.common.collect.Range;
    [javac]                                 ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/AbstractRecord.java:20: error: package com.google.common.base does not exist
    [javac] import com.google.common.base.Preconditions;
    [javac]                              ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/FirehoseFileFlow.java:30: error: cannot find symbol
    [javac] @ToString(callSuper=true)
    [javac]  ^
    [javac]   symbol: class ToString
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/KinesisFileFlow.java:20: error: package lombok does not exist
    [javac] import lombok.Getter;
    [javac]              ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/KinesisFileFlow.java:21: error: package lombok does not exist
    [javac] import lombok.ToString;
    [javac]              ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/KinesisFileFlow.java:27: error: package com.google.common.collect does not exist
    [javac] import com.google.common.collect.Range;
    [javac]                                 ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/KinesisRecord.java:20: error: package com.google.common.annotations does not exist
    [javac] import com.google.common.annotations.VisibleForTesting;
    [javac]                                     ^
    [javac] /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/KinesisRecord.java:21: error: package com.google.common.base does not exist
    [javac] import com.google.common.base.Preconditions;
    [javac]                              ^
    [javac] Note: /sample/amazon-kinesis-agent-1.1.2/src/com/amazon/kinesis/streaming/agent/tailing/FileFlow.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 100 errors

BUILD FAILED
/sample/amazon-kinesis-agent-1.1.2/build.xml:38: Compile failed; see the compiler error output for details.

Total time: 2 seconds
Failed to build the Java project
Rajeshkumar123 commented 6 years ago

Any comments on the issue?

killergerbah commented 6 years ago

This issue happened to me when the wget that's used to download the jar dependencies from Maven central fails silently. I've implemented a workaround by bundling the dependencies with the install scripts.

jonmeransonos commented 6 years ago

I am having this issue as well on version 1.1.3. It's difficult for me to include my dependencies as I am automating the build through Ansible on another node.

mindflash-ops commented 6 years ago

I'm having this issue too, I can't automate the system setup because it fails randomly all over the place with Maven.

valter-silva-au commented 6 years ago

I can confirm this issue as well, I'm using Oracle JDK 1.8 on Ubuntu 14.

dbellizzi commented 5 years ago

Something is wrong with how lombok is published to maven (maybe some mirrors don't have older versions?). Some versions look like they were removed, some are just not available reliably.

We've worked around this by updating the reference in the kinesis agent setup script: sed -i 's/org.projectlombok:lombok:1.16.6/org.projectlombok:lombok:1.18.8/g' setup

We have to keep the 1.18.8 part pointing to a lombok that is available though, since they keep disappearing.