<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Problem in building rpms in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-in-building-rpms/m-p/208645#M59900</link>
    <description>&lt;P&gt;
	hi, I have  5 openstack nodes and I want to install metron on them using &lt;A href="https://cwiki.apache.org/confluence/display/METRON/Metron+with+HDP+2.5+bare-metal+install"&gt;this&lt;/A&gt; link.&lt;/P&gt;&lt;P&gt;
	after I ran following command I get an error:&lt;/P&gt;&lt;PRE&gt;mvn clean install -DskipTests -PHDP-2.5.0.0
&lt;/PRE&gt;
&lt;PRE&gt;[INFO] --- exec-maven-plugin:1.5.0:exec (rpm-build) @ metron-rpm ---
/bin/bash: ./build.sh: Permission denied
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 126 (Exit value: 126)
    at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
    at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)
    at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)

&lt;/PRE&gt;&lt;P&gt;permissions for build.sh are OK.&lt;/P&gt;&lt;P&gt;I tried to run it in terminal, and I got following error:&lt;/P&gt;&lt;PRE&gt;[root@node1 rpm-docker]# ./build.sh 
FULL_VERSION: 
VERSION: 
PRERELEASE: 
error: Macro %_version has empty body
error: Macro %_version has empty body
error: Macro %_prerelease has empty body
error: Macro %_prerelease has empty body
(...)
error: Bad exit status from /var/tmp/rpm-tmp.68RZ1K (%install)


RPM build errors:
    Macro %_version has empty body
    Macro %_version has empty body
    Macro %_prerelease has empty body
    Macro %_prerelease has empty body
    Bad exit status from /var/tmp/rpm-tmp.68RZ1K (%install)


&lt;/PRE&gt;&lt;P&gt;why values related to versions are null?? since these are null, when it refers to files it needs in SOURCES, it can not find what it needs&lt;/P&gt;&lt;P&gt;any help here?&lt;/P&gt;&lt;P&gt;Does any one know valid values for them, so I can set them manually?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2017 16:10:54 GMT</pubDate>
    <dc:creator>alizadeh_uut1</dc:creator>
    <dc:date>2017-04-24T16:10:54Z</dc:date>
    <item>
      <title>Problem in building rpms</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-in-building-rpms/m-p/208645#M59900</link>
      <description>&lt;P&gt;
	hi, I have  5 openstack nodes and I want to install metron on them using &lt;A href="https://cwiki.apache.org/confluence/display/METRON/Metron+with+HDP+2.5+bare-metal+install"&gt;this&lt;/A&gt; link.&lt;/P&gt;&lt;P&gt;
	after I ran following command I get an error:&lt;/P&gt;&lt;PRE&gt;mvn clean install -DskipTests -PHDP-2.5.0.0
&lt;/PRE&gt;
&lt;PRE&gt;[INFO] --- exec-maven-plugin:1.5.0:exec (rpm-build) @ metron-rpm ---
/bin/bash: ./build.sh: Permission denied
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 126 (Exit value: 126)
    at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
    at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)
    at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)

&lt;/PRE&gt;&lt;P&gt;permissions for build.sh are OK.&lt;/P&gt;&lt;P&gt;I tried to run it in terminal, and I got following error:&lt;/P&gt;&lt;PRE&gt;[root@node1 rpm-docker]# ./build.sh 
FULL_VERSION: 
VERSION: 
PRERELEASE: 
error: Macro %_version has empty body
error: Macro %_version has empty body
error: Macro %_prerelease has empty body
error: Macro %_prerelease has empty body
(...)
error: Bad exit status from /var/tmp/rpm-tmp.68RZ1K (%install)


RPM build errors:
    Macro %_version has empty body
    Macro %_version has empty body
    Macro %_prerelease has empty body
    Macro %_prerelease has empty body
    Bad exit status from /var/tmp/rpm-tmp.68RZ1K (%install)


&lt;/PRE&gt;&lt;P&gt;why values related to versions are null?? since these are null, when it refers to files it needs in SOURCES, it can not find what it needs&lt;/P&gt;&lt;P&gt;any help here?&lt;/P&gt;&lt;P&gt;Does any one know valid values for them, so I can set them manually?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 16:10:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-in-building-rpms/m-p/208645#M59900</guid>
      <dc:creator>alizadeh_uut1</dc:creator>
      <dc:date>2017-04-24T16:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in building rpms</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-in-building-rpms/m-p/208646#M59901</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/13184/alizadehuut1.html"&gt;Sara Alizadeh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I had similar problem. Here bash is not working from maven.&lt;/P&gt;&lt;P&gt;I took a work around, commented the 'rpm-build' execution in the 'incubator-metron/metron-deployment/packaging/docker/rpm-docker/pom.xml' file&lt;/P&gt;&lt;P&gt;I am able to run mvn clean install -DskipTests -PHDP-2.5.0.0 successfully.&lt;/P&gt;&lt;P&gt;I triggered the ./incubator-metron/metron-deployment/packaging/docker/rpm-docker/build.sh 0.4.0 &lt;/P&gt;&lt;P&gt;I could see the rpm files generated under the folder 'incubator-metron/metron-deployment/packaging/docker/rpm-docker/RPMS/noarch'&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bala&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 19:31:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-in-building-rpms/m-p/208646#M59901</guid>
      <dc:creator>balakrishna_a_d</dc:creator>
      <dc:date>2017-04-26T19:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in building rpms</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-in-building-rpms/m-p/208647#M59902</link>
      <description>&lt;P&gt;Well,I checked it and this works for me too.thanks a world.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 23:14:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-in-building-rpms/m-p/208647#M59902</guid>
      <dc:creator>alizadeh_uut1</dc:creator>
      <dc:date>2017-04-26T23:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in building rpms</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-in-building-rpms/m-p/208648#M59903</link>
      <description>&lt;P&gt;For the records, for a more cleaner way,  the issue was with SELinux set to enforcing&lt;/P&gt;&lt;P&gt;disable it by running this as root: setenforce 0 &lt;/P&gt;&lt;P&gt;then re-run :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;mvn clean install -DskipTests -PHDP-2.5.0.0&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 00:14:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problem-in-building-rpms/m-p/208648#M59903</guid>
      <dc:creator>fadelkam</dc:creator>
      <dc:date>2017-06-22T00:14:08Z</dc:date>
    </item>
  </channel>
</rss>

