Skip to content

Commit

Permalink
Update to 24.10, include apt updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rishic3 authored Nov 19, 2024
1 parent 88ccbb6 commit 74427fe
Showing 1 changed file with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,21 @@ set -x # for debugging
if [[ $DB_IS_DRIVER = "TRUE" ]]; then
# setup database for optuna on driver

sudo apt-get purge mysql-server
sudo apt-get autoremove && sudo apt-get autoclean

# install mysql server
sudo apt-get update
sudo apt-get install -y mysql-server

if [[ ! -f "/etc/mysql/mysql.conf.d/mysqld.cnf" ]]; then
sudo apt-get remove --purge mysql\*
sudo apt-get update
sudo apt-get install -y mysql-server
fi

if [[ ! -f "/etc/mysql/mysql.conf.d/mysqld.cnf" ]]; then
echo "ERROR: MYSQL installation failed"
exit 1
fi

# configure mysql
BIND_ADDRESS=$DB_DRIVER_IP
MYSQL_CONFIG_FILE="/etc/mysql/mysql.conf.d/mysqld.cnf"
Expand All @@ -29,9 +37,9 @@ if [[ $DB_IS_DRIVER = "TRUE" ]]; then
fi

# rapids import
RAPIDS_VERSION=24.8.0
SPARK_RAPIDS_VERSION=24.06.1
curl -L https://repo1.maven.org/maven2/com/nvidia/rapids-4-spark_2.12/${SPARK_RAPIDS_VERSION}/rapids-4-spark_2.12-${SPARK_RAPIDS_VERSION}-cuda11.jar -o \
RAPIDS_VERSION=24.10.0
SPARK_RAPIDS_VERSION=24.10.1
curl -L https://repo1.maven.org/maven2/com/nvidia/rapids-4-spark_2.12/${SPARK_RAPIDS_VERSION}/rapids-4-spark_2.12-${SPARK_RAPIDS_VERSION}.jar -o \
/databricks/jars/rapids-4-spark_2.12-${SPARK_RAPIDS_VERSION}.jar

if [[ $DB_IS_DRIVER != "TRUE" ]]; then
Expand All @@ -52,6 +60,8 @@ if [[ $DB_IS_DRIVER != "TRUE" ]]; then
fi

# setup python environment
sudo apt-get update
sudo apt-get install pkg-config
sudo apt-get install -y libmysqlclient-dev
sudo /databricks/python3/bin/pip3 install --upgrade pip
sudo /databricks/python3/bin/pip3 install mysqlclient xgboost
Expand Down

0 comments on commit 74427fe

Please sign in to comment.