簡體   English   中英

HTCondor Python API

[英]HTCondor Python API

我正在嘗試使用python API從未安裝神鷹的機器上提交作業,這給我帶來了很多麻煩。

我做了'pip install htcondor',導入時我得到:

>>> import htcondor

Neither the environment variable CONDOR_CONFIG,
/etc/condor/, /usr/local/etc/, nor ~condor/ contain a condor_config source.
Either set CONDOR_CONFIG to point to a valid config source,
or put a "condor_config" file in /etc/condor/ /usr/local/etc/ or ~condor/

這是什么問題? 要從這樣的客戶端計算機上使用API​​,我必須安裝和配置完善的神鷹嗎? 我認為那不是必要的。

無論如何,我踩了一下,然后嘗試了一下:

>>> coll = htcondor.Collector("192.168.10.2")
>>> ads = coll.query(htcondor.AdTypes.Startd)
12/17/17 13:12:36 ERROR "Unwilling or unable to try IPv4 or IPv6.
Check the settings ENABLE_IPV4, ENABLE_IPV6, and NETWORK_INTERFACE.
" at line 1212 in file
/var/lib/condor/execute/slot1/dir_5110/htcondor_source/src/condor_io/sock.cpp

我在這里做錯了什么?

我通過創建一個空文件並指向CONDOR_CONFIG來解決這個問題,例如:

touch condor_config
export CONDOR_CONFIG=`pwd`/condor_config

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM