<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to create a New Entity in Apache Atlas 0.7 using Rest API ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-New-Entity-in-Apache-Atlas-0-7-using-Rest/m-p/217179#M63823</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14607/subashsharma.html" nodeid="14607"&gt;@subash sharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;As you are already aware, currently there is no out-of-box integration between HDF/Nifi and Atlas.  This is a roadmap item and has bee n documented in the below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-3709" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-3709&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, you can use the Atlas REST API to create the HDF entities and lineage.  Below are a couple of examples that show how this may be done:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/repos/66014/nifi-atlas-bridge.html" target="_blank"&gt;https://community.hortonworks.com/repos/66014/nifi-atlas-bridge.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/repos/39432/nifi-atlas-lineage-reporter.html" target="_blank"&gt;https://community.hortonworks.com/repos/39432/nifi-atlas-lineage-reporter.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As always, if you find this post helpful, don't forget to "accept" answer.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2017 20:06:34 GMT</pubDate>
    <dc:creator>egarelnabi</dc:creator>
    <dc:date>2017-06-28T20:06:34Z</dc:date>
    <item>
      <title>How to create a New Entity in Apache Atlas 0.7 using Rest API ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-New-Entity-in-Apache-Atlas-0-7-using-Rest/m-p/217176#M63820</link>
      <description>&lt;P&gt;To bring HDF lineage into Atlas. I would like to create a new entity on HDF, Can we achieve it in Atlas 0.7. If we can how to create a new entity on an existing HDF to bring the lineage.&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;Subash&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:29:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-New-Entity-in-Apache-Atlas-0-7-using-Rest/m-p/217176#M63820</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-06-28T14:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a New Entity in Apache Atlas 0.7 using Rest API ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-New-Entity-in-Apache-Atlas-0-7-using-Rest/m-p/217177#M63821</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You could create a simpe hdfs_path entity :&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin  -ik -H "Content-Type: application/json" -X POST -d '{"entity": {"typeName" : "hdfs_path", "attributes" : {"name" : "hdfs_file_test", "qualifiedName" : "testfile@hdpcluster", "path" : "/user/data/test.csv", "clusterName":"hdpcluster"}}}' &lt;A href="http://YOUR_HOST:21000/api/atlas/v2/entity" target="_blank"&gt;http://YOUR_HOST:21000/api/atlas/v2/entity&lt;/A&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Jun 2017 16:57:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-New-Entity-in-Apache-Atlas-0-7-using-Rest/m-p/217177#M63821</guid>
      <dc:creator>smartdatabundle</dc:creator>
      <dc:date>2017-06-28T16:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a New Entity in Apache Atlas 0.7 using Rest API ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-New-Entity-in-Apache-Atlas-0-7-using-Rest/m-p/217178#M63822</link>
      <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/17573/smartdatabundle.html" nodeid="17573"&gt;@Smart Data&lt;/A&gt;, Ty can you please let me know how to create type and entity for Nifi Data flow&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 18:24:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-New-Entity-in-Apache-Atlas-0-7-using-Rest/m-p/217178#M63822</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-06-28T18:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a New Entity in Apache Atlas 0.7 using Rest API ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-New-Entity-in-Apache-Atlas-0-7-using-Rest/m-p/217179#M63823</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14607/subashsharma.html" nodeid="14607"&gt;@subash sharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;As you are already aware, currently there is no out-of-box integration between HDF/Nifi and Atlas.  This is a roadmap item and has bee n documented in the below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-3709" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-3709&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, you can use the Atlas REST API to create the HDF entities and lineage.  Below are a couple of examples that show how this may be done:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/repos/66014/nifi-atlas-bridge.html" target="_blank"&gt;https://community.hortonworks.com/repos/66014/nifi-atlas-bridge.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/repos/39432/nifi-atlas-lineage-reporter.html" target="_blank"&gt;https://community.hortonworks.com/repos/39432/nifi-atlas-lineage-reporter.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As always, if you find this post helpful, don't forget to "accept" answer.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 20:06:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-New-Entity-in-Apache-Atlas-0-7-using-Rest/m-p/217179#M63823</guid>
      <dc:creator>egarelnabi</dc:creator>
      <dc:date>2017-06-28T20:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a New Entity in Apache Atlas 0.7 using Rest API ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-New-Entity-in-Apache-Atlas-0-7-using-Rest/m-p/217180#M63824</link>
      <description>&lt;P&gt;I never did it but I could suggest  :&lt;/P&gt;&lt;P&gt;Create a new simple type :&lt;/P&gt;&lt;PRE&gt;
curl -u admin:admin  -ik -H "Content-Type: application/json" -X POST -d '{"enumDefs" : [], "structDefs" : [], "classificationDefs": [], "entityDefs" : [{"name": "nifi_process_test", "superTypes": ["DataSet"], "typeVersion": "1.0", "attributeDefs": [{"name": "processor_name", "typeName": "string", "cardinality": "SINGLE", "isIndexable": false, "isOptional": false, "isUnique": false } ] }] }' &lt;A href="http://localhost:21000/api/atlas/v2/types/typedefs"&gt;http://YOUR_HOST:21000/api/atlas/v2/types/typedefs&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;I know that Nifi could connect to KAFKA via a processor.&lt;/P&gt;&lt;P&gt;So, you just have to publish into Kafka Topic like this :&lt;/P&gt;&lt;PRE&gt; 1- Open Producer console:

$KAFKA_HOME/kafka-console-producer.sh --broker-list YOUR_HOST:6667 --topic ATLAS_HOOK

2- Send ENTITY_CREATE message :

{"version": {"version": "1.0.0"}, "message": {"entities": [{"jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", "id": {"jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id", "id": "-1467290565135246000", "version": 0, "typeName": "nifi_process_test", "state": "ACTIVE"}, "typeName": "nifi_process_test", "values": {"qualifiedName": "testNifi", "owner": "admin", "description": "Test NIFI", "name": "Test Nifi"}, "traitNames": [], "traits": {} }], "type": "ENTITY_CREATE", "user": "admin"} }
&lt;/PRE&gt;&lt;P&gt;I hope it could help you.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 20:21:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-New-Entity-in-Apache-Atlas-0-7-using-Rest/m-p/217180#M63824</guid>
      <dc:creator>smartdatabundle</dc:creator>
      <dc:date>2017-06-28T20:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a New Entity in Apache Atlas 0.7 using Rest API ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-New-Entity-in-Apache-Atlas-0-7-using-Rest/m-p/217181#M63825</link>
      <description>&lt;P&gt;Hey Eyad, &lt;/P&gt;&lt;P&gt;Ty. I will try to implement the same.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 20:28:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-create-a-New-Entity-in-Apache-Atlas-0-7-using-Rest/m-p/217181#M63825</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-06-28T20:28:34Z</dc:date>
    </item>
  </channel>
</rss>

