Sqoop 면접 질문과 답변
Ques 6. Explain the export command in Sqoop.
The export command in Sqoop is used to export data from Hadoop to a relational database.
Example:
sqoop export --connect jdbc:mysql://localhost:3306/db --table mytable --export-dir /user/hadoop/mytable
Ques 7. What is the purpose of the --update-key option in Sqoop export?
The --update-key option specifies the column(s) used to identify rows for updates when performing an export.
Ques 8. Explain the purpose of the --direct option in Sqoop.
The --direct option enables direct export or import between Hadoop and the database without using HDFS as an intermediary.
Ques 9. What is the metastore in Sqoop?
The metastore in Sqoop is a central repository that stores metadata related to Sqoop jobs, such as saved jobs, connection information, and job history.
Ques 10. Explain the purpose of the --as-textfile option in Sqoop.
The --as-textfile option in Sqoop specifies that the data should be stored in text format in HDFS during import.
Most helpful rated by users: