atlas icon indicating copy to clipboard operation
atlas copied to clipboard

Atlas Authentication

Open cristina-grosu opened this issue 6 years ago • 1 comments

Hello!

How is authentication supposed to be handled when accessing:

./bin/atlasclient --c=importmysql --mysqlhost=instance-35947.bigstep.io --password=password --username=root --db=default -createHiveTables -genLineage

I edited the atlasclient script to point to my atlas host: http://hostname:port/, but when I am trying to run the command specified above I get the following error:

db default null org.apache.atlas.AtlasServiceException: Metadata service API LIST_TYPES failed with status 401(Unauthorized) Response Body (

Error 401 Full authentication is required to access this resource

HTTP ERROR 401

Problem accessing /api/atlas/types. Reason:

    Full authentication is required to access this resource

Powered by Jetty://
) at org.apache.atlas.AtlasClient.callAPIWithResource(AtlasClient.java:359) at org.apache.atlas.AtlasClient.callAPI(AtlasClient.java:364) at org.apache.atlas.AtlasClient.listTypes(AtlasClient.java:169) at com.hortonworks.atlas.adapter.AtlasTableInterface.(AtlasTableInterface.java:71) at com.hortonworks.atlas.cli.AtlasCLI.importMysqlTables(AtlasCLI.java:590) at com.hortonworks.atlas.cli.AtlasCLI.(AtlasCLI.java:269) at com.hortonworks.atlas.cli.AtlasCLI.main(AtlasCLI.java:64)

How can I fix it?

cristina-grosu avatar Apr 03 '18 10:04 cristina-grosu

I also had this same issue. Can you please guide if you found solution of this issue. Thank you.

vishalrana43 avatar Aug 09 '18 12:08 vishalrana43