Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to linux nodes from windows #2902

Closed
acorbellini opened this issue Apr 20, 2013 · 3 comments
Closed

Can't connect to linux nodes from windows #2902

acorbellini opened this issue Apr 20, 2013 · 3 comments
Labels
parallelism Parallel or distributed computation system:32-bit Affects only 32-bit systems

Comments

@acorbellini
Copy link

Hi!
I'm currently trying Julia under Windows and wanted to point out that the machinefile option is not working correctly (I guess). I used the binary distribution and the built from the source, but when I try to connect to an ubuntu node, it tries to find Julia under the Windows installation path (but on ubuntu). I've set JULIA_HOME on the ubuntu box, but it doesn't seem to be using it.
I'm able to use this feature on Ubuntu, but it would be nice to be able to spawn jobs from windows to ubuntu.
Thanks!!

@StefanKarpinski
Copy link
Member

Unfortunately we don't yet support this. The JULIA_HOME issue would be relatively simple to work around, although SSH doesn't allow arbitray environment variables to pass through. The bigger issue is that you're probably connecting from a 32-bit build to a 64-bit build, which totally screws with our data serialization.

JeffBezanson added a commit that referenced this issue May 2, 2013
@JeffBezanson
Copy link
Member

I added an argument that might help with this. Try:

addprocs({"ubuntu host"}, dir="julia path on ubuntu")

where the path is the path to the julia binaries, for example /home/user/src/julia/usr/bin.

@jakebolewski jakebolewski added the parallelism Parallel or distributed computation label Jun 1, 2015
@notinaboat notinaboat added the system:32-bit Affects only 32-bit systems label Dec 9, 2020
@mgkuhn
Copy link
Contributor

mgkuhn commented Dec 11, 2020

I have successfully used Julia 1.6-DEV (following #38577) to invoke workers between Linux (POSIX shell) and Windows (cmd.exe shell) in all four possible directions.

Yes, you always need to specify dir when crossing a Windows/Linux boundary, because pathnames will be different between both worlds (e.g., drive letter) and the default pwd() is very unlikely to work.

JULIA_HOME no longer exists and Julia can usually figure out on its own where it was installed.

Julia 1.6-DEV (since #38353) now also supports passing environment variables via ssh, using the new env parameter to addprocs, which simply injects the shell commands needed to set environment variables before starting a Julia worker.

I don't know about the state of the 32/64-bit data serialization issue mentioned by @StefanKarpinski. This would warrant opening a separate issue if it is still acute.

Otherwise I think the original issue is resolved.

@mgkuhn mgkuhn closed this as completed Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parallelism Parallel or distributed computation system:32-bit Affects only 32-bit systems
Projects
None yet
Development

No branches or pull requests

7 participants