Member since
12-13-2017
22
Posts
1
Kudos Received
0
Solutions
06-02-2018
04:04 PM
1)CREATE TABLE md
ROW FORMAT SERDE
'org.apache.hadoop.hive.serde2.avro.AvroSerDe'
WITH SERDEPROPERTIES () 'avro.schema.url'='/user/cloudera/departments.avsc')
STORED as INPUTFORMAT
'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat'; 2)LOAD DATA INPATH '/user/cloudera/departments/part-m-00000.avro' into table md; hive> SET hive.exec.dynamic.partition = true; hive> SET hive.exec.dynamic.partition.mode = nonstrict; 3)create table mda(a int) partitioned by(name string); 4)nsert overwrite table mda partition(name) select department_id,department_name from md; Try this way you can create paritions from avro file too
... View more
05-10-2018
04:05 PM
You can use RounteOnAttribute if you have some way to identifying which files goes to which destination like in filename, path etc. Check attributes of the flow file to see if any can be used. Then use those attributes to create 3 paths, something like: https://community.hortonworks.com/questions/54811/redirecting-flow-based-on-certain-condition-nifi.html
... View more
03-26-2018
02:02 AM
@Adithya Sajjanam sys_extract_utc is not a valid Hive function. You are translating your Oracle query as is and that's why getting this error. You can refer to the Hive documentation for reference to Date functions in hive and translate your query from Oracle syntax to Hive QL accordingly.
... View more
01-09-2018
07:23 PM
1 Kudo
Bin packing is the standard strategy that is used when merging
together data, it just writes the bytes of each flow file one after
another, inserting optional header, footer, and demarcators. Defragment strategy is for when you have previously used one of the
"split" processors and want to undo the split back to a single flow
file. This mode requires that all of the incoming flow files have the
standard "fragment" attributes like fragment.identifier, fragment.index,
and fragment.count which are created by the split processors.
... View more
12-20-2017
06:49 PM
@Adithya Sajjanam, It will overwrite the data. It will not append the data
... View more
12-14-2017
04:41 PM
Thanks @Matt Burgess
... View more
01-15-2019
04:54 PM
1 Kudo
@Andrew Watson Hi Andrew did you find a way out for this issue
... View more