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)
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 (
HTTP ERROR 401
Problem accessing /api/atlas/types. Reason:
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?