<?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: Can i able to add new column in hive_table in Apache Atlas ? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233075#M194905</link>
    <description>&lt;P&gt;Thanks for u r quick response &lt;A rel="user" href="https://community.cloudera.com/users/2504/ssainath.html" nodeid="2504"&gt;@Sharmadha Sainath&lt;/A&gt; , I want new KEY in Atlas UI for type=hive_table , Not a user created table column ,&lt;/P&gt;&lt;P&gt;Examples how aliases ,columns,comment,createTime,db, description,lastAccessTime etc fields  ...like that one new column&lt;/P&gt;</description>
    <pubDate>Fri, 02 Mar 2018 17:49:14 GMT</pubDate>
    <dc:creator>nittala999</dc:creator>
    <dc:date>2018-03-02T17:49:14Z</dc:date>
    <item>
      <title>Can i able to add new column in hive_table in Apache Atlas ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233073#M194903</link>
      <description>&lt;P&gt;In atlas, I want to add a new column (Ex : Data Custodian) in hive_table ?&lt;/P&gt;&lt;P&gt;Is it possible ?&lt;/P&gt;&lt;P&gt;If its possible , Please explain ?&lt;/P&gt;&lt;P&gt;Thanks in advance...!!!!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 15:27:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233073#M194903</guid>
      <dc:creator>nittala999</dc:creator>
      <dc:date>2018-03-02T15:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can i able to add new column in hive_table in Apache Atlas ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233074#M194904</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/68258/nittala999.html" nodeid="68258"&gt;@Satya Nittala&lt;/A&gt;&lt;P&gt;I hope you have enabled Atlas Hive hook settings. If yes , all updates to the hive table are captured by Atlas. When column is added in Hive, you can find the newly created hive_column entity in Atlas.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:28:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233074#M194904</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2018-03-02T16:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can i able to add new column in hive_table in Apache Atlas ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233075#M194905</link>
      <description>&lt;P&gt;Thanks for u r quick response &lt;A rel="user" href="https://community.cloudera.com/users/2504/ssainath.html" nodeid="2504"&gt;@Sharmadha Sainath&lt;/A&gt; , I want new KEY in Atlas UI for type=hive_table , Not a user created table column ,&lt;/P&gt;&lt;P&gt;Examples how aliases ,columns,comment,createTime,db, description,lastAccessTime etc fields  ...like that one new column&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 17:49:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233075#M194905</guid>
      <dc:creator>nittala999</dc:creator>
      <dc:date>2018-03-02T17:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can i able to add new column in hive_table in Apache Atlas ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233076#M194906</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/68258/nittala999.html" nodeid="68258"&gt;@Satya Nittala&lt;/A&gt; &lt;/P&gt;&lt;P&gt;hive_table is a type and fields you mentioned like aliases ,columns,comment,createTime,db etc., are attributes of hive_table. &lt;/P&gt;&lt;P&gt;Type can be updated using PUT (http://atlas.apache.org/api/v2/resource_TypesREST.html#resource_TypesREST_updateAtlasTypeDefs_PUT).&lt;/P&gt;&lt;P&gt;This requires fetching the type definition and updating with new attribute.&lt;/P&gt;&lt;P&gt;For example ,&lt;/P&gt;&lt;P&gt;Following GET REST call is used to fetch the hive_table type definition :&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://atlashost:21000/api/atlas/v2/types/entitydef/name/hive_table" target="_blank"&gt;http://atlashost:21000/api/atlas/v2/types/entitydef/name/hive_table&lt;/A&gt;
