Hi all, I am new to using lakeFS(and programming i...
# help
o
Hi all, I am new to using lakeFS(and programming in general). In the quick start guide, I got an error on part 6(Actions and Hooks). For reference, I am using a Linux WSL(Ubuntu) to use Docker to run the lakeFS container. I am getting an error from the terminal: docker exec lakefs \ lakectl fs upload \ lakefs://quickstart/add_action/_lakefs_actions/check_commit_metadata.yml \ --source C:/Coding/lakeFS.win/check_commit_metadata.yml open C/Coding/lakeFS.win/check commit metadata.yml no such file or directory Error executing command. The given code was: docker exec lakefs \ lakectl fs upload \ lakefs://quickstart/add_action/_lakefs_actions/check_commit_metadata.yml \ --source /tmp/check_commit_metadata.yml I am fairly sure this is because I need to save it to Linux files and not Windows. However, I'm not really sure how because I am new to Linux in general. How do I save the YAML file to a location where Docker and lakectl can access it? Also, if it is general practice to use the lakeFS UI only or if there is something else that I could be missing please let me know. Thanks for the help!
Update: I found it in my system using /mnt/c. However, I am getting the same error. omer-tzioni@SurfaceTzioni:~$ cd /mnt/c/Coding/lakeFS.win/ omer-tzioni@SurfaceTzioni:/mnt/c/Coding/lakeFS.win$ ls -l total 4 -rwxrwxrwx 1 omer-tzioni omer-tzioni 1167 May 8 12:47 check_commit_metadata.yml ^Present in the folder docker exec lakefs \ lakectl fs upload \ lakefs://quickstart/add_action/_lakefs_actions/check_commit_metadata.yml \ --source /mnt/c/Coding/lakeFS.win/check_commit_metadata.yml open /mnt/c/Coding/lakeFS.win/check_commit_metadata.yml: no such file or directory Error executing command. ^Same error
o
Hi Omer You need to copy the file from local to the container as:
Copy code
docker cp src/. container_id:/target
o
I think I was able to copy it. Thanks. Unfortunately I have a new problem now, that I don't know the new path of the file. How do I find the correct file path to use? Also, how would I use ls to check that the file is in the right folder? Here is what I see: omer-tzioni@SurfaceTzioni:~$ docker cp quickstart.tmp/. 1ad1497913ee:/lakefs_actions/ Successfully copied 3.58kB to 1ad1497913ee:/lakefs_actions/ Successfully copied^ omer-tzioni@SurfaceTzioni:~$ docker exec lakefs \ lakectl fs upload \ lakefs://quickstart/add_action/_lakefs_actions/check_commit_metadata.yml \ --source /_lakefs_actions/tmp/check_commit_metadata.yml open /_lakefs_actions/tmp/check_commit_metadata.yml: no such file or directory Error executing command. Not sure what to put for source^ Thanks again for the help.
1
Update: Typo!! I used lakefs_actions when copying, and used _lakefs_actions when uploading from lakectl. Got it working.
👍 4