Open l1t1 opened 7 months ago
Are datafusion-cli binaries distributed or is it always built from source? My understanding was it was built from source only.
I'd recommend just installing rust by following the directions in the error message. Otherwise if you have docker installed on the aarch64 machine you can build the cli that way. Otherwise you can build the cli on another machine with docker using something like this.
Dockerfile:
FROM --platform=$TARGETPLATFORM rust:1.72-bullseye as builder
COPY . /usr/src/arrow-datafusion
COPY ./datafusion /usr/src/arrow-datafusion/datafusion
COPY ./datafusion-cli /usr/src/arrow-datafusion/datafusion-cli
WORKDIR /usr/src/arrow-datafusion/datafusion-cli
RUN rustup component add rustfmt
RUN cargo build --release
FROM --platform=$TARGETPLATFORM debian:bullseye-slim
COPY --from=builder /usr/src/arrow-datafusion/datafusion-cli/target/release/datafusion-cli /usr/local/bin
ENTRYPOINT ["datafusion-cli"]
CMD ["--data-path", "/data"]
docker buildx create --use
docker buildx build ./ -f ./datafusion-cli/Dockerfile --platform=linux/arm64
The above changes to the Dockerfile and the commands I ran seemed to build both binaries. This may not be ideal though - the build process is horribly slow (~5000s locally) and the image I think may run under emulation which for the CLI may just be fine.
thanks @Omega359
Is your feature request related to a problem or challenge?
when I run pip install, it download the source code, but failed tow compile as my host missing some tools
Describe the solution you'd like
pip install the binary verion
Describe alternatives you've considered
No response
Additional context