Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

error with insert statement in puthiveql processor in nifi

avatar
New Member

I have a data flow where I want read data from HDFS and write it to the hive table.

My data flow:

1. GetHDFS

2. Split text ( split the file by 1 line, as each line is valid json string)

3. splitjson ( to read the requird josn object, in my case its is gyrodata)

4. evaluatejson ( to select the requird attributes from gyrodata json object)

Next step have done after following the this answer ( here)

5.update attribute ( where i am setting the values for "hiveql.args.N.type" and "hiveql.args.N.value") as shown below

16171-updateattribute.png

6.replacetext processor to write the insert statement

"INSERT INTO TABLE gyroscope PARTITION(carbox_id ='Carboxtest') VALUES( ?, ?, ?, ?, ?,?, ?, ?);"

I tried the insert statement ending with semicolumn and without semicolumn but same error 😞

16172-replacetext.png

7. puthiveql processor with below error ':

16173-error.png

please find below my complete flow :

16174-completeflow.png

1 ACCEPTED SOLUTION

avatar
1 REPLY 1

avatar

@shivanand khobanna - I think you accidentally asked the same question twice:

https://community.hortonworks.com/questions/106919/error-with-insert-statement-in-puthiveql-processo...

Can you please close this one.