Member since
09-18-2015
3274
Posts
1159
Kudos Received
426
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2743 | 11-01-2016 05:43 PM | |
| 9405 | 11-01-2016 05:36 PM | |
| 5111 | 07-01-2016 03:20 PM | |
| 8568 | 05-25-2016 11:36 AM | |
| 4722 | 05-24-2016 05:27 PM |
02-01-2016
12:25 AM
See this @keerthana gajarajakumar Dont put any space after p and provide password. [root@sandbox test_db]# mysql -u root -proot < employees.sql INFO CREATING DATABASE STRUCTURE INFO LOADING departments INFO LOADING employees INFO LOADING dept_emp INFO LOADING dept_manager INFO
... View more
02-01-2016
12:18 AM
@Robin Dong Please stick with ambari. I have shared the link.
... View more
02-01-2016
12:18 AM
@Robin Dong No internet access http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_Installing_HDP_AMB/content/_setting_up_a_local_repository_with_no_internet_access.html
... View more
02-01-2016
12:17 AM
@Robin Dong Yes...please see this http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_Installing_HDP_AMB/content/_using_a_local_repository.html
... View more
02-01-2016
12:13 AM
@rich Great information ..Thank you for taking care of this.
... View more
02-01-2016
12:12 AM
@keerthana gajarajakumar I suggest to load the file from OS. yum -y install git git clone https://github.com/datacharmer/test_db.git [root@sandbox ~]# cd test_db/
[root@sandbox test_db]# ls Changelog employees.sql load_dept_emp.dump load_salaries1.dump load_titles.dump sakila test_employees_md5.sql employees_partitioned_5.1.sql images load_dept_manager.dump load_salaries2.dump objects.sql show_elapsed.sql test_employees_sha.sql employees_partitioned.sql load_departments.dump load_employees.dump load_salaries3.dump README.md sql_test.sh [root@sandbox test_db]# mysql < employees.sql
... View more
02-01-2016
12:07 AM
@keerthana gajarajakumar See the above output of sqoop list-databases --connect jdbc:mysql://localhost:3306 --username root --password root
... View more
02-01-2016
12:05 AM
@keerthana gajarajakumar I loaded the same databases in my system. See this There is chance that you ended up loading it into default or test db. I suggest to load the data using mysql prompt [root@sandbox test_db]# sqoop list-databases --connect jdbc:mysql://localhost:3306 --username root --password xxx Warning: /usr/hdp/2.3.2.0-2950/accumulo does not exist! Accumulo imports will fail. Please set $ACCUMULO_HOME to the root of your Accumulo installation. 16/02/01 00:04:25 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.3.2.0-2950 16/02/01 00:04:25 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead. 16/02/01 00:04:26 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset. SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/hdp/2.3.2.0-2950/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/hdp/2.3.2.0-2950/zookeeper/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] information_schema demomysql employees hive mysql ranger ranger_audit test [root@sandbox test_db]# [root@sandbox test_db]# mysql < employees.sql INFO CREATING DATABASE STRUCTURE INFO LOADING departments INFO LOADING employees INFO LOADING dept_emp INFO LOADING dept_manager INFO LOADING titles INFO LOADING salaries data_load_time_diff 00:00:16
... View more
02-01-2016
12:00 AM
@keerthana gajarajakumar Could you login to mysql and run show databases; command is show databases;
... View more
01-31-2016
11:57 PM
@keerthana gajarajakumar It looks like that your script creates a database employees can you try this? sqoop list-tables --connect jdbc:mysql://localhost:3306/employees --username xxx -password xxx
... View more