Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

iam triying to load data from mysql to hdfs on localdomian error is when any streaming result sets are open and in use on a given connection. Ensure that you have called .close() on any active streaming result sets before attempting more queries.

avatar
Rising Star
 
1 ACCEPTED SOLUTION

avatar

@omkar pathallapalli

This issue should be resolved by adding --driver com.mysql.jdbc.Driver at the end of the sqoop command.

For example:

sqoop import --connect $DB_CONNECTION --username $DB_USERNAME --password $DB_PASSWORD --table salaries --target-dir /tmp/salaries --outdir sqoop_import -m -1 --fields-terminated-by ',' --driver com.mysql.jdbc.Driver

Thanks

View solution in original post

2 REPLIES 2

avatar

@omkar pathallapalli

This issue should be resolved by adding --driver com.mysql.jdbc.Driver at the end of the sqoop command.

For example:

sqoop import --connect $DB_CONNECTION --username $DB_USERNAME --password $DB_PASSWORD --table salaries --target-dir /tmp/salaries --outdir sqoop_import -m -1 --fields-terminated-by ',' --driver com.mysql.jdbc.Driver

Thanks

avatar

@omkar pathallapalli

Let us know if the solution I posted worked for you.

Thanks