HTCondor运行Java文件

 2023-09-05 阅读 20 评论 0

摘要:2019独角兽企业重金招聘Python工程师标准>>> 常规配置######################Example1#ExecuteasingleJavaclass#####################universe=javaexecutable=Hello.classarguments=Hellooutput=Hello.outputerror=Hello.errorqueue 2. 含有文

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

  1. 常规配置

  ###################### Example 1# Execute a single Java class#####################universe       = javaexecutable     = Hello.classarguments      = Hellooutput         = Hello.outputerror          = Hello.errorqueue

2. 含有文件传输的配置

  ###################### Example 1# Execute a single Java class,# not on a shared file system#####################universe       = javaexecutable     = Hello.classarguments      = Hellooutput         = Hello.outputerror          = Hello.errorshould_transfer_files = YESwhen_to_transfer_output = ON_EXITqueue

 应用条件:

If submitting the job where a shared file system is not accessible, the submit description file becomes

3. 含有多个文件传输

For programs that consist of more than one .class file, identify the files in the submit description file:
executable = Stooges.class
transfer_input_files = Larry.class,Curly.class,Moe.class

4. 文件中含有多个Jar包,并且需要必要的文件传输

jar_files  = anexecutable.jar,sortmerge.jar,statemap.jar,commons-lang-2.1.jar
arguments  = some.main.ClassFile
executable = anexecutable.jar

 打包Jar文件时:

% jar cvf Library.jar Larry.class Curly.class Moe.class Stooges.class

编译时:

 java -classpath OneJarFile.jar TheMainClass

5. Java虚拟机约束:

   5.1 Packages

 package hpc;public class CondorDriver{// class definition here}#配置文件
arguments = hpc.CondorDriver

   5.2 JVM version

requirements = (JavaVersion=="3.2")

   5.3Benchmark speeds

requirements = (JavaMFlops>4.5)

 5.4 JVM配置

java_vm_args = -DMyProperty=Value -verbose:gc -Xmx1024m

  详细介绍:http://research.cs.wisc.edu/htcondor/manual/v7.8/2_8Java_Applications.html

转载于:https://my.oschina.net/u/250670/blog/272206

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/4/1765.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息