Giter VIP home page Giter VIP logo

Comments (5)

ArtSciBiz avatar ArtSciBiz commented on May 18, 2024

Tried the --offline option, after dropping the jars in various libraries. No luck.

00:41:21.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
00:41:21.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
00:41:21.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
00:41:21.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
00:41:21.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Could not resolve all dependencies for configuration ':compileClasspath'.
00:41:21.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve net.sourceforge.argparse4j:argparse4j:0.5.0.
00:41:21.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > No cached version of net.sourceforge.argparse4j:argparse4j:0.5.0 available for offline mode.
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.slf4j:slf4j-log4j12:1.7.6.
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > No cached version of org.slf4j:slf4j-log4j12:1.7.6 available for offline mode.
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.apache.avro:avro:1.4.0.
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > No cached version of org.apache.avro:avro:1.4.0 available for offline mode.
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.apache.kafka:kafka_2.11:0.10.1.1.
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > No cached version of org.apache.kafka:kafka_2.11:0.10.1.1 available for offline mode.
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.apache.kafka:kafka-clients:0.10.1.1.
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > No cached version of org.apache.kafka:kafka-clients:0.10.1.1 available for offline mode.
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve org.testng:testng:6.8.8.
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Required by:
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] project :
00:41:21.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > No cached version of org.testng:testng:6.8.8 available for offline mode.

from kafka-monitor.

lindong28 avatar lindong28 commented on May 18, 2024

@ibm4mb Are you building kafka-monitor on a machine with network access to maven repository? It seems that gradle is not able to fetch the jar from maven repository. In order to understand whether this is kafka-monitor's issue or the network connection issue, can you try compile Apache Kafka using gradle?

from kafka-monitor.

ArtSciBiz avatar ArtSciBiz commented on May 18, 2024

Thank you, so much for responding. I was able execute the Gradle build on on my windows personal computer that has network access. But wanted to execute an offline Gradle build on a Red Hat Enterprise Linux 7.x Virtual Machine that has no access to external network, and so I wrestled with offline Gradle build after downloading the JARs that the build process was complaining. When you have a couple of minutes, if you can kindly direct me to key instructions for offline Gradle build of the kafka-monitor that'd be fantastic. Thanks in advance.

from kafka-monitor.

lindong28 avatar lindong28 commented on May 18, 2024

@ibm4mb Sure thing. I am happy to help :)

We have tested kafka-monitor compilation and it should work with ./gradlew jar, as you can see in the README at https://github.com/linkedin/kafka-monitor. All quick-start instructions, including the steps to build kafka-monitor, are put in this README.

Thus it seems that you are observing these errors because you tried to build kafka-monitor as an offline Gradle build on a virtual machine. We haven't tested kafka-monitor in such an environment so I am not sure whether it is expected to work. But it seems to me that it should work in the same way as any other gradle-based project such as Apache Kafka. Therefore, I am wondering if you are able to build Apache Kafka or any other open source gradle-based project as offline Gradle build on that virtual machine. Can you try that?

from kafka-monitor.

ArtSciBiz avatar ArtSciBiz commented on May 18, 2024

@lindong28, yes you're right. The problem is with executing a successful offline Gradle build, on a VM, because the build process tries to access the JARs locally (not sure which directory). So the process stops when it can't find the dependencies.

First time around, the online Gradle build stopped when my machine couldn't access the 3rd party JARs such as the Maven repositories on the internet.

Ideally it would be nice to have instructions to do an offline build for using a Kafka cluster within the intranet.

Thank you

from kafka-monitor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.