Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 09-07-2016 08:42 AM
Team,
If we create a database or internal tables then by default it is creating with 777 permission.
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.
Thanks in advance.
Created 09-07-2016 05:22 PM
Changing the warehouse directory permission
1.From the command line in the Ambari server node, edit the file
/var/lib/ambari-server/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py
hive_apps_whs_dir which should go to this block: params.HdfsResource(params.hive_apps_whs_dir,
type="directory",
action="create_on_execute",
owner=params.hive_user,
group=params.user_group,
mode=0755
)
ambari-server restart
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
/var/lib/ambari-server/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py
Hope this helps you.
Created 09-07-2016 05:22 PM
Changing the warehouse directory permission
1.From the command line in the Ambari server node, edit the file
/var/lib/ambari-server/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py
hive_apps_whs_dir which should go to this block: params.HdfsResource(params.hive_apps_whs_dir,
type="directory",
action="create_on_execute",
owner=params.hive_user,
group=params.user_group,
mode=0755
)
ambari-server restart
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
/var/lib/ambari-server/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py
Hope this helps you.