'Setting up Airflow with Docker

I am trying to setup Airflow via Docker on AWS EC2 Linux 2. I am referencing this blog: https://towardsdatascience.com/setting-up-apache-airflow-2-with-docker-e5b974b37728 .

I have changed the environment variable files by changing IP, db password and admin credentials (view file path setup below)

enter image description here

And I ran: sudo docker stack deploy -c docker-compose.yaml airflow

But I get the following error:

    Updating service airflow_server (id: gat4to...)
image airflow2-docker:1.0.0 could not be accessed on a registry to record
its digest. Each node will access airflow2-docker:1.0.0 independently,
possibly leading to different nodes running different
versions of the image.

After researching online, I am not clear as to what exactly a next step would be to solve this.



Solution 1:[1]

If we need to take the sequence from corresponding elements, use Map

Map(function(i, j) plot(likert(data.likert[, i:j])),
      c(1, 6, 11, 16), c(5, 10, 15, 20))

NOTE: In the OP's dput dataset, there are only 15 columns (assuming that it is just a subset of the original data)


Or the same in a for loop would be to create two vector sequence and loop over the sequence of one of the vectors, get the vector values based on the sequence index, return the sequence (:), extract the columns, apply likert and plot

v1 <- c(1, 6, 11, 16)
v2 <- c(5, 10, 15, 20)
for(i in seq_along(v1)) {
    print(plot(likert(data.likert[, v1[i]:v2[i])))
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 akrun