File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,12 @@ Here is an example for a command line tool invocation:
1919 REMOTE_PORT=8000
2020 python3 -m pyunicore.forwarder --token <your_auth_token> \
2121 -L $LOCAL_PORT \
22- $JOB_URL/forward-port?port=REMOTE_PORT \
22+ $JOB_URL/forward-port?port=$ REMOTE_PORT \
2323
2424
2525 Your application can now connect to ``localhost:4322 `` but all traffic
26- will be forwarded to port 8000 on the login node.
26+ will be forwarded to port 8000 on the HPC login node where your application
27+ is running.
2728
2829See
2930
3233 python3 -m pyunicore.forwarder --help
3334
3435 for all options.
36+
37+ If you want to tunnel to a compute node, you need to specify the compute node in your command line:
38+
39+ .. code :: console
40+
41+ LOCAL_PORT=4322
42+ JOB_URL=https://localhost:8080/DEMO-SITE/rest/core/jobs/some_job_id
43+ REMOTE_PORT=8000
44+ COMPUTE_NODE=cnode1234
45+ python3 -m pyunicore.forwarder --token <your_auth_token> \
46+ -L $LOCAL_PORT \
47+ $JOB_URL/forward-port?port=$REMOTE_PORT?host=$COMPUTE_NODE \
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ The following code example gives you the basic idea:
5454
5555 import pyunicore.client as uc_client
5656 import pyunicore.credentials as uc_credentials
57- import pyunicore.uftp as uc_uftp
58- import pyunicore.uftpfuse as uc_fuse
57+ import pyunicore.uftp.uftp as uc_uftp
58+ import pyunicore.uftp. uftpfuse as uc_fuse
5959
6060 _auth = " https://localhost:9000/rest/auth/TEST"
6161 _base_dir = " /opt/shared-data"
You can’t perform that action at this time.
0 commit comments