Hi Vibhath,

NiFi supports Java 8 and 11, and automated builds regularly run on
AdoptOpenJDK and Azul Zulu JDK.  The particular error you mentioned was
recently resolved in a pull request for NIFI-6714.  The fix will be
included in the next release of NiFi.

https://issues.apache.org/jira/browse/NIFI-6714

The message is a warning on Java 11, but does not prevent NiFi from
starting.  Newer versions of Java block such illegal reflective access
operations, so for now, Java 8 or 11 should work.

Regards,
David Handermann

On Wed, May 5, 2021 at 10:22 AM Cristiano Silva <[email protected]>
wrote:

> I use openjdk 8.
>
> Check the version of java (openjdk) you are using.
>
> Try using it (openjdk 8) and see if it works.
>
> Atenciosamente,
> Cristiano Luís Turbino de França e Silva
> ==============================
>                       GNU / Linux
>     ,                ,       /       .-.
>    /                  \     /      (e e)
>   ((__-^^-,-^^-__))   /     _.`V'._
>     `-_---' `---_-'      /    //~~W~~\\
>   <__|o ` 'o|__>   /    //,           ,\\
>         \   `  /       /    // |            | \\
>          ):  :(      /      \) |            | (/
>         :o_o:    /           \           /
>           "-"    /              `w -  w'
>
>
> On Wed, May 5, 2021 at 10:13 AM Vibhath Ileperuma <
> [email protected]> wrote:
>
>> Hi All,
>>
>> I tried to start NIFI binary downloaded from apache NIFI website, in a
>> linux environment in which java openjdk is installed. When I start the
>> NIFI, the following warnings are printed. These warnings are written in
>> nifi-boostrap.log file too.
>>
>> WARNING: An illegal reflective access operation has occurred
>>
>> WARNING: Illegal reflective access by
>> org.apache.nifi.bootstrap.util.OSUtils
>> (file:/x01/vibhath/nifi-1.13.2/lib/bootstrap/nifi-bootstrap-1.13.2.jar) to
>> method java.lang.ProcessImpl.pid()
>>
>> WARNING: Please consider reporting this to the maintainers of
>> org.apache.nifi.bootstrap.util.OSUtils
>>
>> WARNING: Use --illegal-access=warn to enable warnings of further illegal
>> reflective access operations
>>
>> WARNING: All illegal access operations will be denied in a future release
>>
>>
>> When oracle jdk is used, no warnings are printed. Is this warings printed
>> because of openJDK? Could you please let me know the impact of these
>> warnings.
>>
>> Is it possible to find an openJDK supported NIFI binary from the
>> internet?  Or else, should we build NIFI from source?
>>
>>
>> I would be grateful if you could clarify my doubts.
>>
>>
>>
>> *Best Regards,*
>>
>> *Vibhath*
>>
>>
>>

Reply via email to