Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

CDSW CLI - login failed to authenticate on MacOS

avatar
Frequent Visitor

Hi,

I have been using the cdswctl tool for a while for creating sessions that can be accessed by VS Code from Windows.

Today i tried to create a session from a Mac using the same command and it throws an error complaining that the API key is not valid.   I have checked the key and same key works fine from Windows.

The command i am using is :

./cdswctl login -n USERNAME -u http://cdsw.mydomain.xxxx/ -y APIKEY

Can anyone offer any advice?

Thanks

1 ACCEPTED SOLUTION

avatar
Frequent Visitor

So - it is related to proxy/dns settings when on RAS.

Adding a lookup to etc/hosts from the IP address to the Host name has fixed my issue:

e.g.

# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost

192.99.90.1 cdsw.XXXXXX.xxxx

View solution in original post

11 REPLIES 11

avatar
Frequent Visitor

So - it is related to proxy/dns settings when on RAS.

Adding a lookup to etc/hosts from the IP address to the Host name has fixed my issue:

e.g.

# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost

192.99.90.1 cdsw.XXXXXX.xxxx

avatar
Expert Contributor

Hmm, that makes sense I suppose. That was my next guess 😉 Glad you figured it out, and thanks for posting the answer here, I appreciate it!