outrauk / dataiku-plugin-snowflake-hdfs

DSS plugin for fast loading between Snowflake and HDFS
https://github.com/outrauk/dataiku-plugin-snowflake-hdfs
MIT License
0 stars 0 forks source link

make_dss_pip does not follow redirects #9

Closed mklaber closed 4 years ago

mklaber commented 4 years ago

make_dss_pip.sh breaks because Dataiku has changed the URL for the "latest" download. It can be fixed by changing the curl to follow redirects (-L) and should also check that it can find a version variable. Looks like this:

VERSION=$(curl -L -v --silent https://www.dataiku.com/dss/trynow/linux/ 2>&1 | grep -e 'var cur_version' | sed -n 's/^.*"\(.*\)".*$/\1/p')

if [ -z "$VERSION" ]; then
  echo "Can't find a DSS version"
  exit
fi