Hi team , while setting up lakectl i am getting th...
# help
u
Hi team , while setting up lakectl i am getting this error, even if i configured the .yaml file with access key and secret key.
u
Hey @setu suyagya ! Sorry to hear that. Mind sharing the configuration file (make sure to change the credentials to blank) and its path?
u
Also, are these credentials for a user that has permissions to list users?
u
are you able to login to lakefs webui?
u
yes
u
and do you see this access key set for the relevant user?
u
what about the permissions? are you able to list users through the UI?
u
well, it seems like the user should have permissions to list users... I wasn't able to reproduce it
Copy code
$ lakectl auth users list
+----------------+-------------------------------+
| USER ID        | CREATION DATE                 |
+----------------+-------------------------------+
| Or Tzabary     | 2022-08-04 11:48:14 +0300 IDT |
+----------------+-------------------------------+
u
which lakeFS version are you running?
u
and how did you run lakefs? using the everything bagel docker-compose file?
u
i pulled the docker image using curl https://compose.lakefs.io |docker-compose -f - up and the from docker terminal and web ui
u
alright, let me try to reproduce it using this method
u
works...
u
where are you running the
lakectl auth users list
command from? within the docker container or from your terminal?
u
aha... well, the container doesn't have the .lakectl.yaml configuration file
u
when you ran the
lakectl config
, was that from within that terminal? or your own?
u
from this same terminal from docker
u
it still works for me. can you please re-run the
lakectl config
and provide the credentials again? if you don't have them, you can just generate another set of access/secret key and use them instead
u
my current assumption is that the secret is not configured properly
u
but still same error
u
do you mind doing it on a new set of credentials?
u
ya ok let me try
u
still same
u
🤔 interesting... let me see what else we can do
u
any logs for the lakefs instance reporting these failed auth requests?
u
i guess its not writing the user credential in yaml file properly
u
it looks like it
u
because if it would've been an issue with the access key, you'd get a different error message
u
if you run
cat ~/.lakectl.yaml
, does it look like the credentials you've set?
u
(from within the container)
u
details stored correctly
u
may I suggest we'll go on a quick call to try and troubleshoot this together?
u
ya sure
u
summarizing our call here; we created another set of credentials, configured them through
lakefs config
and it worked.
u
Thanks for you quick call help.
u
sure, happy to assist. enjoy lakeFSing 🙂
u
hey @setu suyagya, how is it going? I wonder if you encountered any further issues, or you have any questions
u
yes, how can i setup glue metastore in lakectl file
u
well, it's supported and part of lakefs' configuration (not lakectl as it's the cli interface to lakefs) you can read more on how to set it up in our docs
u
i read this, getting stuck that how to add the required details in lakectl.yaml file
u
I'm sorry, I was mistaken
u
it's part of the lakectl.yaml configuration
u
where are you stuck at?
u
I'm not sure I follow on the problem. you're missing the file location? the values you should be using? or the text editor itself?
u
you should be using this interface either with Hive or Glue configuration, not both
u
if it's hive, the configuration should look like:
Copy code
metastore:
  type: hive
  hive:
    uri: hive-metastore:9083
u
if it's glue, the configuration should like look:
Copy code
metastore:
  type: glue
  glue:
    catalog-id: 123456789012
    region: us-east-1
    profile: default # optional, implies using a credentials file
    credentials:
      access_key_id: AKIAIOSFODNN7EXAMPLE
      secret_access_key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
u
yes , i just want to add glue configuration in yaml ile
u
file*
u
ok, so its configuration requires the catalog id, region it operates in, and AWS credentials to access the catalog
u
is it working with only aws credential, or with local glue image in docker
u
is there any command through which i can open the lakectl.yaml file in texteditor mode
u
is it working with only aws credential, or with local glue image in docker
well, I'm not sure it's supported by AWS to run Glue without any credentials reference (see here)
is there any command through which i can open the lakectl.yaml file in texteditor mode
you can use
nano
or
vi
(more advanced & complex). if you're using the docker-compose (everything bagel) for instance, you can either use environment variables to override the configuration file, or mount a docker volume with the configuration file and edit it in your host.
u
Thanks for these, I am trying to setup accordingly if anything goes wrong will ping again.