env:sqoop-1.4.2 hadoop-1.0.4 hive-0.9.0
import cmd: ./bin/sqoop import --connect jdbc:mysql://localhost/metrics --username root -password 1023 --table Visit --hive-import --create-hive-table --hive-table hivevisit2 --hive-home /home/hadoop/hive/
files exist in hdfs: Found 1 items drwxr-xr-x - hadoop supergroup 0 2013-02-19 10:36 /user/hive/warehouse/hivevisit2
but show tables in hive,table hivevisit2 doesnot exist
lt seems that when exe cmd "sqoop -hive-import" ,lt will create the table automaticly,but why when l cann't see the table
if i re-execute cmd "./bin/sqoop import --connect jdbc:mysql://localhost/metrics --username root -password 1023 --table Visit --hive-import --create-hive-table --hive-table hivevisit2 --hive-home /home/hadoop/hive/"
error shows "Error in metadata: AlreadyExistsException(message:Table hivevisit2 already exists)"
could anyone tell me the solution how to automatic create table during hive import