尝试为气流做出贡献,但无法在Ubuntu 16.0.4上运行并运行。 kerbos正在发生一些事情。
https://github.com/apache/incubator-airflow
py34-hdp-airflow_backend_postgres runtests: commands[2] | sudo /home/dalupus/incubator-airflow/scripts/ci/setup_kdc.sh
WARNING:test command found but not installed in testenv
cmd: /usr/bin/sudo
env: /home/dalupus/incubator-airflow/.tox/py34-hdp-airflow_backend_postgres
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.
127.0.0.1 localhost
127.0.1.1 ubuntu
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
hostname: ubuntu
Loading random data
Initializing database '/etc/krb5kdc/principal' for realm 'TEST.LOCAL',
master key name 'K/M@TEST.LOCAL'
You will be prompted for the database Master Password.
It is important that you NOT FORGET this password.
Enter KDC database master key:
Re-enter KDC database master key to verify:
kdb5_util: File exists while creating database '/etc/krb5kdc/principal'
Authenticating as principal root/admin@TEST.LOCAL with password.
WARNING: no policy specified for admin/admin@TEST.LOCAL; defaulting to no policy
Enter password for principal "admin/admin@TEST.LOCAL":
Re-enter password for principal "admin/admin@TEST.LOCAL":
add_principal: Principal or policy already exists while creating "admin/admin@TEST.LOCAL".
Authenticating as principal root/admin@TEST.LOCAL with password.
WARNING: no policy specified for airflow@TEST.LOCAL; defaulting to no policy
add_principal: Principal or policy already exists while creating "airflow@TEST.LOCAL".
Authenticating as principal root/admin@TEST.LOCAL with password.
WARNING: no policy specified for airflow/ubuntu@TEST.LOCAL; defaulting to no policy
add_principal: Principal or policy already exists while creating "airflow/ubuntu@TEST.LOCAL".
Authenticating as principal root/admin@TEST.LOCAL with password.
Usage: ktadd [-k[eytab] keytab] [-q] [-e keysaltlist] [-norandkey] [principal | -glob princ-exp] [...]
Authenticating as principal root/admin@TEST.LOCAL with password.
Usage: ktadd [-k[eytab] keytab] [-q] [-e keysaltlist] [-norandkey] [principal | -glob princ-exp] [...]
chmod: missing operand after ‘664’
Try 'chmod --help' for more information.
ERROR: InvocationError: '/usr/bin/sudo /home/dalupus/incubator-airflow/scripts/ci/setup_kdc.sh'
不确定从哪里开始。我想我已经安装了所有的代码。
答案 0 :(得分:1)
脚本sudo
在sudo
下运行,${KRB5_KTNAME}
清除环境变量,因此未定义sudo
。
tox.ini
中使用了命令tox
,但sudo
在虚拟环境中找不到它(当然它没有 - tox.ini
是系统命令不应该安装在venv中。)该命令必须在[testenv]
部分的[testenv]
whitelist_externals =
sudo
中列入白名单:
airflow
这些是{{1}}中的错误,请向他们发送拉取请求或错误报告。