Skip to content

Install apache-airflow-providers-apache-hive==6.1.0 error #31797

@tritm94

Description

@tritm94

Apache Airflow version

2.6.1

What happened

Install apache-airflow-providers-apache-hive version 6.1.0 by DockerFile but I got error

What you think should happen instead

error: command 'gcc' failed: Permission denied

How to reproduce

from airflow.providers.apache.hive.operators.hive import HiveOperator

Operating System

Python

Versions of Apache Airflow Providers

2.6.1

Deployment

Docker-Compose

Deployment details

This is my DockerFile script:

FROM apache/airflow:2.6.1-python3.8

USER root
RUN apt-get update
&& apt-get install -y --no-install-recommends
openjdk-11-jdk
&& apt-get autoremove -yqq --purge
&& apt-get clean
&& rm -rf /var/lib/apt/lists/* docker-context-files/.whl docker-context-files/.tar.gz docker-context-files/*.txt || true

ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

RUN usermod -g 0 airflow

USER airflow

COPY requirement.txt /requirement.txt

RUN pip3 install --user --upgrade pip
RUN pip install --user --no-cache-dir apache-airflow-upgrade-check

RUN pip install --no-cache-dir --user -r /requirement.txt

RUN pip install --user --no-cache-dir wheel setuptools --upgrade
RUN pip install --user --no-cache-dir "apache-airflow==${AIRFLOW_VERSION}" apache-airflow-providers-apache-hive==6.1.0
RUN pip install --user --no-cache-dir "apache-airflow==${AIRFLOW_VERSION}" apache-airflow-providers-apache-spark==4.1.0
RUN pip install --user --no-cache-dir "apache-airflow==${AIRFLOW_VERSION}" apache-airflow-providers-apache-sqoop

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions