locked
How to deploy the executable file into Azure cluster? RRS feed

  • Question

  • deployed HPC Pack cluster for Windows workloads with one head node and one compute node for testing from here: https://azuremarketplace.microsoft.com/en-us/marketplace/apps/microsofthpc.newcluster

    I have the executable file and DLL files in my computer. How do I deploy them to my cluster? 

    Saturday, July 29, 2017 11:45 AM

Answers

  • Hi Jack,

      As you only have very few files, the easiest way for you is to:

    - Create an azure file (https://azure.microsoft.com/en-us/services/storage/files/), and you can mount this azure file share in the HPC Pack cluster

    - using azcopy to move your assemblies to azure file from your computer (https://docs.microsoft.com/en-us/azure/storage/storage-use-azcopy)

    - So that you can access your files within the HPC Pack Cluster, you can also mount it through node prep task:

        NodePrep Task commandline: net use z: \\<your_storage_Account>.file.core.windows.net\<AzureFileShare> /u:<your_storage_Account> [storage_key]

        Your real task commandline: z:\myfolder\myapp.exe <myparams>


    Qiufang Shi

    • Marked as answer by Jack_J88 Sunday, July 30, 2017 5:59 PM
    Sunday, July 30, 2017 2:22 AM

All replies

  • Hi Jack,

      As you only have very few files, the easiest way for you is to:

    - Create an azure file (https://azure.microsoft.com/en-us/services/storage/files/), and you can mount this azure file share in the HPC Pack cluster

    - using azcopy to move your assemblies to azure file from your computer (https://docs.microsoft.com/en-us/azure/storage/storage-use-azcopy)

    - So that you can access your files within the HPC Pack Cluster, you can also mount it through node prep task:

        NodePrep Task commandline: net use z: \\<your_storage_Account>.file.core.windows.net\<AzureFileShare> /u:<your_storage_Account> [storage_key]

        Your real task commandline: z:\myfolder\myapp.exe <myparams>


    Qiufang Shi

    • Marked as answer by Jack_J88 Sunday, July 30, 2017 5:59 PM
    Sunday, July 30, 2017 2:22 AM

  • Hi Qiufang, 

    Thank you for your reply. 

    I followed the steps, I believe my files were copied but my exe file does not run correctly, it gives me an error: task failed with exit code 1073741515

    I know this error code basically means there are missing dll files. But if there were missing dll files then even if I run the code through cmd it should not run.

    I have wrote a separate question about this error code and I thought my mistake was that I was not deploying my code correctly into my cluster: 

    https://social.microsoft.com/Forums/en-US/ada3a9d7-6135-4b3b-8aab-90a1465c99ec/apps-run-on-nodes-locally-but-not-on-compute-node-through-hpc-pack-job-manager?forum=windowshpcsched

    Can you please help me resolve this error? 

    Thanks, 

    Jack 

    Sunday, July 30, 2017 5:59 PM
  • Please check related post here: https://social.microsoft.com/Forums/en-US/bab7f21d-c76b-427b-8fdb-849fa55bc32c/exit-code-1073741515?forum=windowshpcmpi

    You need tools to find what your application depends, then pack them together. For example, http://www.dependencywalker.com/


    Qiufang Shi

    Monday, July 31, 2017 12:04 AM
  • I have used dumpbin imports and got these dependencies: 

    VCRUNTIME140.dll

    api-ms-win-crt-runtime-l1-1-0.dll

    api-ms-win-crt-math-l1-1-0.dll

    api-ms-win-crt-stdio-l1-1-0.dll

    api-ms-win-crt-locale-l1-1-0.dll

    api-ms-win-crt-heap-l1-1-0.dll

    KERNEL32.dll

    I copied all of them along my executable file and I am still getting the same error! 

    Thanks, 

    Jack 

    Monday, July 31, 2017 1:45 PM
  • Hi Jack,

      there will be other dependencies by the dll you depends. You may install vcruntime on the node, and you also need to install packages that include those "api-ms-win-crt-xxx.dll".


    Qiufang Shi

    Tuesday, August 1, 2017 12:09 AM
  • Hi Qiufang,

    Thank you. I will work on that. 

    Tuesday, August 1, 2017 5:49 AM