Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 11-30-2016 07:18 AM
Below are the errors i'm getting while loading CSV file to HIVE table using NIFI.
1.Hive streaming connect/write error, flowfile will be penalized and routed to retry.
2.Error connecting to Hive endpoint:table routes at thrift.
3.Failed to create hive writer for endpoint.
Any solutions for the above much appreciated& Thanks a lot in advance.
Created 11-30-2016 09:08 AM
Ah, Hive has reached the maximum number of open transactions. There is the parameter hive.max.open.txns that limits the number (compare to https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions ). Default Value is 100000 - this should be high enough, and I guess you did not change it, but maybe you want to check it.
Not sure what is going on in your environment but maybe you want to have a look Chapter 6 of http://hortonworks.com/hadoop-tutorial/using-hive-acid-transactions-insert-update-delete-data/ to see how to manage your open transactions.
Hope this helps.
Created 11-30-2016 07:36 AM
Bhanu, can you please share the entry of the nifi-app.log for the error to see what exactly happened?
Created 11-30-2016 08:22 AM
please check this, this helped me
Created 11-30-2016 09:08 AM
Ah, Hive has reached the maximum number of open transactions. There is the parameter hive.max.open.txns that limits the number (compare to https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions ). Default Value is 100000 - this should be high enough, and I guess you did not change it, but maybe you want to check it.
Not sure what is going on in your environment but maybe you want to have a look Chapter 6 of http://hortonworks.com/hadoop-tutorial/using-hive-acid-transactions-insert-update-delete-data/ to see how to manage your open transactions.
Hope this helps.
Created 11-30-2016 09:08 AM
Created 11-30-2016 09:08 AM
Thanks Bhanu, the error comes from Hive. Can you please also have a look at the hive metastore log file and share any related error message?
Created 11-30-2016 09:08 AM
Created 11-30-2016 09:42 AM
I have changed Open txns limit & enabled Run compactor to ' TRUE' & changed the numbers of threads used by compactor ='5'.Now i'm able to load data in to my Hive table. Thanks a lot for help Peter.It worked like an charm.
Created 11-30-2016 09:53 AM
Very good, glad to help. I transformed the comment that helped finally to an answer and would be happy if you accept it 😉 Thanks.
Created 11-30-2016 10:03 AM
Sure & Thank you very much indeed.