104k views
1 vote
How can a Sqoop invocation be constrained to only run one mapper?

A. Use the --limit mapper=1 parameter.
B. Use the -mapper 1 parameter.
C. Use the --single parameter.
D. Use the -m 1 parameter.

User Argamanza
by
8.2k points

1 Answer

2 votes

Final answer:

To constrain a Sqoop job to a single mapper, use the '-m 1' parameter. This option can aid in debugging or importing data from sources not supporting parallelism.

Step-by-step explanation:

To constrain a Sqoop invocation to only run one mapper, you would use the -m option followed by the number 1. Thus the correct answer is D.

Use the -m 1 parameter. Sqoop is a tool designed to transfer data between Hadoop and relational databases. It allows the user to specify the number of mappers that will perform the data transfer task. Using only one mapper can be useful for debugging, or when working with data sources that do not support parallel imports.

User Pea
by
7.7k points