- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
SQOOP - MYSQL - Practice test instance
- Labels:
-
Apache Sqoop
Created ‎01-06-2016 03:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
what is the value for <MySQL-server> on practice instance?
Created ‎02-03-2016 09:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The server name is namenode
Created ‎01-06-2016 04:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
what is the value for <MySQL-server> on practice instance?
Created ‎01-06-2016 04:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
