Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does datahub provide a rest interface for data ingestion #1793

Closed
cobolbaby opened this issue Aug 10, 2020 · 2 comments
Closed

Does datahub provide a rest interface for data ingestion #1793

cobolbaby opened this issue Aug 10, 2020 · 2 comments
Assignees
Labels
question Question

Comments

@cobolbaby
Copy link
Contributor

Before I used the python script under metadata-ingestion to import data.

But I found an HTTP interface in #1791 accidentally. Is this method recommended? Is there any related documentation?

curl 'http://localhost:8080/datasets?action=ingest' -X POST -H 'X-RestLi-Protocol-Version:2.0.0' --data '{"snapshot":{"aspects":[{"com.linkedin.dataset.DatasetProperties":{"description":"descriptionForTest2","tags":["tag1","tag2"],"customProperties":{}}}],"urn":"urn:li:dataset:(urn:li:dataPlatform:hdfs,test2,EI)"}}'
@cobolbaby cobolbaby added the question Question label Aug 10, 2020
@mars-lan
Copy link
Contributor

This is mostly a "backdoor API" used by the MCE ingestion pipeline. You can certainly use it for debugging purposes and it's mentioned here: https://github.com/linkedin/datahub/tree/master/gms

If you're after a proper CREATE API, you'll need to add one to the GMS like so: https://github.com/linkedin/datahub/blob/master/gms/impl/src/main/java/com/linkedin/metadata/resources/identity/CorpUsersEditableInfoResource.java#L25

@mars-lan mars-lan self-assigned this Aug 10, 2020
@cobolbaby
Copy link
Contributor Author

Got it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question
Projects
None yet
Development

No branches or pull requests

2 participants