2.2. Hive behavioral changes

When using Tez as the Hive execution engine, if the variable hive.server2.enable.doAs is set to true, before the user starts the HiveServer2 process, they should create a scratch directory,

/tmp/hive-[username]

, on HDFS, where [username] is the user who will be running the HiveServer2 process. The directory should have read-write-execute (777) permission.