Hey Michael, Can you confirm the JDK is installed and available from your build?
Does `javac -version` return appropriately? Is JAVA_HOME set? If not, could you set it to the location of your JDK? If it is, can you verify the bin directory associated with it contains a javac? The culprit seems to be the following: [WARNING] Unable to autodetect 'javac' path, using 'javac' from the environment. Curious if it is picking up on the JRE only and not the JDK. Thanks! --aldrin On Tue, Oct 18, 2016 at 3:48 PM, Andy LoPresto <[email protected]> wrote: > Thanks Michael. I'll review this when I am back at my keyboard. > > Andy LoPresto > [email protected] > [email protected] > PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69 > > On Oct 18, 2016, at 12:08, Andy LoPresto <[email protected]> wrote: > > Michael, > > Just to help us close this out, could you please provide the full output > of the Maven build as a GitHub Gist [1]? I understand it’s too long to put > in the email body, but the full output should help us contextualize the > error and hopefully solve this and prevent other users from encountering > it. Thanks. > > [1] https://gist.github.com/ > > Andy LoPresto > [email protected] > *[email protected] <[email protected]>* > PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69 > > On Oct 18, 2016, at 9:17 AM, Giordano, Michael < > [email protected] <[email protected]>> wrote: > > Russell, > > Thank you for the pointer …. much easier J > > Mike G. > > *From:* Russell Bateman [mailto:[email protected] > <[email protected]>] > *Sent:* Tuesday, October 18, 2016 11:32 AM > *To:* [email protected] > *Subject:* Re: Build failure under CentOS 6.7 > > > Michael, > > You don't have to build NiFi yourself to get going, you can just download > pre-built "binaries". It's written in Java, so there are no platform > gotchas at all: > > https://nifi.apache.org/download.html > > On 10/18/2016 07:36 AM, Giordano, Michael wrote: > > I am currently following the NiFi QuickStart to get my first NiFi server > up and running under CentOS 6.7. I am getting compile failures and I’m not > sure why. I started from an empty directory as root (with full permissions) > on a test machine with SELinux disabled. > > > # git clone https://github.com/apache/nifi.git > Initialized empty Git repository in /tmp/nifi/.git/ > remote: Counting objects: 102987, done. > remote: Compressing objects: 100% (496/496), done. > remote: Total 102987 (delta 230), reused 0 (delta 0), pack-reused 102467 > Receiving objects: 100% (102987/102987), 64.93 MiB | 10.24 MiB/s, done. > Resolving deltas: 100% (45888/45888), done. > > # cd nifi > > # git checkout master > > # export MAVEN_OPTS="-Xms1024m -Xmx3076m -XX:MaxPermSize=256m" > > # mvn -T C2.0 clean install > <snip> > [ERROR] Failed to execute goal org.apache.maven.plugins: > maven-compiler-plugin:3.2:compile (default-compile) on project nifi-api: > Compilation failure -> [Help 1] > [ERROR] Failed to execute goal org.apache.maven.plugins: > maven-compiler-plugin:3.2:compile (default-compile) on project > nifi-logging-utils: Compilation failure -> [Help 1] > [ERROR] Failed to execute goal org.apache.maven.plugins: > maven-compiler-plugin:3.2:compile (default-compile) on project > nifi-properties: Compilation failure -> [Help 1] > > cat /etc/redhat-release > CentOS release 6.7 (Final) > > # mvn -version > Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; > 2015-11-10T11:41:47-05:00) > Maven home: /usr/local/apache-maven-3.3.9 > Java version: 1.8.0_101, vendor: Oracle Corporation > Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el6_8. > x86_64/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "2.6.32-573.el6.x86_64", arch: "amd64", family: > "unix" > > Any help is deeply appreciated. > > Thanks, > Mike G. > > > This communication, along with its attachments, is considered confidential > and proprietary to Vistronix. It is intended only for the use of the > person(s) named above. Note that unauthorized disclosure or distribution > of information not generally known to the public is strictly > prohibited. If you are not the intended recipient, please notify the > sender immediately. > > > > >
