Sqoop import all tables to hive

I’m trying to import all tables from mysql to hive warehouse. I’m trying to create hive tables while importing.

Tables are not creating in that “retail_stage.db” database directory, they are creating outside database directory. What might be the problem?

sqoop import-all-tables
–connect “jdbc:mysql://quickstart.cloudera:3306/retail_db”
–username retail_dba
–password cloudera
–fields-terminated-by ‘|’

please check in the Default database. If you want to create hive tables in some other database then you need to mention by using the -hive-database <db_name>.