0 votes
in Sqoop by
I am getting connection failure exception during connecting to Mysql through Sqoop, what is the root cause and fix for this error scenario?

1 Answer

0 votes
by
This will happen when there is lack of permissions to access our Mysql database over the network. We can try the below command to confirm the connect to Mysql database from aSqoop client machine.

$ mysql –host=MySqlnode> –database=test –user= –password=

We can grant the permissions with below commands.

mysql> GRANT ALL PRIVILEGES ON *.* TO ‘%’@’localhost’;

mysql> GRANT ALL PRIVILEGES ON *.* TO ‘ ’@’localhost’;

Related questions

0 votes
0 votes
asked Dec 22, 2022 in Sqoop by SakshiSharma
0 votes
asked Mar 3, 2022 in Sqoop, Flume and Oozie by sharadyadav1986
...