Build failure for Nifi

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Build failure for Nifi

Tanujit Ghosh
Hi,

I'm new to Apache NiFi.
I would like to learn more about the NiFi tool and contribute, please point
me to the resource where i can readup and get more details.

I'm trying to build the source but its giving me build failure on one of
the test cases.
If I run with maven skiptests then the build completes successfully.

Here is the error i'm getting.

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on
project nifi-framework-cluster-protocol: There are test failures.
[ERROR]
[ERROR] Please refer to
/backup/java/incubator/incubator-nifi/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-cluster-protocol/target/surefire-reports
for the individual test results.

Test set:
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImplTest
-------------------------------------------------------------------------------
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.671 sec
<<< FAILURE! - in
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImplTest
testRequestFlow(org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImplTest)
 Time elapsed: 0.032 sec  <<< ERROR!
org.apache.nifi.cluster.protocol.ProtocolException: Failed to create socket
due to: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:211)
at org.apache.nifi.io.socket.SocketUtils.createSocket(SocketUtils.java:62)
at
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImpl.createSocket(ClusterManagerProtocolSenderImpl.java:236)
at
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImpl.createSocket(ClusterManagerProtocolSenderImpl.java:230)
at
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImpl.requestFlow(ClusterManagerProtocolSenderImpl.java:89)
at
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImplTest.testRequestFlow(ClusterManagerProtocolSenderImplTest.java:94)


My Environment
OpenJDK 64-Bit Server VM
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
2014-12-14T10:29:23-07:00)
Maven home: /backup/java/maven
Java version: 1.8.0_31, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.31-3.b13.fc21.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.18.6-200.fc21.x86_64", arch: "amd64", family:
"unix"

Regards,
Tanujit
Reply | Threaded
Open this post in threaded view
|

Re: Build failure for Nifi

Mark Payne
Tanujit,


Thanks for your interest! Sorry you’ve had a rough go of it. From the stacktrace, I’m wondering if you have a firewall blocking the connection. Generally, firewalls will let you through to localhost, but I think the unit test is actually looking up localhost’s IP address and connecting directly to that. If you change line 93 to say “localhost” instead of “address.getHostAddress()”, I wonder if that would resolve your issue?


Also, which branch are you building from? Generally, we build from the ‘develop’ branch, but I believe at this point the ‘master’ branch should be okay.


When you say “the resource where I can readup and get more details” what kind of details are you looking for? I.e., information on using  the application, developing against it, contributing back? If you click on the ‘documentation menu’ from http://nifi.incubator.apache.org/, you’ll see links to the FAQ, User Guide, Developer Guide, Admin Guide and NiFi Overview. In the ‘Development’ menu you'll have the QuickStart for downloading source and starting to build - which you may have already seen since you're this far :) But if not I’d recommend you take a quick look. It may have a useful pointer or two that you’re unaware of, such as setting MAVEN_OPTS.


Please let us know how we can help you, and welcome to the NiFi community 😊


Thanks

-Mark









From: Tanujit Ghosh
Sent: ‎Sunday‎, ‎February‎ ‎15‎, ‎2015 ‎10‎:‎28‎ ‎PM
To: [hidden email]





Hi,

I'm new to Apache NiFi.
I would like to learn more about the NiFi tool and contribute, please point
me to the resource where i can readup and get more details.

I'm trying to build the source but its giving me build failure on one of
the test cases.
If I run with maven skiptests then the build completes successfully.

Here is the error i'm getting.

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on
project nifi-framework-cluster-protocol: There are test failures.
[ERROR]
[ERROR] Please refer to
/backup/java/incubator/incubator-nifi/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-cluster-protocol/target/surefire-reports
for the individual test results.

Test set:
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImplTest
-------------------------------------------------------------------------------
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.671 sec
<<< FAILURE! - in
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImplTest
testRequestFlow(org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImplTest)
 Time elapsed: 0.032 sec  <<< ERROR!
org.apache.nifi.cluster.protocol.ProtocolException: Failed to create socket
due to: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:211)
at org.apache.nifi.io.socket.SocketUtils.createSocket(SocketUtils.java:62)
at
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImpl.createSocket(ClusterManagerProtocolSenderImpl.java:236)
at
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImpl.createSocket(ClusterManagerProtocolSenderImpl.java:230)
at
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImpl.requestFlow(ClusterManagerProtocolSenderImpl.java:89)
at
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImplTest.testRequestFlow(ClusterManagerProtocolSenderImplTest.java:94)


