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.

Propagating the morphline file path

Highlighted

Propagating the morphline file path

Explorer

Hi...

 

Is there an easy or recommended way of retrieving the path of the file from which a morphline has been compiled

(whenever it is compiled from a file)?

 

One can use the MorphlineContext class to save key-value pairs, including the file path, but the context is not accessible from

the Command object (although it is from the Pipe object).

 

Any other approach?

1 REPLY 1
Highlighted

Re: Propagating the morphline file path

Expert Contributor
Try AbstractCommand.getContext()

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