# Error when using @distributed for on cluster with multiple nodes

**URL:** <https://discourse.julialang.org/t/error-when-using-distributed-for-on-cluster-with-multiple-nodes/14377>\
**Category:** Julia at Scale\
**Tags:** cluster\
**Created:** [August 31, 2018, 5:58pm UTC](https://discourse.julialang.org/t/error-when-using-distributed-for-on-cluster-with-multiple-nodes/14377 "2018-08-31T17:58:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Pbellive](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pbellive/32/3604_2.png) [@Pbellive](https://discourse.julialang.org/u/Pbellive)\
**Post date:** [August 31, 2018, 8:23pm UTC](https://discourse.julialang.org/t/error-when-using-distributed-for-on-cluster-with-multiple-nodes/14377/4 "2018-08-31T20:23:31Z")

</div>

Oh, yes, if you’re using a job management system you’ll have to manage things a bit differently. I’m not familiar with PBS. You might want to checkout the thread:

> [@Help setting up Julia on a cluster](https://discourse.julialang.org/t/help-setting-up-julia-on-a-cluster/5519):
>
> I am trying Julia for the first time on a HPC cluster at my university. Julia v0.6 is already installed, I have a few questions: How to install packages on a custom folder in the cluster other than .julia/v0.6, and without internet connection? The cluster is configured with PBS for resource management. I found the [ClusterManagers.jl](https://github.com/JuliaParallel/ClusterManagers.jl) package, but I wonder what is the workflow? Do I still need to write a PBS script and call Julia from there?

and also the [ClusterManagers](https://github.com/JuliaParallel/ClusterManagers.jl) package.

I can say that just launching julia via `julia -p n` for some number `n`. is meant for launching multiple workers on a single machine. To launch workers on multiple machines you need to launch julia with a machine file. [This post](https://discourse.julialang.org/t/help-setting-up-julia-on-a-cluster/5519/6) has an example of how to do that with PBS. That’s about all I know. If that doesn’t get you going I would look around for more resources on/ask for help with getting Julia working with cluster job schedulers.

Cheers, Patrick

---

_[View the full topic](https://discourse.julialang.org/t/error-when-using-distributed-for-on-cluster-with-multiple-nodes/14377)._
