python - luigi 配置文件在哪里?

标签 python luigi

我已经通过 pip 命令安装了 luigi,我想更改 Web UI 的端口。我试图找到配置文件,但找不到。我需要创建一个吗?

最佳答案

您可以使用 --port 选项启动 luigid。

luigid --port 80

配置文件位置是:

  • /etc/luigi/luigi.cfg
  • luigi.cfg(或其旧名称 client.cfg)在 你当前的工作目录
  • LUIGI_CONFIG_PATH 环境变量

按优先顺序递增。您确实需要创建一个。例如,

[core]
default-scheduler-host=www.example.com
default-scheduler-port=8088

关于python - luigi 配置文件在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44065504/

相关文章:

python - 为什么 urllib.urlopen() 只工作一次? - Python

python - 为什么类中需要 Thread.__init__() ?

Python、numpy、einsum 将一叠矩阵相乘

python - 如何重置 luigi 任务状态?

python - 转换列表中的二进制文件(python)

java - 如何从 Python 与 Java 交互

python - 尝试执行 luigi 任务时如何修复 "luigi.worker.TaskException: Can not schedule non-task <class ' __main__.Task'>"?

python - Luigi : The task does not fail even if in the run() method , 我执行了一个不存在的文件

python - 如何使用 Luigi 持续更新目标文件?

python - 使用 Luigi python 运行 Hadoop jar