Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

1 在hadoop namenode上执行sqoop import --connect jdbc:mysql://10.10.244.131:3306/mysql --table user --us

1 在hadoop namenode上执行sqoop import --connect jdbc:mysql://10.10.244.131:3306/mysql --table user --us

New Contributor

1 在hadoop namenode上执行sqoop import --connect jdbc:mysql://10.10.244.131:3306/mysql --table user --username root

2 报错:java.lang.RuntimeException: java.lang.RuntimeException: java.sql.SQLException: Access denied for user 'root'@'storeone-engin02' (using password: NO)

3 storeone-engin02 的IP是10.10.244.132 ,为什么要去连这个IP的数据库呢?

1 REPLY 1

Re: 1 在hadoop namenode上执行sqoop import --connect jdbc:mysql://10.10.244.131:3306/mysql --table user

Expert Contributor
Hey there,

It looks like Sqoop doesn't have access to your database. Have you tried passing the "--password" argument as per http://sqoop.apache.org/docs/1.4.4/SqoopUserGuide.html#_using_generic_and_specific_arguments.

-Abe
Don't have an account?
Coming from Hortonworks? Activate your account here