&lt;/PRE&gt;&lt;P&gt;After fetching the type definition , new attribute definition can be added in the attributeDefs array as &lt;/P&gt;&lt;PRE&gt;{

name: "new_attribute",
typeName: "string",
isOptional: true,
cardinality: "SINGLE",
valuesMinCount: 0,
valuesMaxCount: 1,
isUnique: false,
isIndexable: false
}&lt;/PRE&gt;&lt;P&gt;name : name of the new attribute &lt;/P&gt;&lt;P&gt;typename : data type of the attribute&lt;/P&gt;&lt;P&gt;isOptional : if the entity can be created without providing values for the attribute. (Note : updating a type with new mandatory attribute is not allowed. While updating , provide isOptional as True).&lt;/P&gt;&lt;P&gt;and the updated JSON can be PUT to &lt;/P&gt;&lt;PRE&gt;&lt;A href="http://atlashost:21000/api/atlas/v2/types/typedefs" target="_blank"&gt;http://atlashost:21000/api/atlas/v2/types/typedefs&lt;/A&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;For example , in the text file attached , I have added new attribute definition . GUID of the hive_table has to be modified based on your Atlas instance.&lt;/P&gt;&lt;P&gt;Please let me know if you are stuck somewhere in this procedure.&lt;/P&gt;&lt;P&gt;One question :&lt;/P&gt;&lt;P&gt;hive_table is a defined type in Atlas.It has all attributes which will be required for maintaining hive meta data. May I know why you want to update it ? What is the new attribute you want to add ? could you please explain the use case behind it ?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 20:04:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233076#M194906</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2018-03-02T20:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can i able to add new column in hive_table in Apache Atlas ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233077#M194907</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2504/ssainath.html" nodeid="2504"&gt;@Sharmadha Sainath&lt;/A&gt; , Thanks for your quick response,&lt;BR /&gt;I need to maintain additional metadata for those hive_table, This information is given by Business, This is Business metadata information is like Data custodian, Data owner  &amp;amp; PI Information etc ...These attributes are not available in     TYPE :hive_table in Atlas,  So i want to create a new attributes TYPE :hive_table and Need to move these information in new attributes &lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 14:10:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233077#M194907</guid>
      <dc:creator>nittala999</dc:creator>
      <dc:date>2018-03-06T14:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can i able to add new column in hive_table in Apache Atlas ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233078#M194908</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/68258/nittala999.html" nodeid="68258"&gt;@Satya Nittala&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For this requirement , please look at Classification. You can create a classification/tag with attributes. For example , create a tag named PI with required attributes like expiry date etc., and associate it to the hive_table entity. &lt;/P&gt;&lt;P&gt;The attributes like columns , comments , aliases ,comment,createTime,db etc., are specific to Hive model. Information like Data custodian, Data owner &amp;amp; PI Information are not available in Hive. So it is not advisable to add such attributes to Hive model in Atlas. But,you may very well classify data based on tags - which is the recommended way.&lt;/P&gt;&lt;P&gt;Once the table is associated to tag , you can query for the tag using search APIs , and it would list all the entities associated to the tag. &lt;/P&gt;&lt;P&gt;For example ,&lt;/P&gt;&lt;P&gt;1. Create a tag named PI with attribute expiry date of type date.&lt;/P&gt;&lt;P&gt;2. Associate the tag PI to the hive_table entity with date value for expiry date.&lt;/P&gt;&lt;P&gt;3.Now you can query for the tag PI with the particular expiry date.&lt;/P&gt;&lt;P&gt;Please let me know if you need some more information on this. &lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 14:55:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233078#M194908</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2018-03-06T14:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can i able to add new column in hive_table in Apache Atlas ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233079#M194909</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2504/ssainath.html" nodeid="2504"&gt;@Sharmadha Sainath&lt;/A&gt; &lt;BR /&gt;Tags creation we have to do manually in UI , Every day i will get the updated metadata, So cannot modify TAGS on everyday , If some attributes are exists , Then i will make job with CURL Command to override on daily basis with updated data , &lt;/P&gt;&lt;P&gt;Can we create a TAG's in back end ?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 16:02:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233079#M194909</guid>
      <dc:creator>nittala999</dc:creator>
      <dc:date>2018-03-06T16:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can i able to add new column in hive_table in Apache Atlas ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233080#M194910</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/68258/nittala999.html" nodeid="68258"&gt;&lt;/A&gt;@Satya Nittala&lt;/P&gt;&lt;P&gt;yes , POST the JSON body attached in the file to &lt;/P&gt;&lt;PRE&gt;&lt;A href="http://localhost:21000/api/atlas/v2/types/typedefs?type=classification" target="_blank"&gt;http://localhost:21000/api/atlas/v2/types/typedefs?type=classification&lt;/A&gt; &lt;/PRE&gt;&lt;P&gt;In the tag definition , name is the name of the tag , and attributeDefs is an JSON array of attribute definitions. I have added expiry_date attribute of type date in the example.&lt;/P&gt;&lt;P&gt;Once the tag is created , the tag can be associated to the hive_table entity by POSTing the attached tag-association.txt  to &lt;/P&gt;&lt;PRE&gt;&lt;A href="http://localhost:21000/api/atlas/v2/entity/bulk/classification" target="_blank"&gt;http://localhost:21000/api/atlas/v2/entity/bulk/classification&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;in tag-association.txt , "name" is the name of tag . attribute values can be provided in "attributes". entityGuids is the list of all the GUIDs of entity the tag should be associated to. In this array , you can provide the hive_table GUID.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 20:50:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233080#M194910</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2018-03-06T20:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can i able to add new column in hive_table in Apache Atlas ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233081#M194911</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2504/ssainath.html" nodeid="2504"&gt;@Sharmadha Sainath&lt;/A&gt;&lt;P&gt;Can u please tell me the easy way to execute JSON script from edge node ?&lt;/P&gt;&lt;P&gt;I tried with below CURL Command , &lt;/P&gt;&lt;P&gt;curl -vX POST -u admin:admin &lt;A href="http://Localhost:2100/api/atlas/v2/types/entitydef/name/hive_table.json" target="_blank"&gt;http://Localhost:2100/api/atlas/v2/types/entitydef/name/hive_table.json&lt;/A&gt;  -d  user/testplace.json --header "Content-Type: application/json"&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;showing below error :&lt;/P&gt;&lt;P&gt;&amp;lt; HTTP/1.1 100 Continue
