| 396 | For esgprep and esgpublish to be available, execute {{{source /etc/esg.env}}}. |
| 397 | |
| 398 | {{{ |
| 399 | [root@spock ~]# esgprep mapfile --project test /esg/data/test/ |
| 400 | Collecting files : 1 files |
| 401 | Mapfile(s) generation: 100% |████████████████████████████████████████████████████████████| 1/1 files |
| 402 | Mapfile(s) generated : 1 (see /root/mapfiles) |
| 403 | }}} |
| 404 | |
| 405 | {{{ |
| 406 | [root@spock ~]# esgpublish --service fileservice --map mapfiles/test.test.map --project test --thredds --publish --offline |
| 407 | INFO 2017-06-02 14:59:48,405 Replacing files in dataset: test.test, version 1 |
| 408 | INFO 2017-06-02 14:59:48,413 File /esg/data/test/sftlf.nc exists, skipping |
| 409 | INFO 2017-06-02 14:59:48,416 New dataset version = 2 |
| 410 | INFO 2017-06-02 14:59:48,430 Adding file info to database |
| 411 | INFO 2017-06-02 14:59:48,469 Writing THREDDS catalog /esg/content/thredds/esgcet/1/test.test.v2.xml |
| 412 | INFO 2017-06-02 14:59:48,522 Writing THREDDS ESG master catalog /esg/content/thredds/esgcet/catalog.xml |
| 413 | INFO 2017-06-02 14:59:48,533 Reinitializing THREDDS server |
| 414 | INFO 2017-06-02 14:59:48,830 Publishing: test.test |
| 415 | INFO 2017-06-02 14:59:49,871 Result: SUCCESSFUL |
| 416 | }}} |
| 417 | |
| 418 | Notes: |
| 419 | |
| 420 | 1. --map must point to the file generated by esgprep mapfile |
| 421 | 2. --thredds publish data to the data node |
| 422 | 3. --publish publish data to the index node |
| 423 | 4. --offline is required for publish the test dataset (Why?) |
| 424 | |