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 14 : 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 activities. 1. Create a csv file named updated_departments.csv with the following contents in local file system. updated_departments.csv 2 ,fitness 3 ,footwear 1 2,fathematics 1 3,fcience 1 4,engineering 1 000,management 2. Upload this csv file to hdfs filesystem, 3. Now export this data from hdfs to mysql retaildb.departments table. During upload make sure existing department will just updated and new departments needs to be inserted. 4. Now update updated_departments.csv file with below content. 2 ,Fitness 3 ,Footwear 1 2,Fathematics 1 3,Science 1 4,Engineering 1 000,Management 2 000,Quality Check 5. Now upload this file to hdfs. 6. Now export this data from hdfs to mysql retail_db.departments table. During upload make sure existing department will just updated and no new departments needs to be inserted.
Correct Answer:
See the explanation for Step by Step Solution and configuration. Explanation: Solution : Step 1 : Create a csv tile named updateddepartments.csv with give content. Step 2 : Now upload this tile to HDFS. Create a directory called newdata. hdfs dfs -mkdir new_data hdfs dfs -put updated_departments.csv newdata/ Step 3 : Check whether tile is uploaded or not. hdfs dfs -Is new_data Step 4 : Export this file to departments table using sqoop. sqoop export --connect jdbc:mysql://quickstart:3306/retail_db \ -username retail_dba \ --password cloudera \ -table departments \ --export-dir new_data \ -batch \ -m 1 \ -update-key department_id \ -update-mode allowinsert Step 5 : Check whether required data upsert is done or not. mysql --user=retail_dba - password=cloudera show databases; use retail_db; show tables; select" from departments; Step 6 : Update updated_departments.csv file. Step 7 : Override the existing file in hdfs. hdfs dfs -put updated_departments.csv newdata/ Step 8 : Now do the Sqoop export as per the requirement. sqoop export --connect jdbc:mysql://quickstart:3306/retail_db \ -username retail_dba\ --password cloudera \ --table departments \ --export-dir new_data \ --batch \ -m 1 \ --update-key-department_id \ -update-mode updateonly Step 9 : Check whether required data update is done or not. mysql --user=retail_dba - password=cloudera show databases; use retail db; show tables; select" from departments;