shivajid / atlas

This repository is to help with the Partner Demonstration of the Apache Atlas project.
30 stars 37 forks source link

Atlas Authentication #5

Open cristina-grosu opened 6 years ago

cristina-grosu commented 6 years ago

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?

vishalrana43 commented 6 years ago

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