title: Problems with Sqoop import-all-tables command
body: <p>I am trying to import all the tables from several SQL Server databases into HDFS using Sqoop. I am using Cloudera CDH 5.7. So I type the following command:</p>
  
  <pre><code>sqoop import-all-tables --connect "jdbc:sqlserver://X.X.X.X:1433;database=FEPDB" --username XXXXX --password XXXXX --hive-import
  </code></pre>
  
  <p>It runs successfully but all the tables present in the 'FEPDB' Database are not being imported. I don't find them in the hive directory in the HDFS or when I list all the tables present in Hive. </p>
  
  <p>So I tried to import all the tables into a directory in HDFS and then create hive tables. I gave the following command:</p>
  
  <pre><code>   sqoop import-all-tables --connect "jdbc:sqlserver://X.X.X.X:1433;database=FEPDB" --username XXXXX --password XXXXX --target-dir "/user/FEPDB"
  </code></pre>
  
  <p>It gives me an error saying </p>
  
  <blockquote>
    <p>unrecognized argument --target-dir</p>
  </blockquote>
  
  <p>Doesn't --target-dir argument work with import-all-tables command? And why are all the tables from a database not being imported in the first place? Is there a way to get past these errors and import all the tables in a much easier way?</p>
  
  <p>Any help would be appreciated. Thank you.</p>