Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NIFI-2812] Fix creating NiFi RPM #1047

Closed
wants to merge 1 commit into from
Closed

Conversation

fidget83
Copy link

I've added script nifi_env.sh to bin directory and fixed jars in /lib and /lib/bootstrap directories.
Now if I installed NiFi from rpm, its run correctly.

@bbende
Copy link
Contributor

bbende commented Sep 22, 2016

@fidget83 thank you for the contribution, can you please create a JIRA that describes the problem this is trying to fix? and then update this PR to include the JIRA number. Thanks.

@fidget83 fidget83 changed the title Fix creating NiFi RPM [NIFI-2812] Fix creating NiFi RPM Sep 23, 2016
@fidget83
Copy link
Author

@trixpan
Copy link
Contributor

trixpan commented Sep 23, 2016

@fidget83 would you mind amending the commit message and adding reference to the JIRA you mentioned above?

You can do so by running git commit --amend

@fidget83
Copy link
Author

@trixpan, done

Copy link
Contributor

@trixpan trixpan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to need to some review around the copy of JARs

@@ -505,11 +510,18 @@ language governing permissions and limitations under the License. -->
<directory>/opt/nifi/nifi-${project.version}/lib</directory>
<dependency>
<excludes>
<exclude>net.minidev:asm</exclude>
<exclude>asm:asm</exclude>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure this is necessary?

@@ -505,11 +510,18 @@ language governing permissions and limitations under the License. -->
<directory>/opt/nifi/nifi-${project.version}/lib</directory>
<dependency>
<excludes>
<exclude>net.minidev:asm</exclude>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure this is necessary?

<exclude>net.minidev:asm</exclude>
<exclude>asm:asm</exclude>
<exclude>org.bouncycastle:bcpkix-jdk15on</exclude>
<exclude>com.fasterxml.jackson.core:jackson-annotations</exclude>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems to be absent from tar file? Sure it is required?

<exclude>asm:asm</exclude>
<exclude>org.bouncycastle:bcpkix-jdk15on</exclude>
<exclude>com.fasterxml.jackson.core:jackson-annotations</exclude>
<exclude>com.fasterxml.jackson.core:jackson-core</exclude>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems to be absent from tar file? Sure it is required?

<exclude>org.bouncycastle:bcpkix-jdk15on</exclude>
<exclude>com.fasterxml.jackson.core:jackson-annotations</exclude>
<exclude>com.fasterxml.jackson.core:jackson-core</exclude>
<exclude>com.fasterxml.jackson.core:jackson-databind</exclude>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems to be absent from tar file? Sure it is required?

<exclude>com.fasterxml.jackson.core:jackson-annotations</exclude>
<exclude>com.fasterxml.jackson.core:jackson-core</exclude>
<exclude>com.fasterxml.jackson.core:jackson-databind</exclude>
<exclude>com.jayway.jsonpath:json-path</exclude>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems to be absent from tar file? Sure it is required?

<exclude>com.fasterxml.jackson.core:jackson-core</exclude>
<exclude>com.fasterxml.jackson.core:jackson-databind</exclude>
<exclude>com.jayway.jsonpath:json-path</exclude>
<exclude>net.minidev:json-smart</exclude>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems to be absent from tar file? Sure it is required?

<exclude>org.apache.nifi:nifi-bootstrap</exclude>
<exclude>org.apache.nifi:nifi-resources</exclude>
<exclude>org.apache.nifi:nifi-docs</exclude>
<exclude>commons-io:commons-io</exclude>
<exclude>org.apache.commons:commons-lang3</exclude>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems to be present in the tar file but no longer added to the rpm?

@fidget83
Copy link
Author

@trixpan, I just unified the list of jars in rpm and in created .tar.gz.file. I didn't analyze necessary of each jar, but with this set nifi works :)

@trixpan
Copy link
Contributor

trixpan commented Sep 23, 2016

@fidget83 the JARs should not be unified, instead only the appropriate JARs should go into each directory. Would you mind amending your commit?

Kind regards

@joaohf
Copy link
Contributor

joaohf commented Oct 18, 2016

Hi,

I've tested this and the output files from rpm package is the same of tar.gz.

@trixpan
Copy link
Contributor

trixpan commented Oct 27, 2016

@fidget83 - thanks for the contribution.

@joaohf - muito obrigadopelo feedback. 😉

@trixpan
Copy link
Contributor

trixpan commented Oct 27, 2016

Notes:

  • created RPM.
  • did diff between RPM with RPM profile and TGZ without the RPM profile
  • installed from the RPM. started NiFi. Connected to it.

LGTM, will merge later today.

@asfgit asfgit closed this in 4acc9ad Nov 2, 2016
@joewitt
Copy link
Contributor

joewitt commented Nov 2, 2016

@trixpan please make sure that commit log entries indicate/start with the JIRA.

This would be in this case

NIFI-2812 This closes #1047. Fixes rpm includes/excludes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants