在Azure Batch Service上运行Java Jar应用程序 [英] Running a Java Jar application on Azure Batch Service

查看:125
本文介绍了在Azure Batch Service上运行Java Jar应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Azure数据工厂管道上的Azure批处理服务上运行自定义Java Jar应用程序。为此,我创建了一个Java Jar文件并上传到Azure Blob存储,批处理服务指向该文件。


我正在传递以下命令以在Azure批处理池上运行Jar:


" java -jar exceltocsv-1.0-SNAPSHOT.jar"和管道运行给出错误: " 系统找不到指定的文件


我也尝试了以下命令:


cmd / c"java -jar exceltocsv-1.0-SNAPSHOT.jar


并得到同样的错误:  系统找不到指定的文件



对此有任何帮助表示赞赏。



完整错误:


{

    "exitcode":null,

    "输出":[

        " https://sourcefincrime.blob.core.windows.net/adfjobs/8bc3e97a-e645-435c-96da-513c2bdbb44f/output/stdout.txt" ;,

        " https://sourcefincrime.blob.core.windows.net/adfjobs/8bc3e97a-e645-435c-96da-513c2bdbb44f/output/stderr.txt"

    ],
    " errorCategory":0,

    "code":"CommandProgramNotFound","
    " message":"找不到指定的命令程序",

    "详情":[

        {

            "姓名":"CommandLine","
            " Value":" cmd / c \" java -jar exceltocsv-1.0-SNAPSHOT.jar \""

        },b $ b        {

            "姓名":"消息","
            "值":"系统无法找到指定的文件"


        }¥b $ b    ],
    " computeInformation":" {\" account \":\" batchservicefincrime \",\" poolName \":\" MyBatchPool \",\ " vmSize \":\" standard_a1 \"}",

    "effectiveIntegrationRuntime":" DefaultIntegrationRuntime(Southeast Asia)",
    " executionDuration":30954

}



解决方案

您好Pushpraj,


您可以尝试使用jar文件的完整路径吗?


在添加资源文件时,您将获得文件必须下载的路径。


试试这个并告诉我。


I am trying to run a custom Java Jar application on Azure Batch Service on Azure Data Factory Pipeline. For this I have created a Java Jar file and uploaded on Azure Blob Storage, which is being pointed to by Batch Service.

I am passing following command to run the Jar on Azure Batch Pool:

"java -jar exceltocsv-1.0-SNAPSHOT.jar" and pipeline run giving error: "The system cannot find the file specified

I also tried following command:

cmd /c "java -jar exceltocsv-1.0-SNAPSHOT.jar

and got same error: The system cannot find the file specified

Any help on this is appreciated.

Complete error:

{
    "exitcode": null,
    "outputs": [
        "https://sourcefincrime.blob.core.windows.net/adfjobs/8bc3e97a-e645-435c-96da-513c2bdbb44f/output/stdout.txt",
        "https://sourcefincrime.blob.core.windows.net/adfjobs/8bc3e97a-e645-435c-96da-513c2bdbb44f/output/stderr.txt"
    ],
    "errorCategory": 0,
    "code": "CommandProgramNotFound",
    "message": "The specified command program is not found",
    "details": [
        {
            "Name": "CommandLine",
            "Value": "cmd /c \"java -jar exceltocsv-1.0-SNAPSHOT.jar\""
        },
        {
            "Name": "Message",
            "Value": "The system cannot find the file specified"
        }
    ],
    "computeInformation": "{\"account\":\"batchservicefincrime\",\"poolName\":\"MyBatchPool\",\"vmSize\":\"standard_a1\"}",
    "effectiveIntegrationRuntime": "DefaultIntegrationRuntime (Southeast Asia)",
    "executionDuration": 30954
}

解决方案

Hi Pushpraj,

Can you try with the full path of the jar file?

While adding the resource file you would have given the path to which the file has to be downloaded.

Try this out and let me know.


这篇关于在Azure Batch Service上运行Java Jar应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