<?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: Facing errors while adding attributes in TYPE - hive_table in ATLAS ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Facing-errors-while-adding-attributes-in-TYPE-hive-table-in/m-p/178904#M75813</link>
    <description>&lt;P&gt;I think you are using the wrong API. I believe you need to use PUT /v2/types/typedefs - see &lt;A href="https://atlas.apache.org/api/v2/ui/index.html#!/TypesREST/resource_TypesREST_updateAtlasTypeDefs_PUT" target="_blank"&gt;https://atlas.apache.org/api/v2/ui/index.html#!/TypesREST/resource_TypesREST_updateAtlasTypeDefs_PUT&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To see the current definition of have_table you can do GET &lt;A href="http://localhost:21000/api/atlas/v2/types/typedef/name/hive_table" target="_blank"&gt;http://localhost:21000/api/atlas/v2/types/typedef/name/hive_table&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;&lt;/H3&gt;</description>
    <pubDate>Wed, 14 Mar 2018 23:10:33 GMT</pubDate>
    <dc:creator>laura_ngo</dc:creator>
    <dc:date>2018-03-14T23:10:33Z</dc:date>
    <item>
      <title>Facing errors while adding attributes in TYPE - hive_table in ATLAS ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Facing-errors-while-adding-attributes-in-TYPE-hive-table-in/m-p/178903#M75812</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am issue with below CURL command while adding new attribute in hive_table Type in ATLAS&lt;/P&gt;&lt;P&gt;curl -v -u admin:admin -H "Content-Type: application/json" -X POST -d '{
 "entityDefs": [
{
    "category": "ENTITY",
    "guid": "a4cd0760-dbf1-41c8-a737-c423ca62e905",
    "createdBy": "atlas",
    "updatedBy": "atlas",
    "version": 2,
    "name": "hive_table",
    "description": "hive_table",
    "typeVersion": "1.1",
    "options": {
        "schemaElementsAttribute": "columns"
    },
    "attributeDefs": [
    {
            "name": "new_attrib",
            "typeName": "string",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 1,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false
        },
        {
            "name": "db",
            "typeName": "hive_db",
            "isOptional": false,
            "cardinality": "SINGLE",
            "valuesMinCount": 1,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false
        },
        {
            "name": "createTime",
            "typeName": "date",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 0,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false
        },
        {
            "name": "lastAccessTime",
            "typeName": "date",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 0,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false
        },
        {
            "name": "comment",
            "typeName": "string",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 0,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false
        },
        {
            "name": "retention",
            "typeName": "int",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 0,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false
        },
        {
            "name": "sd",
            "typeName": "hive_storagedesc",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 0,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false,
            "constraints": [
                {
                    "type": "ownedRef"
                }
            ]
        },
        {
            "name": "partitionKeys",
            "typeName": "array&amp;lt;hive_column&amp;gt;",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 0,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false,
            "constraints": [
                {
                    "type": "ownedRef"
                }
            ]
        },
        {
            "name": "aliases",
            "typeName": "array&amp;lt;string&amp;gt;",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 0,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false
        },
        {
            "name": "columns",
            "typeName": "array&amp;lt;hive_column&amp;gt;",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 0,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false,
            "constraints": [
                {
                    "type": "ownedRef"
                }
            ]
        },
        {
            "name": "parameters",
            "typeName": "map&amp;lt;string,string&amp;gt;",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 0,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false
        },
        {
            "name": "viewOriginalText",
            "typeName": "string",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 0,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false
        },
        {
            "name": "viewExpandedText",
            "typeName": "string",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 0,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false
        },
        {
            "name": "tableType",
            "typeName": "string",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 0,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": false
        },
        {
            "name": "temporary",
            "typeName": "boolean",
            "isOptional": true,
            "cardinality": "SINGLE",
            "valuesMinCount": 0,
            "valuesMaxCount": 1,
            "isUnique": false,
            "isIndexable": true
        }
    ],
    "superTypes": [
        "DataSet"
    ],
    "subTypes": []
}]
}' &lt;A href="http://localhost:21000/api/atlas/v2/entity/guid/a4cd0760-dbf1-41c8-a737-c423ca62e905/classifications" target="_blank"&gt;http://localhost:21000/api/atlas/v2/entity/guid/a4cd0760-dbf1-41c8-a737-c423ca62e905/classifications&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I replaced POST to PUT , Even i am getting error , Can u please help on this&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 18:09:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Facing-errors-while-adding-attributes-in-TYPE-hive-table-in/m-p/178903#M75812</guid>
      <dc:creator>nittala999</dc:creator>
      <dc:date>2018-03-14T18:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Facing errors while adding attributes in TYPE - hive_table in ATLAS ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Facing-errors-while-adding-attributes-in-TYPE-hive-table-in/m-p/178904#M75813</link>
      <description>&lt;P&gt;I think you are using the wrong API. I believe you need to use PUT /v2/types/typedefs - see &lt;A href="https://atlas.apache.org/api/v2/ui/index.html#!/TypesREST/resource_TypesREST_updateAtlasTypeDefs_PUT" target="_blank"&gt;https://atlas.apache.org/api/v2/ui/index.html#!/TypesREST/resource_TypesREST_updateAtlasTypeDefs_PUT&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To see the current definition of have_table you can do GET &lt;A href="http://localhost:21000/api/atlas/v2/types/typedef/name/hive_table" target="_blank"&gt;http://localhost:21000/api/atlas/v2/types/typedef/name/hive_table&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;&lt;/H3&gt;</description>
      <pubDate>Wed, 14 Mar 2018 23:10:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Facing-errors-while-adding-attributes-in-TYPE-hive-table-in/m-p/178904#M75813</guid>
      <dc:creator>laura_ngo</dc:creator>
      <dc:date>2018-03-14T23:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Facing errors while adding attributes in TYPE - hive_table in ATLAS ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Facing-errors-while-adding-attributes-in-TYPE-hive-table-in/m-p/178905#M75814</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/3758/laurango.html"&gt;@Laura Ngo&lt;/A&gt; , Thanks for u r quick response,&lt;/P&gt;&lt;P&gt;I tried with &lt;STRONG&gt;&lt;U&gt;POST &lt;/U&gt;&lt;/STRONG&gt;and &lt;STRONG&gt;&lt;U&gt;&lt;A href="http://localhost:21000/api/atlas/v2/types/typ" target="_blank"&gt;http://localhost:21000/api/atlas/v2/types/typ&lt;/A&gt;&lt;/U&gt;edef&lt;U&gt;/&lt;/U&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;STRONG&gt;name/hive_table&lt;/STRONG&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Command executed fine and no errors are showing&lt;/P&gt;&lt;P&gt;But new value is not reflected , Still its showing old attributes for that table&lt;/P&gt;&lt;P&gt;New attribute not added&lt;/P&gt;&lt;P&gt;Can you please help on this...!!!&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 15:23:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Facing-errors-while-adding-attributes-in-TYPE-hive-table-in/m-p/178905#M75814</guid>
      <dc:creator>nittala999</dc:creator>
      <dc:date>2018-03-15T15:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Facing errors while adding attributes in TYPE - hive_table in ATLAS ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Facing-errors-while-adding-attributes-in-TYPE-hive-table-in/m-p/178906#M75815</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/3758/laurango.html"&gt;@Laura Ngo&lt;/A&gt; , I tried with POST also , Same issue, Its not reflecting&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 14:30:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Facing-errors-while-adding-attributes-in-TYPE-hive-table-in/m-p/178906#M75815</guid>
      <dc:creator>nittala999</dc:creator>
      <dc:date>2018-03-16T14:30:20Z</dc:date>
    </item>
  </channel>
</rss>

