srinathtcs1993 opened a new issue, #35072:
URL: https://github.com/apache/arrow/issues/35072

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   I am trying to add pyarrow to my docker file as a dependency. I am getting 
an issue as below
   
   CMake Error at thrift_ep-stamp/thrift_ep-download-RELEASE-impl.cmake:9 
(message):
     Command failed (1):
   
      '/usr/bin/cmake' '-P' 
'/arrow/cpp/build/thrift_ep-prefix/src/thrift_ep-stamp/download-thrift_ep.cmake'
   
   make[2]: *** [CMakeFiles/thrift_ep.dir/build.make:99: 
thrift_ep-prefix/src/thrift_ep-stamp/thrift_ep-download] Error 1
   make[1]: *** [CMakeFiles/Makefile2:828: 
CMakeFiles/thrift_ep.dir/all] Error 2
   make[1]: *** Waiting for unfinished jobs....
   -- zstd_ep build command succeeded.  See also 
/arrow/cpp/build/zstd_ep-prefix/src/zstd_ep-stamp/zstd_ep-build-*.log
   [ 16%] Performing install step for 'zstd_ep'
   -- zstd_ep install command succeeded.  See also 
/arrow/cpp/build/zstd_ep-prefix/src/zstd_ep-stamp/zstd_ep-install-*.log
   [ 16%] Completed 'zstd_ep'
   [ 16%] Built target zstd_ep
   make: *** [Makefile:146: all] Error 2
   The command '/bin/sh -c mkdir /arrow     && wget -q 
[https://github.com/apache/arrow/archive/apache-arrow-${ARROW_VERSION}.tar.gz](https://github.com/apache/arrow/archive/apache-arrow-$%7BARROW_VERSION%7D.tar.gz)
 -O /tmp/apache-arrow.tar.gz     && echo "${ARROW_SHA1} *apache-arrow.tar.gz" | 
sha1sum /tmp/apache-arrow.tar.gz     && tar -xvf /tmp/apache-arrow.tar.gz -C 
/arrow --strip-components 1     && mkdir -p /arrow/cpp/build     && cd 
/arrow/cpp/build     && cmake -DCMAKE_BUILD_TYPE=$ARROW_BUILD_TYPE         
-DOPENSSL_ROOT_DIR=/usr/local/ssl         -DCMAKE_INSTALL_LIBDIR=lib         
-DCMAKE_INSTALL_PREFIX=$ARROW_HOME         -DARROW_WITH_BZ2=ON         
-DARROW_WITH_ZLIB=ON         -DARROW_WITH_ZSTD=ON         -DARROW_WITH_LZ4=ON   
      -DARROW_WITH_SNAPPY=ON         -DARROW_PARQUET=ON         
-DARROW_PYTHON=ON         -DARROW_PLASMA=ON         -DARROW_BUILD_TESTS=OFF     
    ..     && make -j$(nproc)     && make install     && cd /arrow/python     
&& python setup.py build_e
 xt --build-type=$ARROW_BUILD_TYPE --with-parquet     && python setup.py 
install     && rm -rf /arrow /tmp/apache-arrow.tar.gz' returned a non-zero 
code: 2
   
   
   
   This is my docker build file code
   
   
   FROM python:3.8-alpine3.16
   
   RUN apk update \
       && apk upgrade \
       && apk add --no-cache build-base \
           autoconf \
           bash \
           bison \
           boost-dev \
           cmake \
           flex \
           libressl-dev \
           zlib-dev
   RUN apk upgrade expat
   
   RUN pip install --no-cache-dir six numpy cython
   
   ARG ARROW_VERSION=3.0.0
   ARG ARROW_SHA1=c1fed962cddfab1966a0e03461376ebb28cf17d3
   ARG ARROW_BUILD_TYPE=release
   
   ENV ARROW_HOME=/usr/local \
       PARQUET_HOME=/usr/local
   
   #Download and build apache-arrow
   RUN mkdir /arrow \
       && wget -q 
https://github.com/apache/arrow/archive/apache-arrow-${ARROW_VERSION}.tar.gz -O 
/tmp/apache-arrow.tar.gz \
       && echo "${ARROW_SHA1} *apache-arrow.tar.gz" | sha1sum 
/tmp/apache-arrow.tar.gz \
       && tar -xvf /tmp/apache-arrow.tar.gz -C /arrow --strip-components 1 \
       && mkdir -p /arrow/cpp/build \
       && cd /arrow/cpp/build \
       && cmake -DCMAKE_BUILD_TYPE=$ARROW_BUILD_TYPE \
           -DOPENSSL_ROOT_DIR=/usr/local/ssl \
           -DCMAKE_INSTALL_LIBDIR=lib \
           -DCMAKE_INSTALL_PREFIX=$ARROW_HOME \
           -DARROW_WITH_BZ2=ON \
           -DARROW_WITH_ZLIB=ON \
           -DARROW_WITH_ZSTD=ON \
           -DARROW_WITH_LZ4=ON \
           -DARROW_WITH_SNAPPY=ON \
           -DARROW_PARQUET=ON \
           -DARROW_PYTHON=ON \
           -DARROW_PLASMA=ON \
           -DARROW_BUILD_TESTS=OFF \
           .. \
       && make -j$(nproc) \
       && make install \
       && cd /arrow/python \
       && python setup.py build_ext --build-type=$ARROW_BUILD_TYPE 
--with-parquet \
       && python setup.py install \
       && rm -rf /arrow /tmp/apache-arrow.tar.gz
   
   
   kindly let me know what changes should I do to add pyarrow as a dependency 
to docker file
   
   ### Component(s)
   
   Python


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to