2017-05-25 58 views
0

我想开始我的气流的网络服务器,但它说,它是无法识别的参数气流:错误:无法识别的参数:网络服务器

$ airflow webserver 
[2017-05-25 15:06:44,682] {__init__.py:36} INFO - Using executor CeleryExecutor 
    ____________  _____________ 
____ |__()_________ __/__ /________  __ 
____ /| |_ /__ ___/_ /_ __ /_ __ \_ | /|// 
___ ___ |/_/ _ __/ _// /_/ /_ |/ |//
_/_/ |_/_/ /_/ /_/ /_/ \____/____/|__/ 

[2017-05-25 15:06:45,099] {models.py:154} INFO - Filling up the DagBag from /home/ec2-user/airflow/dags 
usage: airflow [-h] [-v] 
airflow: error: unrecognized arguments: webserver 

看到,因为大多数的其他参数都太破了,我已经尝试重新安装气流: sudo pip install --upgrade --force-reinstall airflow==1.7.1.3

它工作得很好,直到我决定重新启动它...

回答

0

我想通了,因为我在写这个问题的最后一行。我重新启动,因为我更新了DAG,其中,我又增加了一个ArgumentParser

parser = argparse.ArgumentParser() 
parser.add_argument(
    '-v', '--verbose', 
    help="Print lots of debugging statements", 
    action="store_const", dest="loglevel", const=logging.DEBUG, 
    default=logging.INFO, 
) 

显然未在气流的DAG允许