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.

How to use npm package in Apache NIFI's Execute script processor ?

How to use npm package in Apache NIFI's Execute script processor ?

Explorer

I am building a job in which I have to validate phone numbers and we wants to use 'google-libphonenumber' npm package. I am using javascript in executescript processor. What is the correct way to include the npm package?

1 REPLY 1
Highlighted

Re: How to use npm package in Apache NIFI's Execute script processor ?

Super Guru

You might be able to use jvm-npm as a bridge to load that module, but see the documentation on the jvm-npm site for restrictions (such as needing to be a "pure" NPM module that does not depend on the Node.js API)

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