title: sqoop import complete but hive show tables can't see table
body: <p>After install hadoop, hive (CDH version) I execute</p>
  
  <pre><code>./sqoop import -connect jdbc:mysql://10.164.11.204/server -username root -password password -table user -hive-import --hive-home /opt/hive/
  </code></pre>
  
  <p>All goes fine, but when I enter hive command line and execute show tables, there are nothing.
  I use ./hadoop fs -ls, I can see /user/(username)/user existing.</p>
  
  <p>Any help is appreciated.</p>
  
  <p>---EDIT-----------</p>
  
  <pre><code>/sqoop import -connect jdbc:mysql://10.164.11.204/server -username root -password password -table user -hive-import --target-dir /user/hive/warehouse
  </code></pre>
  
  <p>import fail due to :</p>
  
  <pre><code>11/07/02 00:40:00 INFO hive.HiveImport: FAILED: Error in semantic analysis: line 2:17 Invalid Path 'hdfs://hadoop1:9000/user/ubuntu/user': No files matching path hdfs://hadoop1:9000/user/ubuntu/user
  11/07/02 00:40:00 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: Hive exited with status 10
          at com.cloudera.sqoop.hive.HiveImport.executeExternalHiveScript(HiveImport.java:326)
          at com.cloudera.sqoop.hive.HiveImport.executeScript(HiveImport.java:276)
          at com.cloudera.sqoop.hive.HiveImport.importTable(HiveImport.java:218)
          at com.cloudera.sqoop.tool.ImportTool.importTable(ImportTool.java:362)
          at com.cloudera.sqoop.tool.ImportTool.run(ImportTool.java:423)
          at com.cloudera.sqoop.Sqoop.run(Sqoop.java:144)
          at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
          at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
          at com.cloudera.sqoop.Sqoop.runSqoop(Sqoop.java:180)
          at com.cloudera.sqoop.Sqoop.runTool(Sqoop.java:218)
          at com.cloudera.sqoop.Sqoop.main(Sqoop.java:228)
  </code></pre>