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