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 11 : 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. Import departments table in a directory called departments. 2. Once import is done, please insert following 5 records in departments mysql table. Insert into departments(10, physics); Insert into departments(11, Chemistry); Insert into departments(12, Maths); Insert into departments(13, Science); Insert into departments(14, Engineering); 3. Now import only new inserted records and append to existring directory . which has been created in first step.
Correct Answer:
See the explanation for Step by Step Solution and configuration. Explanation: Solution : Step 1 : Clean already imported data. (In real exam, please make sure you dont delete data generated from previous exercise). hadoop fs -rm -R departments Step 2 : Import data in departments directory. sqoop import \ --connect jdbc:mysql://quickstart:3306/retail_db \ --username=retail_dba \ -password=cloudera \ -table departments \ "target-dir/user/cloudera/departments Step 3 : Insert the five records in departments table. mysql -user=retail_dba --password=cloudera retail_db Insert into departments values(10, "physics"); Insert into departments values(11, "Chemistry"); Insert into departments values(12, "Maths"); Insert into departments values(13, "Science"); Insert into departments values(14, "Engineering"); commit; select' from departments; Step 4 : Get the maximum value of departments from last import, hdfs dfs -cat /user/cloudera/departments/part* that should be 7 Step 5 : Do the incremental import based on last import and append the results. sqoop import \ --connect "jdbc:mysql://quickstart.cloudera:330G/retail_db" \ ~ username=retail_dba \ -password=cloudera \ -table departments \ --target-dir /user/cloudera/departments \ -append \ -check-column "department_id" \ -incremental append \ -last-value 7 Step 6 : Now check the result. hdfs dfs -cat /user/cloudera/departments/part"