This is an old revision of the document!


This is a list of frequently asked questions by an administrator when using HPC Gateway. This list is not exhaustive and will be enhanced based on the returns of HPC Gateway usage. It is highly recommended that you build and share your own faq wiki page in your local area for your administrators as well.

You can also consult the User's Frequently Asked Questions.



Question: How to export an HPC Gateway application wrapper

  • Connect with SSH or the remote terminal on the HPC Gateway head node
  • Use hpcg_app_list.py to list all applications available
  • Use hpcg_app_export.py <uid> to export the application into <uid> directory
  • Build a zip file with the content of the directory ( excluding the directory name )


$ hpcg_app_export.py 
Help on module hpcg_app_export:

NAME
    hpcg_app_export - Export an application from the database

FILE
    /opt/hpcg/core/sys/hpcg_app_export.py

DESCRIPTION
    Export an application from the database into a directory on disk. The directory name is the application id.
    
    Usage: hpcg_app_export.py application_id

DATA
    __author__ = 'fujitsu'

AUTHOR
    fujitsu


$ hpcg_app_list.py 
 + Job Submitter - 1.0.0 - 560264bd6eea4a47a1e29043
      [{u'id': u'574d9f576eea4a3e55279663', u'name': u'hpcgadmin'}]
      applications/560264bd6eea4a47a1e29043/app_execute (30 bytes)
      applications/560264bd6eea4a47a1e29043/JobSubmitter (0 bytes)
      applications/560264bd6eea4a47a1e29043/clusters/rnd01 (41 bytes)
...

$ hpcg_app_export.py 560264bd6eea4a47a1e29043
2016/06/28 15:54:00 - INFO  - Export application Job Submitter - 1.0.0 - 560264bd6eea4a47a1e29043
finished writing to: ./560264bd6eea4a47a1e29043/app_execute
finished writing to: ./560264bd6eea4a47a1e29043/JobSubmitter
finished writing to: ./560264bd6eea4a47a1e29043/clusters/rnd01

$ ls -lR 560264bd6eea4a47a1e29043
560264bd6eea4a47a1e29043:
total 12
-rw-r--r-- 1 hpcgadmin hpcgadmin    0 Jun 28 15:54 JobSubmitter
-rw-r--r-- 1 hpcgadmin hpcgadmin   30 Jun 28 15:54 app_execute
drwxr-xr-x 2 hpcgadmin hpcgadmin 4096 Jun 28 15:54 clusters
-rw-r--r-- 1 hpcgadmin hpcgadmin  979 Jun 28 15:54 definition.json

560264bd6eea4a47a1e29043/clusters:
total 4
-rw-r--r-- 1 hpcgadmin hpcgadmin 41 Jun 28 15:54 rnd01


$ cd 560264bd6eea4a47a1e29043
$ zip -r ../myapp.zip .



Question: How to import an HPC Gateway application wrapper

  • Connect with SSH or the remote terminal on the HPC Gateway head node
  • Use hpcg_app_import.py <zip_file> to import the application wrapper


$ hpcg_app_import.py
Help on module hpcg_app_import:

NAME
    hpcg_app_import - Import an application into the database

FILE
    /opt/hpcg/core/sys/hpcg_app_import.py

DESCRIPTION
    Import an application into the database from a directory or a package on disk.
    
    Usage: hpcg_app_import.py  directory | zip file

DATA
    __author__ = 'fujitsu'

AUTHOR
    fujitsu


$ hpcg_app_import.py  myapp.zip