All,

Looks like the reported failures were a bit of a red herring, but provides
some interesting points of consideration for our Quickstart guide.

Pat,

After some inspection, it seems that the default settings for both open
files and processes in 12.04 LTS is quite low which lead to the test
failures.  It was only while watching over the tests running did I see the
notification about too many open files.  I would speculate this is the
problem you are experiencing.

I was able to resolve the issue by applying the best practices laid out in
the administration guide [1] to my VM running the version of Ubuntu in
question.  Please give those settings a go when you have the opportunity
and let us know if that resolves your build issues.

[1]
http://nifi.incubator.apache.org/docs/nifi-docs/html/administration-guide.html#configuration-best-practices


On Wed, Jun 3, 2015 at 5:09 PM, Aldrin Piri <[email protected]> wrote:

> All,
>
> I was able to recreate the errors reported.  My steps are below.  Issue
> NIFI-650 has been created [2].
>
> =======================================
>
> Performed an install into a VM, but ran into a bug with the 12.04.5 LTS
> release where apt is effectively broken on a clean install [1].  The
> solution provided seems to work for me in getting apt running from a clean
> install in a VM.
>
> From there, installed JDK 7 (version 7u79 was installed for me) and git.
> Installed Maven 3.0.5 separately as that is the minimum we support (my
> install only had 3.0.4-2 in apt).
>
> Checked out the code and switched to develop.
> Installed parent successfully.
> Installed nifi-nar-maven-plugin successfully.
> Installed nifi as per the quick start.  Noted that in the build log there
> were interspersed warnings about thread safety in plugins.  One such
> example is below:
>
> [WARNING] *****************************************************************
> [WARNING] * Your build is requesting parallel execution, but project      *
> [WARNING] * contains the following plugin(s) that are not marked as       *
> [WARNING] * @threadSafe to support parallel building.                     *
> [WARNING] * While this /may/ work fine, please look for plugin updates    *
> [WARNING] * and/or request plugins be made thread-safe.                   *
> [WARNING] * If reporting an issue, report it against the plugin in        *
> [WARNING] * question, not against maven-core                              *
> [WARNING] *****************************************************************
> [WARNING] The following plugins are not marked @threadSafe in
> nifi-standard-services-api-nar:
> [WARNING] org.apache.nifi:nifi-nar-maven-plugin:1.0.1-incubating
> [WARNING] *****************************************************************
>
> [1] https://github.com/mininet/mininet/issues/438
> [2] https://issues.apache.org/jira/browse/NIFI-650
>
> On Wed, Jun 3, 2015 at 3:30 PM, Sean Busbey <[email protected]> wrote:
>
>> can you run "mvn -version" and include that too?
>>
>> On Wed, Jun 3, 2015 at 1:56 PM, plj <[email protected]> wrote:
>>
>> > Thanks for the quick reply.  See below:
>> >
>> > java version "1.7.0_07"
>> > Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
>> > Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
>> >
>> > Distributor ID: Ubuntu
>> > Description:    Ubuntu 12.04.5 LTS
>> > Release:        12.04
>> > Codename:       precise
>> >
>> > From: Aldrin Piri [via Apache NiFi (incubating) Developer List] [mailto:
>> > [email protected]]
>> > Sent: Wednesday, June 03, 2015 2:51 PM
>> > To: Jones, Patrick L.
>> > Subject: Re: mvn fail
>> >
>> > Sorry to hear you are having troubles with the process in the quick
>> start
>> > guide.
>> >
>> > Could you please provide some additional details such as Linux
>> > distribution/version and Java version you are running the code against?
>> >
>> > Thanks!
>> >
>> > On Wed, Jun 3, 2015 at 2:17 PM, plj <[hidden
>> > email]</user/SendEmail.jtp?type=node&node=1717&i=0>> wrote:
>> >
>> > >
>> > >
>> > > Howdy,
>> > >
>> > >   I'm trying to install NiFi on a Linux VM.  I have followed the
>> > Quickstart
>> > > build steps.  The last step I cd to nifi and then mvn clean install.
>> Any
>> > > thoughts on why I got the following:
>> > >
>> > > ...
>> > > Running org.apache.nifi.processors.standard.TestExecuteStreamCommand
>> > > Tests run: 5, Failures: 4, Errors: 0, Skipped: 1, Time elapsed: 1.144
>> sec
>> > > <<< FAILURE! - in org.apache.nifi.processors.standard.TestE
>> > > xecuteStreamCommand
>> > >
>> > >
>> >
>> testExecuteIngestAndUpdateWithWorkingDir(org.apache.nifi.processors.standard.TestExecuteStreamCommand)
>> > > Time elapsed: 0.112 sec  <<<
>> > > FAILURE!
>> > > java.lang.AssertionError: null
>> > >         at org.junit.Assert.fail(Assert.java:86)
>> > >         at org.junit.Assert.assertTrue(Assert.java:41)
>> > >         at org.junit.Assert.assertTrue(Assert.java:52)
>> > >         at
>> > >
>> > >
>> >
>> org.apache.nifi.processors.standard.TestExecuteStreamCommand.testExecuteIngestAndUpdateWithWorkingDir(TestExecuteStreamCommand.java:156)
>> > >
>> > >
>> > >
>> >
>> testExecuteJarWithBadPath(org.apache.nifi.processors.standard.TestExecuteStreamCommand)
>> > > Time elapsed: 0.006 sec  <<< FAILURE!
>> > > org.junit.ComparisonFailure: expected:<[Error: Unable to access
>> jarfile]>
>> > > but was:<[Unable to access jarfile /home/]>
>> > >         at org.junit.Assert.assertEquals(Assert.java:115)
>> > >         at org.junit.Assert.assertEquals(Assert.java:144)
>> > >         at
>> > >
>> > >
>> >
>> org.apache.nifi.processors.standard.TestExecuteStreamCommand.testExecuteJarWithBadPath(TestExecuteStreamCommand.java:103)
>> > >
>> > >
>> > >
>> >
>> testExecuteJar(org.apache.nifi.processors.standard.TestExecuteStreamCommand)
>> > > Time elapsed: 0.1 sec  <<< FAILURE!
>> > > java.lang.AssertionError: null
>> > >         at org.junit.Assert.fail(Assert.java:86)
>> > >         at org.junit.Assert.assertTrue(Assert.java:41)
>> > >         at org.junit.Assert.assertTrue(Assert.java:52)
>> > >         at
>> > >
>> > >
>> >
>> org.apache.nifi.processors.standard.TestExecuteStreamCommand.testExecuteJar(TestExecuteStreamCommand.java:73)
>> > >
>> > >
>> > >
>> >
>> testExecuteIngestAndUpdate(org.apache.nifi.processors.standard.TestExecuteStreamCommand)
>> > > Time elapsed: 0.925 sec  <<< FAILURE!
>> > > java.lang.AssertionError: null
>> > >         at org.junit.Assert.fail(Assert.java:86)
>> > >         at org.junit.Assert.assertTrue(Assert.java:41)
>> > >         at org.junit.Assert.assertTrue(Assert.java:52)
>> > >         at
>> > >
>> > >
>> >
>> org.apache.nifi.processors.standard.TestExecuteStreamCommand.testExecuteIngestAndUpdate(TestExecuteStreamCommand.java:134)
>> > >
>> > > ...
>> > >
>> > > [INFO] BUILD FAILURE
>> > > [INFO]
>> > >
>> ------------------------------------------------------------------------
>> > > [INFO] Total time: 7:46.419s
>> > > [INFO] Finished at: Wed Jun 03 14:02:07 EDT 2015
>> > > [INFO] Final Memory: 141M/1477M
>> > > [INFO]
>> > >
>> ------------------------------------------------------------------------
>> > > [ERROR] Failed to execute goal
>> > > org.apache.maven.plugins:maven-surefire-plugin:2.18:test
>> (default-test)
>> > on
>> > > project nifi-standard-processors: There are test failures.
>> > >
>> > >
>> > >
>> > >
>> > > --
>> > > View this message in context:
>> > >
>> >
>> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/mvn-fail-tp1716.html
>> > > Sent from the Apache NiFi (incubating) Developer List mailing list
>> > archive
>> > > at Nabble.com.
>> > >
>> >
>> > ________________________________
>> > If you reply to this email, your message will be added to the discussion
>> > below:
>> >
>> >
>> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/mvn-fail-tp1716p1717.html
>> > To unsubscribe from mvn fail, click here<
>> >
>> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1716&code=cGxqQG1pdHJlLm9yZ3wxNzE2fDU1MTMzODA1
>> > >.
>> > NAML<
>> >
>> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
>> > >
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> >
>> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/mvn-fail-tp1716p1718.html
>> > Sent from the Apache NiFi (incubating) Developer List mailing list
>> archive
>> > at Nabble.com.
>> >
>>
>>
>>
>> --
>> Sean
>>
>
>

Reply via email to