일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- jupyter
- MAC
- hyperref
- conda
- Windows
- cython
- Anaconda
- openmp
- h5py
- HDF5
- polyglot
- c++
- arXiver
- vi
- gfortran
- virtual
- GSL
- datascience
- Matplotlib
- Visual Studio
- intel compiler
- HFS+
- mpi4py
- portforwarding
- python
- SSH
- vim
- LaTeX
- tab space
- cygwin
- Today
- Total
Astro Coke
[Globus] Command-line Globus (in beluga cluster) 본문
source:https://docs.computecanada.ca/wiki/Globus#Command_Line_Interface_.28CLI.29
https://hpc.nih.gov/storage/globus.html
Command Line Interface (CLI)[edit]
Installing[edit]
The Globus command line interface is a python module which can be installed using pip. Below are the steps to install Globus CLI on one of our clusters.
- Create a virtual environment to install the Globus CLI into (see creating and using a virtual environment).
$ virtualenv $HOME/.globus-cli-virtualenv - Activate the virtual environment
$ source $HOME/.globus-cli-virtualenv/bin/activate - Install Globus CLI into the virtual environment (see installing modules).
$ pip install globus-cli
Note: in the example below, the command-line globus transfer is started on Helix, the interactive data transfer node. However, the transfer to the NIH HPC endpoint ('NIH HPC Data Transfer') will go via the 8 HPC data transfer nodes.
Sample session:
[user@helix ~$ globus login
Please login to Globus here:
---------------------------
https://auth.globus.org/long/globus/URL/
---------------------------
When you point a web browser to the URL that is provided, you will need to authenticate against the NIH domain, with your usual NIH login username and password. You will then see a page like the following
When you click Allow, you will get a page with a long authorization code. Cut-and-paste that code back into your terminal window:
Enter the resulting Authorization Code here: aabbccddeeffgg1122334455
You have successfully logged in to the Globus CLI as username@globusid.org
You can always check your current identity with
globus whoami
Logout of the Globus CLI with
globus logout
[user@biowulf ~]$ globus whoami
user@globusid.org
Depending on how recently you signed up for Globus, the command 'globus whoami' may show you your Globus userid (user@globusid.org) or your NIH userid (user@nih.gov). Once you have logged in to Globus, you can set up transfers. You will need the ID of the endpoint, which you can find using the 'globus endpoint search' command. In the example below, the user obtains a list of NIH endpoints, and then gets a listing of the user's files on one of those endpoints.
[user@biowulf ~]$ globus endpoint search NIH
[user@biowulf ~]$ globus transfer --recursive --no-verify-checksum \
d8eb36b6-6d04-11e5-ba46-22000b92c6ec:/data1/5GB-in-small-files/ \
e2620047-6d04-11e5-ba46-22000b92c6ec:/scratch/$USER/5GB-in-small-files/
Message: The transfer has been accepted and a task has been created and queued for execution
Task ID: 6924b21e-f54b-11e6-ba69-22000b9a448b
You can use the method above in your Biowulf batch scripts, for example, to transfer data at the end of a job. [Example]
'Computer Setup' 카테고리의 다른 글
[HDF5] Trouble shooting (+fortran) (0) | 2021.07.13 |
---|---|
[Jupyter] Shutdown by port number (0) | 2021.07.08 |
[Linux] create separate tar files from multiple folders (files) (0) | 2021.01.19 |
[Mac] ahnlab safe transaction on Mac OSX (0) | 2020.12.18 |
[Git] git merge between master and branches (0) | 2020.10.12 |