Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a java program that reads and parses through the csv file below. Particualry read column G and H. Every injected field must have a
Write a java program that reads and parses through the csv file below. Particualry read column G and H. Every injected field must have a value for either Default or Mapped If find a value that is not mapped throw exception. It is mapped if there is a value in the H column.
1 Nifi Property Name 2 Syester of Record Code 3 4 5 6 7 $ Input Directory File Filter Path Filter 9 Batch Size 10 Keep Source File 1 Recurse Subdirectories 2 Polling Intreval 13 Ignore Hidden Files 14 Minimum File Age 15 5 Maximum File Age 16 Minimum File Size 17 Maximum File Size * Mode 9 Compression Format 19 20 Compression Level 21 Update Filename 22 Command Arguments 23 Command Path 24 Ignore STDIN 25 Working Directory 26 Argument Delimiter 27 Output Destination Attribute es Max Attribute Length 29 Directory 30 Conflict Resolution Strategy 1 Create Missing Directories 32 Maximum File Count 33 Last Modified Time 34 Permissions 35 Owner 36 Group 7 Delete Attributes Expression Store State 38 Stateful Variables Initial Value filename 39 40 1 Directory 2 Conflict Resolution Strategy 3 Create Missing Directories 4 Maximum File Count CL D Nifi Template Property Value ${EdgeStageDir ${EdgeStageDir No Value Set 1 sec true 0 sec No Value Set No Value Set No Value Set gzip true EbcdicToAscii.sh /bin/bash true ${EdgeScriptDir ; No Value Set ${EdgeErrorDir ignore No Value Set No Value Set No Value Set No Value Set No Value Set No Value Set Do not store state No Value Set ${filename:append ${EdgeArchiveDir replace No value set FALSE FALSE TRUE TRUE E UI Field Type Custom String Custom String Blank Set 10 Custom Valuc Choice Menu Choice Menu Custom Valuc Choice Menu Custom Value Blank Set Custom Value Blank Set Choice Menu Choice Menu 1 Choice Menu Choice Menu Custom String Custom String Choice Menu Choice Menu Custom String Blank Set 256 Custom String Choice Menu Choice Menu Choice Menu Blank Set Blank Set Blank Set Blank Set Blank Set Blank Set Choice Menu Blank Set Custom String Custom String Choice Menu Choice Menu Blank Set F Injected In Nifi Yes No Yes Yes Yes No Yes Yes No Yes No No No No No Yes no yes Yes No no Yes Yes Yes no no no no no no Yes no Yes Yes yes yes no Injection Default Value EDW.".dat.ga 1 sec 0 sec EbcdicToAscii.ch /bin/bash i ${EdgeErrorDir ignore Do not store state replace G FALSE FALSE TRUE TRUE TRUE TRUE 10 256 H STREAMSETS PROPERTY NAME EDGE_DIR STAGE DQ SCRIPT_NAME FILENAME_PATTERN EDGE ARCHIVE_DIR I K List ED HIV HIV ED SO SUB zor LOI SC EX TR HIV FIL ED HD PK HIV I DQ DQ EN ED HD co SD SD CLE ED TEM
Step by Step Solution
There are 3 Steps involved in it
Step: 1
1 Import necessary libraries Java import comopencsvCSVReader import javaioFileReader import javaioIOException 2 Specify file path Java String csvFilePath pathtoyourcsvfilecsv 3 Initialize CSV reader J...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started