You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by Nixon Rodrigues <ni...@freestoneinfotech.com> on 2017/06/09 14:12:20 UTC

Re: Review Request 59439: KNOX-789 :- Apache Atlas REST API support

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59439/
-----------------------------------------------------------

(Updated June 9, 2017, 2:12 p.m.)


Review request for atlas, Knox, Larry McCay, and Madhan Neethiraj.


Changes
-------

This patch includes changes to remove default Anonymous user policy from servicedefination.

Tested atlas api with knox proxy gateway.


curl -i -k -L -u admin:admin -X GET  'https://knox-proxy:8443/gateway/ui/atlas/api/atlas/admin/session'
HTTP/1.1 200 OK
Date: Fri, 09 Jun 2017 14:01:43 GMT
Date: Fri, 09 Jun 2017 14:01:44 GMT
Set-Cookie: ATLASSESSIONID=1fuqpnl72y2dglr8mh6q2ri96;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Frame-Options: DENY
Content-Type: application/json; charset=UTF-8
Server: Jetty(9.2.12.v20150709)
Content-Length: 462

{"atlas.rest-csrf.enabled":true,"atlas.rest-csrf.browser-useragents-regex":"^Mozilla.*,^Opera.*,^Chrome","atlas.rest-csrf.methods-to-ignore":"GET,OPTIONS,HEAD,TRACE","atlas.rest-csrf.custom-header":"X-XSRF-HEADER","atlas.feature.taxonomy.enable":false,"atlas.entity.update.allowed":true,"atlas.entity.create.allowed":true,"atlas.ui.editable.entity.types":"hdfs_path,hbase_table,hbase_column,hbase_column_family,kafka_topic","userName":"admin","groups":["ADMIN"]}


Bugs: KNOX-789
    https://issues.apache.org/jira/browse/KNOX-789


Repository: knox


Description
-------

This patch includes service definition and rewrite rules for Atlas API to support proxy through Knox.


Diffs (updated)
-----

  gateway-service-definitions/src/main/resources/services/atlas-api/0.8.0/rewrite.xml PRE-CREATION 
  gateway-service-definitions/src/main/resources/services/atlas-api/0.8.0/service.xml PRE-CREATION 


Diff: https://reviews.apache.org/r/59439/diff/2/

Changes: https://reviews.apache.org/r/59439/diff/1-2/


Testing
-------

Tested the api from curl and also from Atlas admin UI


[root@rd-atl-080517-2 bin]# curl -i -k -L -u admin:admin -X GET  'https://knox-host:8443/gateway/ui/atlas/api/atlas/v2/types/typedefs?type=classification&_=1495442879421'
HTTP/1.1 200 OK
Date: Mon, 22 May 2017 08:50:03 GMT
Date: Mon, 22 May 2017 08:50:03 GMT
Set-Cookie: ATLASSESSIONID=oscz5x1nocfn14y4bj0yv52vs;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Frame-Options: DENY
Content-Type: application/json; charset=UTF-8
Server: Jetty(9.2.12.v20150709)
Content-Length: 2070

