[ 
https://issues.apache.org/jira/browse/ARROW-12086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308957#comment-17308957
 ] 

Daniel Blumenfeld commented on ARROW-12086:
-------------------------------------------

Sorry I was not clear.
What I mean is this:

In order to try the changes, I cut and pasted into my copy;
Then, I deleted all files under the arrow/cpp/debug folder;
Then, I repeated the cmake command;
Then, I repeated the make command.

It didn't work.

My assumption about why it didn't work is that this offline feature assumes
that the machine, besides having the environment variables set, needs to be
disconnected from the internet. I don't know where the point is where it
tests this condition.

Now, what happens if the machine is not offline (so the url
https://github.com/JuliaStrings/utf8proc/archive/v2.5.0.tar.gz is visible)
but the firewall does not allow the application to download it, so it goes
through the loop, failing every time?

My proposal is that, if the environment variable ARROW_UTF8PROC_URL is set,
just copy the file it points to, into the corresponding place instead of
even checking if the url is visible and trying to download it from
https://github.com/JuliaStrings/utf8proc/archive/v2.5.0.tar.gz.

I hope I made myself clear enough now.
Thank you.

On Thu, Mar 25, 2021 at 4:05 PM Antoine Pitrou (Jira) <[email protected]>



> [C++] offline builds does not use ARROW_$LIBRARY_URL to search for packages
> ---------------------------------------------------------------------------
>
>                 Key: ARROW-12086
>                 URL: https://issues.apache.org/jira/browse/ARROW-12086
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Developer Tools
>    Affects Versions: 2.0.0, 3.0.0
>         Environment: uname -a
> Linux xxx.xxx 3.10.0-1160.11.1.el7.x86_64 #1 SMP Fri Dec 18 16:34:56 UTC 2020 
> x86_64 x86_64 x86_64 GNU/Linux
> cmake -version
> cmake version 3.9.0-rc4
>            Reporter: Daniel Blumenfeld
>            Assignee: Antoine Pitrou
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>         Attachments: cmake.log, download-utf8proc_ep.cmake, make.log, 
> utf8proc_ep-download-err.log, utf8proc_ep-download-out.log
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> I am following the instructions in order to build the parquet libraries, and 
> there are some firewall restrictions in our dvpmt environment.
> I have followed the instructions mentioned in 
> [https://github.com/apache/arrow/blob/master/docs/source/developers/cpp/building.rst]
> regarding Offline Builds: 
> {code:java}
> ./thirdparty/download_dependencies.sh $HOME/arrow-thirdparty >env.sh
> . ./env.sh
> cd cpp
> mkdir debug
> cd debug
> cmake -DCMAKE_BUILD_TYPE=Debug -DARROW_PARQUET=ON -DARROW_DATASET=ON ..
> make parquet arrow_dataset{code}
> The result is that the process simply ignores the environment variables and 
> tries to download the packages from the cloud - facing the firewall 
> restrictions, and then it fails after a number of attempts at trying to 
> download the packages.
> h3.  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to