Coder Social home page Coder Social logo

Comments (8)

trivialfis avatar trivialfis commented on June 9, 2024

Hi, could you please make sure python3 is the default Python?

from xgboost.

CrazyBinXXX avatar CrazyBinXXX commented on June 9, 2024

Hi, I've tried to alias python=python3 and ensured that pythonExec is "python3" in "RabitTracker.java" but the exception still happened. I wonder does the code exec python in sudo mode?

BTW I think python refers to python3 might be a little confusing. Shouldn't we replace "python" with "python3" in our .pom files and pythonExec default value?

from xgboost.

wbo4958 avatar wbo4958 commented on June 9, 2024

@CrazyBinXXX, Can you hack startTrackerProcess to print the cmd in RabitTracker.java, and then run it in another terminal to see if it can work as expected?

  private boolean startTrackerProcess() {
    try {
      String cmd = getRabitTrackerCommand();
      trackerProcess.set(Runtime.getRuntime().exec(cmd));
      loadEnvs(trackerProcess.get().getInputStream());
      return true;
    } catch (IOException ioe) {
      ioe.printStackTrace();
      return false;
    }
  }

from xgboost.

CrazyBinXXX avatar CrazyBinXXX commented on June 9, 2024

Actually I've hacked it.

!!!!!!!!!!!!!!!!!BIN LOG!!!!!!!!!!!!!!!!!
python3 /var/folders/ql/ld6nvq6d02z974sl6y8p2t7m0000gn/T/tracker1198335420923130425.py --log-level=DEBUG --num-workers=2
Process info: java.lang.UNIXProcess@2b62dddf
Process info: true
Process info: java.lang.UNIXProcess$ProcessPipeInputStream@6ecf25e
null

It seems to execute something in a temporary folder. I tried to execute it in another terminal and it gives me "can't open file '/var/folders/ql/ld6nvq6d02z974sl6y8p2t7m0000gn/T/tracker1198335420923130425.py': [Errno 2] No such file or directory"

from xgboost.

wbo4958 avatar wbo4958 commented on June 9, 2024

Try python3 xgboost4j/src/main/resources/tracker.py --log-level=DEBUG --num-workers=2

from xgboost.

wbo4958 avatar wbo4958 commented on June 9, 2024

BTW, the recent PR #10112 will revise the whole Rabit part, where there will be no tracker.py anymore.

from xgboost.

CrazyBinXXX avatar CrazyBinXXX commented on June 9, 2024

I finally solved it by a weird way --- running "cat /etc/hosts"

from xgboost.

wbo4958 avatar wbo4958 commented on June 9, 2024

That's interesting.

from xgboost.

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.