Created 02-19-2016 12:57 AM
I have a Kerberized cluster and a shell script containing some sqoop commands. Can we use NiFi ExecuteProcess processor to execute this shell script ?
I don't want to use ExecuteSQL processor because sqoop script has some processing logic that can't be easily replicated in NiFi.
Created 02-19-2016 11:29 AM
@Shishir Saxena execute process is intended for Linux commands, nifi is not a scheduling tool, you still need to use Oozie. Especially if you want to maintain order of your transactions. Oozie is still the solution for that with sqoop job maintaining the last record processed in the sqoop metastore
Created 02-19-2016 11:29 AM
@Shishir Saxena execute process is intended for Linux commands, nifi is not a scheduling tool, you still need to use Oozie. Especially if you want to maintain order of your transactions. Oozie is still the solution for that with sqoop job maintaining the last record processed in the sqoop metastore
Created 02-19-2016 01:23 PM
Thank You for clarifying.
Created 02-19-2016 01:24 PM
@Shishir Saxena you can wrap the sqoop command in shell script and use ExecuteProcess if you'd like, would love to see it as an article on HCC when you get it done.
Created 02-19-2016 02:02 PM
Thanks @Artem Ervits. This is what I originally intended, but ExecuteProcess processor doesn't have any option to specify kerberos credentials.
Created 02-19-2016 02:05 PM
ok good, but in general my original answer still applies, Nifi is not an Oozie and Sqoop replacement. @Shishir Saxena you need either Change Data Capture (CDC) like Golden Gate or Attunity Replicate or Sqoop job with metastore keeping track of all rows processed. Good luck!
Created 02-19-2016 11:39 AM
You are confusing the NiFi functionality.
Solution: See this example https://prodlife.wordpress.com/2013/11/22/using-oozie-in-kerberized-cluster/
Created 02-19-2016 01:24 PM
Thank you for above link.
Created 02-19-2016 01:30 PM
@Shishir Saxena Never hurt to look into alternate solutions @Artem Ervits I know it's NiFi question but there is context to Oozie and kerberos use too.
Created 02-19-2016 01:25 PM
questions is re: Nifi not Oozie