Unable to create table in Hive
<p>I am running below simple query to create a simple table.</p>

<blockquote>
  <p>create table test (id int, name varchar(20));</p>
</blockquote>

<p>But I am getting the below error, please let know what need to be done exactly.</p>

<blockquote>
  <p>FAILED: Execution Error, return code 1 from 
  org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:file:/user
  /hive/warehouse/test is not a directory or unable to create one)</p>
</blockquote>

<p>I have given full read/write access to /user/hive/warehouse folder.</p>