Created 01-06-2016 03:32 AM
I am working on HDPCD practice test instance. Can anybody let me know -
a) Is there anything I should do before issue sqoop command on AWS practice instance.
b) what is the parameter I should use for --connect jdbc:?????
Created 02-03-2016 09:44 PM
Everything is configured perfectly fine on the real exam for Sqoop to work. It's also configured correctly on the practice exam. If you are having trouble getting the command to work, the solution is in the /home/horton/solutions folder on the Ubuntu instance. Try running the solution. If that fails, please share the error and I can help you from there.
Created 01-06-2016 03:58 AM
Run below command to list the tables:
sqoop list-tables --connect jdbc:mysql://<mysql-server>/database --username <username> --password <password>
Created 01-06-2016 04:00 AM
what is the value for <MySQL-server> on practice instance?
Created 02-03-2016 09:45 PM
The server name is namenode
Created 01-06-2016 04:02 AM
what is the value for <MySQL-server> on practice instance?
Created 01-06-2016 04:04 AM
@Vidya SK - Goto Ambari UI -> select Hive service -> you should see mysql server there -> just point your mouse arrow over the link and you should get the name of mysql server
OR
you will get it in hive-site.xml
grep -A 2 mysql /etc/hive/conf/hive-site.xml
Created on 01-07-2016 04:17 AM - edited 08-19-2019 05:19 AM
Thanks Kuldeep.
With the above grep command, I got the following:
Sqoop Command:
I am getting following error. Please suggest.
Created 01-07-2016 05:47 AM
@Vidya SK - you are getting access denied exception that means user root does not have access to mysql DB using password 'hadoop'. please check your password and try again with valid username and password
Created 01-07-2016 06:42 AM
Just reset the root password I had to reset the MySQL password to do so follow the below process.Start the DB if its down
[root@sandbox]# service mysqld start
Starting mysqld: [ OK ]
Reset the MySQL password
[root@sandbox]# mysqladmin -u root -h sandbox.hortonworks.com password 'newpassword'
[root@sandbox]# mysqladmin -u root password 'newpassword'
Try out the new password and it seems to work out well
[root@sandbox]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select user();
After validating the successful logon retry
Created 02-02-2016 07:24 PM