My Environment
OpenJDK 64-Bit Server VM
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
2014-12-14T10:29:23-07:00)
Maven home: /backup/java/maven
Java version: 1.8.0_31, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.31-3.b13.fc21.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.18.6-200.fc21.x86_64", arch: "amd64", family:
"unix"

Regards,
Tanujit
Reply | Threaded
Open this post in threaded view
|

Re: Build failure for Nifi

Tanujit Ghosh
Thanks Mark,

I was going through the various guides.

Meanwhile i'm stuff on the build again. I resolved the previous failure issue to some mistake in my /etc/hosts file, which i corrected.


But now I'm getting the following failure in another test case




On Mon, Feb 16, 2015 at 6:29 AM, Mark Payne <[hidden email]> wrote:
Tanujit,


Thanks for your interest! Sorry you’ve had a rough go of it. From the stacktrace, I’m wondering if you have a firewall blocking the connection. Generally, firewalls will let you through to localhost, but I think the unit test is actually looking up localhost’s IP address and connecting directly to that. If you change line 93 to say “localhost” instead of “address.getHostAddress()”, I wonder if that would resolve your issue?


Also, which branch are you building from? Generally, we build from the ‘develop’ branch, but I believe at this point the ‘master’ branch should be okay.


When you say “the resource where I can readup and get more details” what kind of details are you looking for? I.e., information on using  the application, developing against it, contributing back? If you click on the ‘documentation menu’ from http://nifi.incubator.apache.org/, you’ll see links to the FAQ, User Guide, Developer Guide, Admin Guide and NiFi Overview. In the ‘Development’ menu you'll have the QuickStart for downloading source and starting to build - which you may have already seen since you're this far :) But if not I’d recommend you take a quick look. It may have a useful pointer or two that you’re unaware of, such as setting MAVEN_OPTS.


Please let us know how we can help you, and welcome to the NiFi community 😊


Thanks

-Mark









From: Tanujit Ghosh
Sent: ‎Sunday‎, ‎February‎ ‎15‎, ‎2015 ‎10‎:‎28‎ ‎PM
To: [hidden email]





Hi,

I'm new to Apache NiFi.
I would like to learn more about the NiFi tool and contribute, please point
me to the resource where i can readup and get more details.

I'm trying to build the source but its giving me build failure on one of
the test cases.
If I run with maven skiptests then the build completes successfully.

Here is the error i'm getting.

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on
project nifi-framework-cluster-protocol: There are test failures.
[ERROR]
[ERROR] Please refer to
/backup/java/incubator/incubator-nifi/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-cluster-protocol/target/surefire-reports
for the individual test results.

Test set:
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImplTest
-------------------------------------------------------------------------------
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.671 sec
<<< FAILURE! - in
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImplTest
testRequestFlow(org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImplTest)
 Time elapsed: 0.032 sec  <<< ERROR!
org.apache.nifi.cluster.protocol.ProtocolException: Failed to create socket
due to: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:211)
at org.apache.nifi.io.socket.SocketUtils.createSocket(SocketUtils.java:62)
at
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImpl.createSocket(ClusterManagerProtocolSenderImpl.java:236)
at
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImpl.createSocket(ClusterManagerProtocolSenderImpl.java:230)
at
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImpl.requestFlow(ClusterManagerProtocolSenderImpl.java:89)
at
org.apache.nifi.cluster.protocol.impl.ClusterManagerProtocolSenderImplTest.testRequestFlow(ClusterManagerProtocolSenderImplTest.java:94)


My Environment
OpenJDK 64-Bit Server VM
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
2014-12-14T10:29:23-07:00)
Maven home: /backup/java/maven
Java version: 1.8.0_31, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.31-3.b13.fc21.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.18.6-200.fc21.x86_64", arch: "amd64", family:
"unix"

Regards,
Tanujit



--
Regards,
Tanujit

TEST-org.apache.nifi.integration.accesscontrol.AdminAccessControlTest.xml (24K) Download Attachment