Set up HDFS user directory
Is this task necessary for Pig View ??? seems Hive-specific
$[USER_NAME]is the user name of the currently logged in user that is accessing the Hive View.
Since many users leverage the default Ambari admin user for getting started with Ambari, the
/user/adminfolder must be created in HDFS. Therefore, be sure to create the admin user directory in HDFS using these instructions before using the view.
- Connect to a host in the cluster that includes the HDFS client.
Switch to the hdfs system account user.
su - hdfs
Using the HDFS client, make an HDFS directory for the user.
For example, if your username is admin, you would create the following directory:
hadoop fs -mkdir /user/admin
Set the ownership on the newly created directory.
For example, if your username is admin, you would make that user the directory owner.
hadoop fs -chown admin:hadoop /user/admin