when i run `checkout` , always get a error `direct...
# help
y
when i run
checkout
, always get a error
directory /root/lakefs:/xxx is not linked to a lakeFS path
. i try some command, but still get this error. already try commands:
lakectl local checkout <lakefs://test-tos/> -r e4289cf9bf29c8f4814a4449b81ae081030e9f361a6d98aa15661e1370c1deb5
lakectl local checkout <lakefs://test-tos/main/> -r e4289cf9bf29c8f4814a4449b81ae081030e9f361a6d98aa15661e1370c1deb5
lakectl local checkout <lakefs://test-tos/e4289cf9bf29c8f4814a4449b81ae081030e9f361a6d98aa15661e1370c1deb5>
o
Did you run lakectl local init on the directory?
y
yes,
Copy code
(base) [root@data-cli ~]# /data1/lakefs/lakectl local init <lakefs://test-tos/main/> test-tos --force
Location added to /root/.gitignore
Successfully linked local directory '/root/test-tos' with remote '<lakefs://test-tos/main/>'
o
It seems from your error you run your checkout from a different directory than the one stated in init
Also, lakectl local checkout expects a directory as input, not a URI
y
i run
init
in directory
test-tos
and use directory as directory, get another error
ref malformed lakefs URI
.
Copy code
(base) [root@data-cli test-tos]# /data1/lakefs/lakectl local checkout test-tos -r e4289cf9bf29c8f4814a4449b81ae081030e9f361a6d98aa15661e1370c1deb5

diff 'local:///root/test-tos/test-tos' <--> '<lakefs://test-tos/aaabbbd118bde1084425531f96477aaa28225f1263c97e3d34dc5730ad1baf84/>'...
ref malformed lakefs URI
Error executing command.
i find this, it's said need use uri , i'm not sure is correct.
Copy code
<https://lakefs.slack.com/archives/C016726JLJW/p1702303164380669>
I know where the problem is. The parameter after
-r
is not set correctly, should be:
Copy code
/data1/lakefs/lakectl local checkout . -r <lakefs://test-tos/aaabbbd118bde1084425531f96477aaa28225f1263c97e3d34dc5730ad1baf84>
lakefs 1
thank you for your time
lakefs 1