Skip to content

Commit

Permalink
Fix snowsql install
Browse files Browse the repository at this point in the history
snowsql invocation fails due to permission issues
  • Loading branch information
zoharsan authored Apr 11, 2022
1 parent ccae9e4 commit 22953a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy_snowflake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ cp ${jdbc_file} /usr/local/spark/jars
cp ${spark_file} /usr/local/spark/jars

SNOWSQL_DEST=/usr/bin SNOWSQL_LOGIN_SHELL=/home/jovyan/.profile bash /${snowsql_file}

chown -R jovyan:users /home/jovyan/.snowsql
sudo -u jovyan /usr/bin/snowsql -o log_file=/home/jovyan/.snowsql/snowsql_rt.log -v
sudo -u jovyan sed -i 's/\.\.\/snowsql_rt.log/~\/\.snowsql\/snowsql_rt.log/g' /home/jovyan/.snowsql/config

0 comments on commit 22953a3

Please sign in to comment.