&amp;lt; HTTP/1.1 500 Internal Server Error
&amp;lt; Set-Cookie: ATLASSESSIONID=1m6u83lz9dwylwfy2b702hfj9;Path=/;HttpOnly
&amp;lt; Expires: Thu, 01 Jan 1970 00:00:00 GMT
&amp;lt; X-Frame-Options: DENY
&amp;lt; Content-Type: text/plain
&amp;lt; Transfer-Encoding: chunked
&amp;lt; Server: Jetty(8.1.19.v20160209)
* HTTP error before end of send, stop sending&lt;/P&gt;&lt;P&gt;Please help me to execute json script from edge node ?&lt;/P&gt;&lt;P&gt;Thanks in advance...!!!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 16:02:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233081#M194911</guid>
      <dc:creator>nittala999</dc:creator>
      <dc:date>2018-03-07T16:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can i able to add new column in hive_table in Apache Atlas ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233082#M194912</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/68258/nittala999.html" nodeid="68258"&gt;@Satya Nittala&lt;/A&gt;&lt;/P&gt;&lt;P&gt;1. Please use correct port . By default , Atlas in non-SSL environment is configured to use 21000. &lt;/P&gt;&lt;P&gt;2. curl requires "@" for providing files. Example : -d @user/testplace.json&lt;/P&gt;&lt;P&gt;3. To update type , "PUT"  (not POST.  To create types use POST, to update types use "PUT")  the JSON to &lt;/P&gt;&lt;PRE&gt;&lt;A href="http://atlashost:21000/api/atlas/v2/types/typedefs" target="_blank"&gt;http://atlashost:21000/api/atlas/v2/types/typedefs&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;4. As already mentioned  , classification/tag best suits your requirement. Its highly recommended to use tags instead of updating types.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 16:35:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-i-able-to-add-new-column-in-hive-table-in-Apache-Atlas/m-p/233082#M194912</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2018-03-07T16:35:45Z</dc:date>
    </item>
  </channel>
</rss>