{"enumDefs":[],"structDefs":[],"classificationDefs":[{"category":"CLASSIFICATION","guid":"abce22ee-a6ed-40f3-816a-555049997b71","createTime":1495108634535,"updateTime":1495108634535,"version":1,"name":"KnoxProxy","description":"KnoxProxy","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"2410969e-f592-4db8-82d7-47bf6996d090","createTime":1495011488803,"updateTime":1495011488803,"version":1,"name":"PII","description":"PII Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"ac122a83-37e1-4c60-a260-2a262c98b2f8","createTime":1495011490270,"updateTime":1495011490270,"version":1,"name":"JdbcAccess","description":"JdbcAccess Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"7bff86b0-a77e-43a0-9577-c125196bb497","createTime":1495011490296,"updateTime":1495011490296,"version":1,"name":"Log Data","description":"LogData Classification","
 typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"1099a2a2-932a-4f1d-9f6c-4ed04021f88e","createTime":1495011488817,"updateTime":1495011488817,"version":1,"name":"Metric","description":"Metric Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"228842fe-7035-4fd2-9c6c-48b1d74a0995","createTime":1495011487356,"updateTime":1495011487356,"version":1,"name":"Dimension","description":"Dimension Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"900d0441-393e-4b2f-b6f5-161d5b057d36","createTime":1495011489541,"updateTime":1495011489541,"version":1,"name":"ETL","description":"ETL Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"42d1752d-58de-4816-8bcb-7157eda14d7f","createTime":1495011488088,"updateTime":1495011488088,"version":1,"name":"Fact","description":"Fact Classification
 ","typeVersion":"1.0","attributeDefs":[],"superTypes":[]}],"entityDefs":[]}


Thanks,

Nixon Rodrigues


Re: Review Request 59439: KNOX-789 :- Apache Atlas REST API support

Posted by Shi Wang <cn...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59439/#review178908
-----------------------------------------------------------


Ship it!




Ship It!

- Shi Wang


On June 9, 2017, 2:12 p.m., Nixon Rodrigues wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/59439/
> -----------------------------------------------------------
> 
> (Updated June 9, 2017, 2:12 p.m.)
> 
> 
> Review request for atlas, Knox, Larry McCay, and Madhan Neethiraj.
> 
> 
> Bugs: KNOX-789
>     https://issues.apache.org/jira/browse/KNOX-789
> 
> 
> Repository: knox
> 
> 
> Description
> -------
> 
> This patch includes service definition and rewrite rules for Atlas API to support proxy through Knox.
> 
> 
> Diffs
> -----
> 
>   gateway-service-definitions/src/main/resources/services/atlas-api/0.8.0/rewrite.xml PRE-CREATION 
>   gateway-service-definitions/src/main/resources/services/atlas-api/0.8.0/service.xml PRE-CREATION 
> 
> 
> Diff: https://reviews.apache.org/r/59439/diff/2/
> 
> 
> Testing
> -------
> 
> Tested the api from curl and also from Atlas admin UI
> 
> 
> [root@rd-atl-080517-2 bin]# curl -i -k -L -u admin:admin -X GET  'https://knox-host:8443/gateway/ui/atlas/api/atlas/v2/types/typedefs?type=classification&_=1495442879421'
> HTTP/1.1 200 OK
> Date: Mon, 22 May 2017 08:50:03 GMT
> Date: Mon, 22 May 2017 08:50:03 GMT
> Set-Cookie: ATLASSESSIONID=oscz5x1nocfn14y4bj0yv52vs;Path=/;HttpOnly
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> X-Frame-Options: DENY
> Content-Type: application/json; charset=UTF-8
> Server: Jetty(9.2.12.v20150709)
> Content-Length: 2070
> 
> {"enumDefs":[],"structDefs":[],"classificationDefs":[{"category":"CLASSIFICATION","guid":"abce22ee-a6ed-40f3-816a-555049997b71","createTime":1495108634535,"updateTime":1495108634535,"version":1,"name":"KnoxProxy","description":"KnoxProxy","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"2410969e-f592-4db8-82d7-47bf6996d090","createTime":1495011488803,"updateTime":1495011488803,"version":1,"name":"PII","description":"PII Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"ac122a83-37e1-4c60-a260-2a262c98b2f8","createTime":1495011490270,"updateTime":1495011490270,"version":1,"name":"JdbcAccess","description":"JdbcAccess Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"7bff86b0-a77e-43a0-9577-c125196bb497","createTime":1495011490296,"updateTime":1495011490296,"version":1,"name":"Log Data","description":"LogData Classification"
 ,"typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"1099a2a2-932a-4f1d-9f6c-4ed04021f88e","createTime":1495011488817,"updateTime":1495011488817,"version":1,"name":"Metric","description":"Metric Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"228842fe-7035-4fd2-9c6c-48b1d74a0995","createTime":1495011487356,"updateTime":1495011487356,"version":1,"name":"Dimension","description":"Dimension Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"900d0441-393e-4b2f-b6f5-161d5b057d36","createTime":1495011489541,"updateTime":1495011489541,"version":1,"name":"ETL","description":"ETL Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"42d1752d-58de-4816-8bcb-7157eda14d7f","createTime":1495011488088,"updateTime":1495011488088,"version":1,"name":"Fact","description":"Fact Classificati
 on","typeVersion":"1.0","attributeDefs":[],"superTypes":[]}],"entityDefs":[]}
> 
> 
> Thanks,
> 
> Nixon Rodrigues
> 
>