Coder Social home page Coder Social logo

Comments (6)

utkarshgupta137 avatar utkarshgupta137 commented on June 10, 2024 1

@rdhara I used github actions for building JAR files by modifying it to upload jar files as a release: https://github.com/utkarshgupta137/sparkmonitor/blob/master/.github/workflows/publish.yml#L41

from sparkmonitor.

rdhara avatar rdhara commented on June 10, 2024 1

Yup I figured it out (same step you have) and got it to work, thank you @creepysta!

from sparkmonitor.

krishnan-r avatar krishnan-r commented on June 10, 2024

This probably is the same as #7, see my comment there. I will draft a PR soon with a fix.

from sparkmonitor.

rdhara avatar rdhara commented on June 10, 2024

@creepysta Can you please explain the steps you took after adding that one line to the listener file? I'm new to sbt and Scala and am having some trouble generating the JARs referenced in the build.sbt:

assembly / assemblyOutputPath := {
  scalaBinaryVersion.value match {
    case "2.11" => (baseDirectory { base => base / ("../sparkmonitor/listener_2.11.jar") }).value
    case "2.12" => (baseDirectory { base => base / ("../sparkmonitor/listener_2.12.jar") }).value
  }
}

These jars appear in site-packages when I just run pip install sparkmonitor. I'm not even sure where the JAR building is happening, but based on a search for sbt I found this on line 75 of the packages.json: "build:scalalistener": "cd scalalistener && sbt +assembly", but the command failed with an error message.

My current plan is to make the change in a separate repo and try to pip install that repo after cloning it in. I tried this but I'm not able to get the JARs to appear after the setup.py runs; any guidance you can provide on building this locally would be very helpful - thanks in advance!

from sparkmonitor.

rdhara avatar rdhara commented on June 10, 2024

@rdhara I used github actions for building JAR files by modifying it to upload jar files as a release: https://github.com/utkarshgupta137/sparkmonitor/blob/master/.github/workflows/publish.yml#L41

Thank you I'll try this!

from sparkmonitor.

creepysta avatar creepysta commented on June 10, 2024

Hi @rdhara , apologies for the late reply. Can you try assembly followed by package in sbt shell? Just open sbt shell in the same folder as sbt.build file.
The output jar should be present in ../sparkmonitor considering your cwd is sparkmonitor/scalalistener

from sparkmonitor.

Related Issues (12)

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.