<?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 Ranger HDFS Policy fails if the Number of HDFS PAHT is 128. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-HDFS-Policy-fails-if-the-Number-of-HDFS-PAHT-is-128/m-p/129560#M43448</link>
    <description>&lt;P&gt;We want to restrict the access to only specified tables( 200 tables) using Ranger Hive/HDFS policy. &lt;/P&gt;&lt;P&gt;To Achieve this, we created HDFS and HIVE policy using REST API. In the HDFS policy, we individually list
out all the HDFS paths in the hdfs policy i.e. /apps/hive/warehouse/test.db/table1,/apps/hive/warehouse/test.db/table2, so that user can not bypass the Ranger Hive policies
and access all the tables using the Hive CLI or HDFS client.&lt;/P&gt;&lt;P&gt;Problem is, If the number of HDFS Path is more than 128, then REST API call for HDFS policy is failing with below error:&lt;/P&gt;&lt;P&gt;{"statusCode":1,"msgDesc":"Exception
[EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20131113-a7346c6):
org.eclipse.persistence.exceptions.DatabaseException\nInternal Exception:
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for
column 'sort_order' at row 1\nError Code: 1264\nCall: INSERT INTO
x_policy_resource_map (ADDED_BY_ID, CREATE_TIME, sort_order, resource_id,
UPDATE_TIME, UPD_BY_ID, value) VALUES (?, ?, ?, ?, ?, ?, ?)\n\tbind =&amp;gt; [7
parameters bound]\nQuery: InsertObjectQuery(XXPolicyResourceMap
[XXDBBase={createTime={Wed Oct 12 22:00:32 EDT 2016} updateTime={Thu Oct 13
13:56:38 EDT 2016} addedByUserId={1} updatedByUserId={1} } id=null,
resourceId=167, value=/apps/hive/warehouse/dev_tbls.db/abcd, &lt;STRONG&gt;order=128&lt;/STRONG&gt;])"}&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 22:19:38 GMT</pubDate>
    <dc:creator>bigdataam09</dc:creator>
    <dc:date>2016-10-13T22:19:38Z</dc:date>
    <item>
      <title>Ranger HDFS Policy fails if the Number of HDFS PAHT is 128.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-HDFS-Policy-fails-if-the-Number-of-HDFS-PAHT-is-128/m-p/129560#M43448</link>
      <description>&lt;P&gt;We want to restrict the access to only specified tables( 200 tables) using Ranger Hive/HDFS policy. &lt;/P&gt;&lt;P&gt;To Achieve this, we created HDFS and HIVE policy using REST API. In the HDFS policy, we individually list
out all the HDFS paths in the hdfs policy i.e. /apps/hive/warehouse/test.db/table1,/apps/hive/warehouse/test.db/table2, so that user can not bypass the Ranger Hive policies
and access all the tables using the Hive CLI or HDFS client.&lt;/P&gt;&lt;P&gt;Problem is, If the number of HDFS Path is more than 128, then REST API call for HDFS policy is failing with below error:&lt;/P&gt;&lt;P&gt;{"statusCode":1,"msgDesc":"Exception
[EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20131113-a7346c6):
org.eclipse.persistence.exceptions.DatabaseException\nInternal Exception:
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for
column 'sort_order' at row 1\nError Code: 1264\nCall: INSERT INTO
x_policy_resource_map (ADDED_BY_ID, CREATE_TIME, sort_order, resource_id,
UPDATE_TIME, UPD_BY_ID, value) VALUES (?, ?, ?, ?, ?, ?, ?)\n\tbind =&amp;gt; [7
parameters bound]\nQuery: InsertObjectQuery(XXPolicyResourceMap
[XXDBBase={createTime={Wed Oct 12 22:00:32 EDT 2016} updateTime={Thu Oct 13
13:56:38 EDT 2016} addedByUserId={1} updatedByUserId={1} } id=null,
resourceId=167, value=/apps/hive/warehouse/dev_tbls.db/abcd, &lt;STRONG&gt;order=128&lt;/STRONG&gt;])"}&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 22:19:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-HDFS-Policy-fails-if-the-Number-of-HDFS-PAHT-is-128/m-p/129560#M43448</guid>
      <dc:creator>bigdataam09</dc:creator>
      <dc:date>2016-10-13T22:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger HDFS Policy fails if the Number of HDFS PAHT is 128.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-HDFS-Policy-fails-if-the-Number-of-HDFS-PAHT-is-128/m-p/129561#M43449</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10404/bigdataam09.html" nodeid="10404"&gt;@Amit Kumar Agarwal&lt;/A&gt;&lt;P&gt; Which version of HDP are you are using? Please check the datatype of the column "sort_order" in x_policy_resource_map table and if it tiny_int, please alter it to int and try?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 23:55:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-HDFS-Policy-fails-if-the-Number-of-HDFS-PAHT-is-128/m-p/129561#M43449</guid>
      <dc:creator>rmani</dc:creator>
      <dc:date>2016-10-13T23:55:52Z</dc:date>
    </item>
  </channel>
</rss>

