Sqoop: How to load all tables except one?

+1 vote

I have many tables that I want to import in Sqoop. I can use import-all-tables options but the problem is that I don't want to import one table in that. How can import all tables excpet one?

Feb 18, 2019 in Big Data Hadoop by Karza
1,054 views
Good explanation

1 answer to this question.

+1 vote
Best answer

You can use the import-all-tables option and along with that, use the --exclude-tables option to exclude the table that you don't want to import: For example:

sqoop import-all-tables --connect jdbc:mysql://localhost/sqoop --username root --password hadoop --target-dir '/Sqoop21/AllTables' --exclude-tables <table1>,<tables2>
answered Feb 18, 2019 by Omkar
• 68,840 points

selected Dec 2, 2019 by Kalgi

Related Questions In Big Data Hadoop

0 votes
1 answer

How to import tables into Hive from Sqoop?

Very simple, in your sqoop command that ...READ MORE

answered May 15, 2019 in Big Data Hadoop by John
102 views
0 votes
1 answer

How to decrease load on HBase while importing Sqoop?

Sqoop by default serializes all the input ...READ MORE

answered May 16, 2019 in Big Data Hadoop by Yogi
69 views
0 votes
1 answer

How to load unencrypted tables to encrypted in Hive?

Refer to the below command to load ...READ MORE

answered May 30, 2019 in Big Data Hadoop by John
40 views
0 votes
1 answer

How to load encrypted tables to encrypted table in Hive?

If the data is already encrypted, use ...READ MORE

answered May 30, 2019 in Big Data Hadoop by Esha
58 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,840 points
3,838 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,840 points
523 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
20,315 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,290 points
1,437 views
0 votes
1 answer

How to load multiple tables in Sqoop?

U can use " import-all-tables " option ...READ MORE

answered Feb 18, 2019 in Big Data Hadoop by Omkar
• 68,840 points
507 views
0 votes
3 answers

Spark Scala: How to list all folders in directory

val spark = SparkSession.builder().appName("Demo").getOrCreate() val path = new ...READ MORE

answered Dec 4, 2018 in Big Data Hadoop by Mark
3,030 views