spark-build icon indicating copy to clipboard operation
spark-build copied to clipboard

Not able to use curl inside image

Open anuragagarwal561994 opened this issue 7 years ago • 4 comments

Setting LD_LIBRARY_PATH, is not able to use libraries from /usr/lib because of which curl is not working.

Error: curl: /opt/mesosphere/libmesos-bundle/lib/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by curl)

https://github.com/mesosphere/spark-build/blob/c7c418d4f2138e7a0862e5d25b8b7e8fa960e393/docker/Dockerfile#L59

anuragagarwal561994 avatar Jan 31 '18 19:01 anuragagarwal561994

The same thing happens in the jenkins image that mesos builds, so presumably something is wrong with the libmesos bundle also things like apt-get don't work

ac-hibbert avatar Apr 20 '18 19:04 ac-hibbert

FYI, you can workaround this by running unset LD_LIBRARY_PATH. If you are deriving from this image then use RUN unset LD_LIBRARY_PATH && curl -L -O <url>.

antinodes avatar May 01 '18 15:05 antinodes

@anuragagarwal561994 Please let us know if you continue to experience this issue with the latest release of Spark 2.5.0-2.2.1

vishnu2kmohan avatar Dec 18 '18 14:12 vishnu2kmohan

@vishnu2kmohan Yes I used mesosphere/spark:2.5.0-2.2.1-hadoop-2.7 docker image and it works fine.

anuragagarwal561994 avatar Dec 19 '18 11:12 anuragagarwal561994