I am using Cloudera Quickview VM 5.10
The following is my implementation which is not working.
- Created a new file (sample.sql) in "user/hive/warehouse" using Hue. The extension is sql.
- In Edit mode, I wrote some SQL code (use testdb; select * from sometable;)
- Saved the changes. In the HDFS terminal entered the following command
hive -f /user/hive/warehouse/sample.sql
It says the file not found. If I changed the file location to "/user/cloudera/sample.sql" then also the same issue. If I change the file location to "/home/cloudera/sample.sql" then it is invoking Hive and working as expected.
Seems it is a permission issue. How to solve it? Please help.