Nifi:can't import getFileSystem in customProcessor?

2017-11-02 Thread sally
I want to use getFileSytem() for pulling in any file that is newer than the timestamp that we have but I can't import it (I mean getFileSytem()) I have this code: final FileSystem hdfs = getFileSystem(); final boolean recursive = context.getProperty(RECURSE_SUBDIRS).asBoolean(); final Set status

Re: Nifi:can't import getFileSystem in customProcessor?

2017-11-03 Thread Mike Thomsen
Are you doing the appropriate import static statement to import that static method? On Fri, Nov 3, 2017 at 2:40 AM, sally wrote: > I want to use getFileSytem() for pulling in any file that is newer than the > timestamp that we have but I can't import it (I mean getFileSytem()) I have > this code

Re: Nifi:can't import getFileSystem in customProcessor?

2017-11-06 Thread sally
Yes , but when i add this static import i can't run maven project ( it doesn't support static imports) -- Sent from: http://apache-nifi-users-list.2361937.n4.nabble.com/

Re: Nifi:can't import getFileSystem in customProcessor?

2017-11-20 Thread Mike Thomsen
Maven doesn't handle static imports, that's either a Java or Groovy compiler issue. So all Maven is telling you is that there is something wrong between your import statement syntax and the declared dependencies. Without more than that, I can't really give you an idea of what's wrong. On Tue, Nov