<?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 /apps/hive/warehouse permission is showing 777 by default in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/apps-hive-warehouse-permission-is-showing-777-by-default/m-p/140006#M102629</link>
    <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;If we create a database or internal tables then by default it is creating with 777 permission. &lt;/P&gt;&lt;P&gt;I have umask in hdfs but not sure why it is not applicable for /apps/hive/warehouse dir. So any idea how we can prevent it from 777 to 755 or 750.&lt;/P&gt;&lt;P&gt;Thanks in advance.  &lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2016 15:42:52 GMT</pubDate>
    <dc:creator>SK1</dc:creator>
    <dc:date>2016-09-07T15:42:52Z</dc:date>
    <item>
      <title>/apps/hive/warehouse permission is showing 777 by default</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apps-hive-warehouse-permission-is-showing-777-by-default/m-p/140006#M102629</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;If we create a database or internal tables then by default it is creating with 777 permission. &lt;/P&gt;&lt;P&gt;I have umask in hdfs but not sure why it is not applicable for /apps/hive/warehouse dir. So any idea how we can prevent it from 777 to 755 or 750.&lt;/P&gt;&lt;P&gt;Thanks in advance.  &lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 15:42:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apps-hive-warehouse-permission-is-showing-777-by-default/m-p/140006#M102629</guid>
      <dc:creator>SK1</dc:creator>
      <dc:date>2016-09-07T15:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: /apps/hive/warehouse permission is showing 777 by default</title>
      <link>https://community.cloudera.com/t5/Support-Questions/apps-hive-warehouse-permission-is-showing-777-by-default/m-p/140007#M102630</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2273/saurabhmcakiet.html" nodeid="2273"&gt;@Saurabh Kumar&lt;/A&gt;&lt;P&gt;Changing the warehouse directory permission
&lt;A rel="user" href="https://community.cloudera.com/users/2273/saurabhmcakiet.html" nodeid="2273"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;1.From the command line in the Ambari server node, edit the file&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;PRE&gt;/var/lib/ambari-server/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py
&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Search for &lt;CODE&gt;hive_apps_whs_dir&lt;/CODE&gt; which should go to this block:&lt;PRE&gt;  params.HdfsResource(params.hive_apps_whs_dir,
    type="directory",
    action="create_on_execute",
    owner=params.hive_user,
    group=params.user_group,
    mode=0755
  )
&lt;/PRE&gt;
&lt;/LI&gt;&lt;LI&gt;Modify the value for mode from 0755 to the desired permission, for example 0777.&lt;/LI&gt;&lt;LI&gt;Save and close the file.&lt;/LI&gt;
&lt;LI&gt;Restart the Ambari server to propagate the change to all nodes in the cluster:&lt;PRE&gt;ambari-server restart
&lt;/PRE&gt;
&lt;P&gt;It may take a few seconds to update the file in the Ambari agents on all nodes. To verify if the change has been applied on a particular node, check the content of hive.py in&lt;/P&gt;&lt;PRE&gt;/var/lib/ambari-server/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py
&lt;/PRE&gt;
&lt;/LI&gt;&lt;LI&gt;From the Ambari UI, restart HiveServer2 to apply the new permission to the warehouse directory. If multiple HiveServer2 instances are configured, any one instance can be restarted.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 00:22:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/apps-hive-warehouse-permission-is-showing-777-by-default/m-p/140007#M102630</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2016-09-08T00:22:05Z</dc:date>
    </item>
  </channel>
</rss>

