Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Extracting .rar file in NIFI

Extracting .rar file in NIFI

New Contributor

 I am getting .zip files as well as .rar files from my source location. While i am able to unzip the .zip files using unpack content processor , i am not able to extract the .rar files. I even tried compress component processor but seems that too doesn't support .rar files.  How should i extract the .rar files ?  install winrar in root folder and then call it using execute stream processor ? 

1 REPLY 1
Highlighted

Re: Extracting .rar file in NIFI

Cloudera Employee

UnpackContent processor do not support .rar file:

http://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.11.4/org.apache...

 

Hence, yes you can use an ExecuteStreamCommand processor to invoke WinRAR command-line tool.

Don't have an account?
Coming from Hortonworks? Activate your account here