Make sure the
.jar file has the appropriate permissions - 644.
Create a user for
SQOOP and grant it permissions.
For example,
using the MySQL database admin utility:
# mysql -u root -p
CREATE USER '<SQOOPUSER>'@'%' IDENTIFIED BY '<SQOOPPASSWORD>';
GRANT ALL PRIVILEGES ON *.* TO '<SQOOPUSER>'@'%';
CREATE USER '<SQOOPUSER>'@'localhost' IDENTIFIED BY '<SQOOPPASSWORD>';
GRANT ALL PRIVILEGES ON *.* TO '<SQOOPUSER>'@'localhost';
CREATE USER '<SQOOPUSER>'@'<SQOOPSERVERFQDN>' IDENTIFIED BY '<SQOOPPASSWORD>';
GRANT ALL PRIVILEGES ON *.* TO '<SQOOPUSER>'@'<SQOOPSERVERFQDN>';
FLUSH PRIVILEGES;
Where
<SQOOPUSER> is the SQOOP user name, <SQOOPPASSWORD> is the SQOOP
user password and <SQOOPSERVERFQDN> is the Fully Qualified Domain Name of
the SQOOP Server host.
Configure the
sqoop-site.xml to create the sqoop database and load the SQOOP Server database
schema.
Hi njayakumar, we have sqoop working with the mysql metastore but oozie gives errors that it can't find the driver to connect to the sqoop metastore.
Caused by: java.sql.SQLException: No suitable driver found for 'jdbc:mysql://<server>.com/sqoop'
The mysql-connector-java.jar is available in the java folder mentioned by you, also available in:
/usr/hdp/current/oozie folders libserver, libtools and lib (as symbolic link)
and for sqoop in
/usr/hdp/current/scoop/lib folder
any thoughts what we are missing here? I already got the same error trying to use the sqoop metastore 'service'. Oozie wasn't able to find that driver either...