By default, hive operations are limited to the superuser. If you are using cdh, then the superuser is hdfs.
The reason for this is because of the permission of hive warehouse directory.
By default the read/permission of this directory is given only to the superuser.
So if we want to use hive from multiple users, change the permission of this directory accordingly.
If you want to make hive usable by all users, then do the following command.
hadoop fs –chmod –R 777 /user/hive/warehouse hadoop fs –chmod –R 777 /tmp
If you group the users in specific groups, then you can do this by giving read/write permission to group only. ie 775
I changed the permissions, but when two of us try use hive at same time we get the error-
Caused by: ERROR XSDB6: Another instance of Derby may have already booted the da tabase /root/metastore_db.
Please use a mysql or postgresql kind database for storing metadata. This is happened because the hive is using derby metastore, which will not allow multiuser functionality. Sorry for the dely in response.