Valid CCA175 Dumps shared by EduDump.com for Helping Passing CCA175 Exam! EduDump.com now offer the newest CCA175 exam dumps, the EduDump.com CCA175 exam questions have been updated and answers have been corrected get the newest EduDump.com CCA175 dumps with Test Engine here:
CORRECT TEXT Problem Scenario 12 : You have been given following mysql database details as well as other info. user=retail_dba password=cloudera database=retail_db jdbc URL = jdbc:mysql://quickstart:3306/retail_db Please accomplish following. 1. Create a table in retailedb with following definition. CREATE table departments_new (department_id int(11), department_name varchar(45), created_date T1MESTAMP DEFAULT NOW()); 2 . Now isert records from departments table to departments_new 3 . Now import data from departments_new table to hdfs. 4 . Insert following 5 records in departmentsnew table. Insert into departments_new values(110, "Civil" , null); Insert into departments_new values(111, "Mechanical" , null); Insert into departments_new values(112, "Automobile" , null); Insert into departments_new values(113, "Pharma" , null); Insert into departments_new values(114, "Social Engineering" , null); 5. Now do the incremental import based on created_date column.
Correct Answer:
See the explanation for Step by Step Solution and configuration. Explanation: Solution : Step 1 : Login to musql db mysql --user=retail_dba -password=cloudera show databases; use retail db; show tables; Step 2 : Create a table as given in problem statement. CREATE table departments_new (department_id int(11), department_name varchar(45), createddate T1MESTAMP DEFAULT NOW()); show tables; Step 3 : isert records from departments table to departments_new insert into departments_new select a.", null from departments a; Step 4 : Import data from departments new table to hdfs. sqoop import \ -connect jdbc:mysql://quickstart:330G/retail_db \ ~ username=retail_dba \ -password=cloudera \ -table departments_new\ --target-dir /user/cloudera/departments_new \ --split-by departments Stpe 5 : Check the imported data. hdfs dfs -cat /user/cloudera/departmentsnew/part" Step 6 : Insert following 5 records in departmentsnew table. Insert into departments_new values(110, "Civil" , null); Insert into departments_new values(111, "Mechanical" , null); Insert into departments_new values(112, "Automobile" , null); Insert into departments_new values(113, "Pharma" , null); Insert into departments_new values(114, "Social Engineering" , null); commit; Stpe 7 : Import incremetal data based on created_date column. sqoop import \ -connect jdbc:mysql://quickstart:330G/retaiI_db \ -username=retail_dba \ -password=cloudera \ --table departments_new\ -target-dir /user/cloudera/departments_new \ -append \ -check-column created_date \ -incremental lastmodified \ -split-by departments \ -last-value "2016-01-30 12:07:37.0" Step 8 : Check the imported value. hdfs dfs -cat /user/cloudera/departmentsnew/part"