danhuawang commented on PR #56:
URL: 
https://github.com/apache/gravitino-playground/pull/56#issuecomment-2340330075

   > > Can you help add some steps in README.md like the following examples? 
Then these commands are align with above Docker Container CLI , so user can use 
Trino CLI or spark sql in pod.
   > > 
   > > 1. Log in to the Gravitino playground Trino pod using the following 
command:
   > > 
   > > ```shell
   > > kubectl exec trino-5f6b6f996c-cshfv -n gravitino-playground -it -- 
/bin/bash
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > 
   > > 2. Log in to the Gravitino playground Spark pod using the following 
command:
   > > 
   > > ```shell
   > > kubectl exec spark-74fd98c69-slp8m -n gravitino-playground -it -- 
/bin/bash
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > 
   > > 3. In local minikube, access gravitino ui  using the following command:
   > > 
   > > ```
   > > kubectl expose deployment gravitino -n gravitino-playground --name 
gravitino-ui --type=NodePort --port=8090
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > ```
   > > minikube service gravitino-ui -n gravitino-playground --url
   > > ```
   > 
   > I think we can not support using `minikube`, we should use Docker Desktop 
or Orbstack instead.
   > 
   > PDF files for Jupyter notebooks are too large to be mounted via ConfigMaps 
in Kubernetes pods. So I use hostPath PV to mount these files.
   > 
   > but for M1, M2, M3 Mac, the files will disappear due to some bug of 
minikube.
   > 
   > To verify it, start minikube cluster, and deploy a helm release:
   > 
   > ```
   > helm upgrade --install gravitino-playground ./helm-chart/ 
--create-namespace --namespace gravitino-playground --debug --set 
projectRoot=$(pwd)
   > ```
   > 
   > You will see this in jupyter notebook's pod log:
   > 
   > ```
   > /bin/bash: /tmp/gravitino/init.sh: No such file or directory
   > ```
   
   After I mount the path of MacOS to minikube virtual vm, jupyter pod running.
   The following command for reference:
   ```
   minikube ssh
   docker@minikube:~$ mkdir -p 
/Users/wangdanhua/Workspace/test/gravitino-playground-feat-helm/init/jupyter
   ```
   ```
   nohup minikube mount 
/Users/wangdanhua/Workspace/test/gravitino-playground-feat-helm/init/jupyter:/Users/wangdanhua/Workspace/test/gravitino-playground-feat-helm/init/jupyter
 & 
   ```
   ```
   minikube ssh
   docker@minikube:~$ ls  
/Users/wangdanhua/Workspace/test/gravitino-playground-feat-helm/init/jupyter
   data  gravitino-fileset-example.ipynb  gravitino-trino-example.ipynb  
gravitino_llamaIndex_demo.ipynb  init.sh
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to