Hi,

There few possible problems with /tmp directory:

- it's cleaned up after reboot. All the services keep this in mind and never 
use any files in tmp directory after their restart, so no need to keep these 
files after server reboot

- /tmp might be mounted to a small/slow partition. That's the reason for 
thinking about updating the configuration.


1. /tmp is a good choice :) Your tmp-dont-del should be on a fast and 
preferably large partition

2. It's ok, but the service accounts must have RW access to the corresponding 
directories. If you set hive.exec.scratchdir=/mnt/fastdrive/tmp-dont-del/hive , 
you have to make sure, that hive user has RW permissions to 
/mnt/fastdrive/tmp-dont-del/hive


BR,

Dmytro Sen


________________________________
From: Kaliyug Antagonist <[email protected]>
Sent: Thursday, October 22, 2015 2:21 PM
To: [email protected]
Subject: Change the tmp directory

I am planning to install HDP 2.3 using Ambari 2.1.0.

I have installed Ambari using the root privileges.

In the configurations, I found several places where the path is /tmp/*.

e.g:
hive.exec.scratchdir    /tmp/hive
HBase tmp directory     /tmp/hbase-${user.name<http://user.name>}
dev.zookeeper.path      /tmp/dev-storm-zookeeper

I wish to replace the default /tmp path with some custom temp directory(say 
'tmp-dont-del')


  1.  Which is the recommended directory path for the new tmp ?
  2.  Is it fine to create this new temp. directory using root credentials ?

Reply via email to