Changeset d720895 in flex_extract.git for Documentation/html/_sources/Installation/gateway.rst.txt
- Timestamp:
- Dec 19, 2019, 8:12:11 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- e70c85f
- Parents:
- 76c37a9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Documentation/html/_sources/Installation/gateway.rst.txt
r30f7911 rd720895 8 8 .. toctree:: 9 9 :hidden: 10 :maxdepth: 310 :maxdepth: 2 11 11 12 12 .. _Python 3: https://docs.python.org/3/ … … 43 43 .. _ref-req-gateway: 44 44 45 Gateway environment requirements46 =========================== =====45 Gateway mode - dependencies 46 =========================== 47 47 48 The environment on your local system has to provide these software packages 49 and libraries, since ``flex_extract`` does only prepare the job script and send 50 it to the ECMWF servers: 51 52 * `Python3`_ or `Anaconda Python3`_ 48 * `Python3`_ 53 49 * `numpy`_ 54 50 * `genshi`_ … … 60 56 =========================== 61 57 62 The easiest way to install all required packages is to use the package management system of your Linux distribution. To do so, it is necessary to use a user with admin rights. 63 The installation was tested on a *GNU/Linux Debian buster* and an *Ubuntu 18.04 Bionic Beaver* system. 58 In this mode, access to the ECMWF computing and archiving facilities is enabled through an ECaccess gateway server on a local member state server. The ECaccess framework is necessary to interactively submit jobs to the ECMWF batch system and to transfer files between ECMWF and local gateway server. 59 60 Please see `ECMWF's instructions on gateway server`_ to establish the gateway server if not already in place. Additionally, to be able to use the ECaccess file transfer service **ectrans** it is necessary to create a so-called association. The easiest way is to visit the ECaccess Member State Gateway website (e.g. https://msgatway.ecmwf.int) and follow the instructions in the short `ECaccess Presentation`_ (page 17 ff.). Additional documentation can be found on the `ECMWF ectrans site`_. 61 62 The next step is to create an *ecaccess certificate* to be able to send and receive files from and to the ECMWF server. You can do this by using the ``ecaccess-certificate-create`` command on the gateway server. You will be prompted for your ECMWF member state user name and a password (generated by a token). This certificate has to be renewed periodically (every 7 days). 63 64 65 .. code-block:: bash 66 67 $ ecaccess-certificate-create 68 Please enter your user-id: example_username 69 Your passcode: *** 70 71 72 73 The easiest way to install all required packages is to use the package management system of your Linux distribution which required admin rights. 74 The installation was tested under *GNU/Linux Debian buster* and *Ubuntu 18.04 Bionic Beaver*. 64 75 65 76 .. code-block:: sh 66 77 67 # On a Linux Debian or Ubuntu system do 78 79 # On a Debian or Debian-derived sytem (e. g. Ubuntu) system you may use the following commands (or equivalent commands of your preferred package manager): 68 80 # (if not already available): 69 81 apt-get install python3 70 apt-get install pip 71 apt-get install genshi 72 apt-get install numpy 73 82 apt-get install python3-genshi 83 apt-get install python3-numpy 84 74 85 75 86 .. _ref-test-gateway: … … 77 88 Test gateway environment 78 89 ======================== 79 90 80 91 Check the availability of the python packages by typing ``python3`` in 81 92 a terminal window and run the ``import`` commands in the python shell. 82 93 If there are no error messages, you succeeded in setting up the environment. 83 94 84 95 .. code-block:: python 85 96 … … 95 106 ==================== 96 107 97 In this mode, access to the ECMWF computing and archiving facilities is enabled through an ECaccess gateway server on a local member state server. The ECaccess framework is necessary to interactively submit jobs to the ECMWF batch system and to transfer files between ECMWF and local gateway server. 98 99 Please see `ECMWF's instructions on gateway server`_ to establish the gateway server if not already in place. 100 Additionally, to be able to use the Ecaccess file transfer service **ectrans** please also create an association. 101 The easiest way is to visit the ECaccess Member State Gateway website (e.g. msgatway.ecmwf.int) and follow the instructions in the short `ECaccess Presentation`_ (page 17 ff.). Additional documentation can be found on the `ECMWF ectrans site`_. 102 103 After everything is set up you have to create an *ecaccess certificate* to be able to send and receive files from and to the ECMWF server. You can do this by using the ``ecaccess-certificate-create`` command on the gateway server. You will be prompted for your ECMWF member state user name and a password (which will be usually generated by a Token). This certificate has to be re-newed periodically (every 7 days). 104 105 .. code-block:: bash 108 ``Flex_extract`` will be run on an ECMWF server which makes the setup the same as for the **remote mode**. In the ``setup.sh`` script `[ref] <Documentation/Input/setup.html>`_, select the ``makefile.gfortran`` for the ``CONVERT2`` Fortran program and the ECMWF server (*target*) you would like to use. 109 The job script, send to the job queue via the ECaccess software, loads the required modules from the module system. For enabling the file transfer via the gateway, you have to set the *ECUID*, *ECGID*, *GATEWAY* and *DESTINATION* parameter values. 106 110 107 $ ecaccess-certificate-create108 Please enter your user-id: example_username109 Your passcode: ***110 111 ``Flex_extract`` will be run on an ECMWF server which makes the setup the same as for the **remote mode**. In the ``setup.sh`` script `[ref] <Documentation/Input/setup.html>`_, select the ``Makefile.gfortran`` for the ``CONVERT2`` Fortran program and the ECMWF server (*target*) you would like to use.112 The job script, send to the job queue via the ECaccess software, selects again automatically the correct libraries from the module system. For enableing the file transfer you have to set the *ECUID*, *ECGID*, *GATEWAY* and *DESTINATION* parameter values.113 114 111 115 112 .. code-block:: bash … … 123 120 # 124 121 TARGET='ecgate' 125 MAKEFILE=' Makefile.gfortran'122 MAKEFILE='makefile.gfortran' 126 123 ECUID='uid' 127 124 ECGID='gid' 128 GATEWAY=' server.example.edu'129 DESTINATION=' example@genericSftp'125 GATEWAY='localserver.tld' 126 DESTINATION='association_name@genericSftp' 130 127 INSTALLDIR=None 131 128 JOB_TEMPLATE='job.template' … … 139 136 $ ./setup.sh 140 137 141 to start the installation. You should see the following o utput at the command line.138 to start the installation. You should see the following on standard output. 142 139 143 140 … … 149 146 You should get an email with subject "flexcompile" within the next few minutes! 150 147 151 152 The email content should look like this with a "SUCCESS" statement in the last line: 148 ``Flex_extract`` uses the email address connectd to the user account on ECMWF servers. The email content should look like this with a "SUCCESS" statement in the last line: 153 149 154 150 .. code-block:: bash
Note: See TracChangeset
for help on using the changeset viewer.