zalando / nakadi

A distributed event bus that implements a RESTful API abstraction on top of Kafka-like queues

Home Page:https://nakadi.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Failure

komal4364 opened this issue · comments

Hi,

I am new user to nakadi, but I find the project fascinating. Would like to try it.
I got stuck with build failures. Can some one help me?
I cloned the project and did ./gradlew build.
One more questions: I understand nakadi needs zookeeper, kafka, docker. Should they be installed independently on the machine?

Task :compileDbMigrationJava
Note: C:\Users\komal436\Desktop\work\nakadi\src\db-migration\java\org\zalando\nakadi\Aruha771MigrationHelper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :checkstyleTest
[ant:checkstyle] [ERROR] C:\Users\komal436\Desktop\work\nakadi\src\test\java\org\zalando\nakadi\partitioning\StringHashTest.java:22: Line is longer than 120 characters (found 128). [LineLength]

Task :checkstyleTest FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':checkstyleTest'.

Checkstyle rule violations were found. See the report at: file:///C:/Users/komal436/Desktop/work/nakadi/build/reports/checkstyle/test.html
Checkstyle files with violations: 1
Checkstyle violations by severity: [error:1]

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to
    get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 26s
16 actionable tasks: 13 executed, 3 up-to-date

I think you need to try this first https://nakadi.io/manual.html#quickstart
You need only docker (and docker-compose) all dependent services (kafka,zookeper,db) will run inside their Docker containers.
If you just want to play an learn Nakadi I recommend start from Nakadi UI https://github.com/zalando-incubator/nakadi-ui#quick-start (it uses the same set of services plus Nakadi and Nakadi UI)

Hi @komal4364 ,

Thank you for your interest in Nakadi. The errors you are seeing are Checkstyle violations. It is an automated tool that looks for code style violations, such as lines that are longer than 120 characters, for example.

The tool output tells you what the violation is, in which file and at which line number it is located. If you fix all the violations, which should be quite simple, you will be able to go ahead with building Nakadi.