嗨,我正在尝试利用处理流水线,该处理流水线使用slurm在多个计算机群集上运行,但是我更希望在单个计算机上运行它。我在Ubuntu 18上并安装了slurm-wlm,但是我无法通过管道在线读取由Slurm版本18.08配置工具制作的slurm.conf文件,目标是将此文件作为一个节点运行,因此我不必重写管道代码。
每次尝试运行此管道sh脚本时,日志文件都会出现此错误
sbatch:错误:_parse_next_key:在无法识别的密钥处解析错误:SlurmctldHost sbatch:错误:分析文件/etc/slurm-llnl/slurm.conf中的错误,第2行:“ SlurmctldHost = charlie-Z370M-D3H” sbatch:致命:无法处理配置文件
charlie-Z370M-D3H是主机名
下面是我的slurm.conf文本,希望有人能看到我需要做些什么才能使它工作
#
SlurmctldHost=charlie-Z370M-D3H
#SlurmctldHost=
#
#DisableRootJobs=NO
#EnforcePartLimits=NO
#Epilog=
#EpilogSlurmctld=
#FirstJobId=1
#MaxJobId=999999
#GresTypes=
#GroupUpdateForce=0
#GroupUpdateTime=600
#JobFileAppend=0
#JobRequeue=1
#JobSubmitPlugins=1
#KillOnBadExit=0
#LaunchType=launch/slurm
#Licenses=foo*4,bar
#MailProg=/bin/mail
#MaxJobCount=5000
#MaxStepCount=40000
#MaxTasksPerNode=128
MpiDefault=none
#MpiParams=ports=#-#
#PluginDir=
#PlugStackConfig=
#PrivateData=jobs
ProctrackType=proctrack/cgroup
#Prolog=
#PrologFlags=
#PrologSlurmctld=
#PropagatePrioProcess=0
#PropagateResourceLimits=
#PropagateResourceLimitsExcept=
#RebootProgram=
ReturnToService=1
#SallocDefaultCommand=
SlurmctldPidFile=/var/run/slurmctld.pid
SlurmctldPort=6817
SlurmdPidFile=/var/run/slurmd.pid
SlurmdPort=6818
SlurmdSpoolDir=/var/spool/slurmd
SlurmUser=slurm
#SlurmdUser=root
#SrunEpilog=
#SrunProlog=
StateSaveLocation=/var/spool
SwitchType=switch/none
#TaskEpilog=
TaskPlugin=task/affinity
TaskPluginParam=Sched
#TaskProlog=
#TopologyPlugin=topology/tree
#TmpFS=/tmp
#TrackWCKey=no
#TreeWidth=
#UnkillableStepProgram=
#UsePAM=0
#
#
# TIMERS
#BatchStartTimeout=10
#CompleteWait=0
#EpilogMsgTime=2000
#GetEnvTimeout=2
#HealthCheckInterval=0
#HealthCheckProgram=
InactiveLimit=0
KillWait=30
#MessageTimeout=10
#ResvOverRun=0
MinJobAge=300
#OverTimeLimit=0
SlurmctldTimeout=120
SlurmdTimeout=300
#UnkillableStepTimeout=60
#VSizeFactor=0
Waittime=0
#
#
# SCHEDULING
#DefMemPerCPU=0
FastSchedule=1
#MaxMemPerCPU=0
#SchedulerTimeSlice=30
SchedulerType=sched/backfill
SelectType=select/cons_res
SelectTypeParameters=CR_Core
#
#
# JOB PRIORITY
#PriorityFlags=
#PriorityType=priority/basic
#PriorityDecayHalfLife=
#PriorityCalcPeriod=
#PriorityFavorSmall=
#PriorityMaxAge=
#PriorityUsageResetPeriod=
#PriorityWeightAge=
#PriorityWeightFairshare=
#PriorityWeightJobSize=
#PriorityWeightPartition=
#PriorityWeightQOS=
#
#
# LOGGING AND ACCOUNTING
#AccountingStorageEnforce=0
#AccountingStorageHost=
#AccountingStorageLoc=
#AccountingStoragePass=
#AccountingStoragePort=
AccountingStorageType=accounting_storage/none
#AccountingStorageUser=
AccountingStoreJobComment=YES
ClusterName=cluster
#DebugFlags=
#JobCompHost=
#JobCompLoc=
#JobCompPass=
#JobCompPort=
JobCompType=jobcomp/none
#JobCompUser=
#JobContainerType=job_container/none
JobAcctGatherFrequency=30
JobAcctGatherType=jobacct_gather/none
SlurmctldDebug=3
#SlurmctldLogFile=
SlurmdDebug=3
#SlurmdLogFile=
#SlurmSchedLogFile=
#SlurmSchedLogLevel=
#
#
# POWER SAVE SUPPORT FOR IDLE NODES (optional)
#SuspendProgram=
#ResumeProgram=
#SuspendTimeout=
#ResumeTimeout=
#ResumeRate=
#SuspendExcNodes=
#SuspendExcParts=
#SuspendRate=
#SuspendTime=
#
#
# COMPUTE NODES
NodeName=linux[1-32] CPUs=1 State=UNKNOWN
PartitionName=debug Nodes=linux[1-32] Default=YES MaxTime=INFINITE State=UP
答案 0 :(得分:0)
我遇到了同样的问题,事实证明在该网页上生成的conf文件仅对18.08有效 如果查看创建slurm.conf文件的网页,您可能会注意到它仅对版本18.08有效。 因此,请确认您的SLURM版本至少为18.x,因为conf文件中的键“ SlurmctldHost”是随后引入的。
您可以通过简单键入“ dpkg -l | grep slurm”并记下已安装的版本来验证SLURM的版本。对于Ubuntu 18.x,安装的默认软件包为slurm-version 17.11.9。 (您可能必须通过选择已安装的版本从https://www.schedmd.com/archives.php下载源代码,并将其下载到本地计算机上。
将其解压缩并查看“ / doc / html /”-dir,您将在其中找到与您的版本相对应的configurator-html-script。)如果您的版本是17.11.9,则“ SlurmctldHost”的相应键(如18.08中所述)在版本17.11.9中是“ ControlMachine”。因此,请在本地slurm-doc-dir中使用configurator-html-script为生成的slurm版本生成有效的slurm.conf。 我做到了,而且效果很好。