This is an automated email from the ASF dual-hosted git repository.

fanng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino-playground.git


The following commit(s) were added to refs/heads/main by this push:
     new 26cf298  Remove jupyter legacy packages before starting (#99)
26cf298 is described below

commit 26cf298c9f6602c4626823bfb7f036aafc11257f
Author: roryqi <[email protected]>
AuthorDate: Tue Nov 5 20:08:01 2024 +0800

    Remove jupyter legacy packages before starting (#99)
---
 init/jupyter/jupyter-dependency.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/init/jupyter/jupyter-dependency.sh 
b/init/jupyter/jupyter-dependency.sh
index 3ddb748..40cfee0 100755
--- a/init/jupyter/jupyter-dependency.sh
+++ b/init/jupyter/jupyter-dependency.sh
@@ -29,6 +29,7 @@ jupyter_dir="$(
 # Prepare download packages
 if [[ ! -d "${jupyter_dir}/packages" ]]; then
   mkdir "${jupyter_dir}/packages"
-  find "${jupyter_dir}/../spark/packages/" | grep jar | xargs -I {} ln {} 
"${jupyter_dir}/packages/"
 fi
+ls "${jupyter_dir}/packages/" | xargs -I {} rm "${jupyter_dir}/packages/"{}
+find "${jupyter_dir}/../spark/packages/" | grep jar | xargs -I {} ln {} 
"${jupyter_dir}/packages/"
 

Reply via email to