我对apache -Airflow非常非常陌生,刚刚开始学习Udemy(this course)的课程.

我们已经收到了YAML文件,并被要求按照说明安装气流. 我相信,我之所以能够安装Airflow,是因为我在执行以下步骤时遇到了任何错误:

  1. 创建新文件new_file.env(Visual Studio)
  2. 在新文件中添加以下行并保存:
AIRFLOW_IMAGE_NAME=apache/airflow:2.3.0
AIRFLOW_UID=50000
  1. 打开终端并运行
docker-compose up -d

然后,当我try 打开本地主机:8080时,什么也没有打开.

当我判断集装箱时,使用

docker-compose ps

我看到一些集装箱是不健康的.

docker logs materials_name_of_the_container #here I inserted every tome different container name

最常见的错误是"无法配置处理程序"处理器"

我在这里看到了推荐使用pip安装Azure的post with similar problem,我try 在终端中打印以下内容:

pip install 'apache-airflow[azure_blob_storage,azure_data_lake,azure_cosmos,azure_container_instances]

#also tried with one more '

pip install 'apache-airflow[azure_blob_storage,azure_data_lake,azure_cosmos,azure_container_instances]'

I got an error that pip is not recognized: enter image description here

My goal is to complete the installation和"在路上",以了解这些错误发生的原因.我相信YAML文件很好(因为它是一个有组织的课程),但不知道容器内发生了什么或发生了什么,以及这些容器位于哪里,so any "dummy" explaination for beginner is welcome.

推荐答案

最后我可以解决这个问题,读了this troubleshooting page.我正在try 配置用户和组,然后我意识到出于某种原因,我的用户不是管理员.我已经改变了它,卸载了所有的东西(docker+VISUAL STUDIO),然后重新安装,然后-耶!它起作用了,并且没有出现这个错误.

所以我所做的这些步骤: ~更换为管理员的第一部分-我昨天已经这样做了,我不记得100%是如何做到的,我想是这样的,如果它是错的,请让我知道…

  1. Enter the users&groups - that was not available in my windows 10, if I remember correct, I have pressed "windows" +"R" on the keyboard, and then I typed "netplwiz" and pressed enter. enter image description here
    2.double click on the username, and this tab was opened:

![enter image description here

  1. select administraor(屏幕显示是在修复之后,所以它可能没有扩展坞选项)

4. restart the computer
5. uninstalled docker and visual studio
6. installed docker and visual studio again
7. docker-compose up -d ....
then after few minutes it worked.

感谢所有试图帮助我的人:)

如果这个答案有什么需要改进的地方,请让我知道.

Python相关问答推荐

在Python中处理大量CSV文件中的数据

抓取rotowire MLB球员新闻并使用Python形成表格

如何使用html从excel中提取条件格式规则列表?

从dict的列中分钟

Pandas—合并数据帧,在公共列上保留非空值,在另一列上保留平均值

driver. find_element无法通过class_name找到元素'""

CommandeError:模块numba没有属性generated_jit''''

如何在PySide/Qt QColumbnView中删除列

处理具有多个独立头的CSV文件

为什么我的sundaram筛这么低效

Pandas—堆栈多索引头,但不包括第一列

如何在FastAPI中替换Pydantic的constr,以便在BaseModel之外使用?'

Python协议不兼容警告

来自Airflow Connection的额外参数

无法在盐流道中获得柱子

如何关联来自两个Pandas DataFrame列的列表项?

将索引表转换为Numy数组

为什么在安装了64位Python的64位Windows 10上以32位运行?

Django查询集-排除True值

如何从具有完整层次数据的Pandas框架生成图形?