Valid init script for installing ODBC Driver 18 for SQL Server to a job cluster

bi_123
New Contributor III

I need to execute stored procedures in my notebook, to do that I created an init script that installs ODBC driver to my job cluster. But the script stops working after some time and I can't figure out why, so the cluster can't start. Can someone send me a valid script that installs ODBC driver to a job cluster? I can provide more information if needed.