- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
error with insert statement in puthiveql processor in nifi
- Labels:
-
Apache Atlas
Created on ‎06-08-2017 04:54 PM - edited ‎08-17-2019 10:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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 😞
7. puthiveql processor with below error ':
please find below my complete flow :
Created ‎06-08-2017 08:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@shivanand khobanna - I think you accidentally asked the same question twice:
Can you please close this one.
Created ‎06-08-2017 08:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@shivanand khobanna - I think you accidentally asked the same question twice:
Can you please close this one.
