Hafiz:

This is known issue<https://issues.apache.org/jira/browse/MASSEMBLY-515> with 
maven-assembly plugin.  To be precise certain combinations of maven version and 
assembly plugin version lead to this problem.  We should really fix the our pom 
file so that we have latest versions of plugins in use.  Do consider raising a 
JIRA along those lines.

For now apply the following patch to ranger pom and it should solve your 
problem.


diff --git a/pom.xml b/pom.xml
index 2ae8d3d..4b73a61 100644
--- a/pom.xml
+++ b/pom.xml
@@ -369,7 +369,7 @@
       </plugin>
       <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
-         <version>2.2-beta-5</version>
+         <version>2.3</version>
          <configuration>
            <descriptors>
              <descriptor>src/main/assembly/hdfs-agent.xml</descriptor>


If this doesn’t get you over the hump then post the new error and also provide 
the following:

  *   Version of your maven version.
  *   OS where you are trying to build this.
  *   Relevant contents of you ~/.m2/settings.xml file, if any.

Thanks

From: Hafiz Mujadid
Reply-To: 
"[email protected]<mailto:[email protected]>"
Date: Tuesday, August 4, 2015 at 9:45 PM
To: "[email protected]<mailto:[email protected]>"
Subject: Re: master branch compilation issue

I am running simply this command
mvn clean compile package assembly:assembly

and this happens at the end of compilation

and these are last few lines


[WARNING] Entry: 
ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/services/kafka/client/ServiceKafkaConnectionMgr.java
 longer than 100 characters.
[WARNING] Entry: 
ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/services/kafka/client/ServiceKafkaClient.java
 longer than 100 characters.
[WARNING] Entry: 
ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/services/kafka/RangerServiceKafka.java
 longer than 100 characters.
[WARNING] Entry: 
ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/authorization/kafka/authorizer/RangerKafkaAuthorizer.java
 longer than 100 characters.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ranger ............................................ FAILURE [02:09 min]
[INFO] Jdbc SQL Connector ................................ SUCCESS [  4.969 s]
[INFO] Credential Support ................................ SUCCESS [ 12.146 s]
[INFO] ranger_solrj ...................................... SUCCESS [  8.150 s]
[INFO] Audit Component ................................... SUCCESS [  5.228 s]
[INFO] Common library for Plugins ........................ SUCCESS [ 17.187 s]
[INFO] Installer Support Component ....................... SUCCESS [  3.728 s]
[INFO] Credential Builder ................................ SUCCESS [  5.682 s]
[INFO] Embedded Web Server Invoker ....................... SUCCESS [  1.506 s]
[INFO] Key Management Service ............................ SUCCESS [08:21 min]
[INFO] HBase Security Plugin ............................. SUCCESS [ 10.581 s]
[INFO] Hdfs Security Plugin .............................. SUCCESS [  8.737 s]
[INFO] Hive Security Plugin .............................. SUCCESS [  6.787 s]
[INFO] Knox Security Plugin .............................. SUCCESS [  5.038 s]
[INFO] Storm Security Plugin ............................. SUCCESS [  2.877 s]
[INFO] YARN Security Plugin .............................. SUCCESS [  2.921 s]
[INFO] Ranger Util ....................................... SUCCESS [  2.724 s]
[INFO] Unix Authentication Client ........................ SUCCESS [  1.762 s]
[INFO] Security Admin Web Application .................... SUCCESS [01:05 min]
[INFO] SOLR Security Plugin .............................. SUCCESS [  7.164 s]
[INFO] Unix User Group Synchronizer ...................... SUCCESS [  3.874 s]
[INFO] Unix Authentication Service ....................... SUCCESS [  1.944 s]
[INFO] KMS Security Plugin ............................... SUCCESS [  2.862 s]
[INFO] Unix Native Authenticator ......................... SUCCESS [  1.460 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:41 min
[INFO] Finished at: 2015-08-04T23:40:20+05:00
[INFO] Final Memory: 177M/559M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:assembly 
(default-cli) on project ranger: Failed to create assembly: Error creating 
assembly archive src: Problem creating TAR: request to write '8192' bytes 
exceeds size in header of '566424' bytes -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


On Wed, Aug 5, 2015 at 9:20 AM, Abhay Kulkarni 
<[email protected]<mailto:[email protected]>> wrote:
If the build command is run as

% mvn package assembly:assembly > ./assembly.out 2>&1
, then this error may be seen. (Note the directory where output file goes).

If the command is run as
% mvn package assembly:assembly > /tmp/assembly.out 2>&1
, then the problem goes away.

Maybe this will help.
-Abhay

From: Don Bosco Durai <[email protected]<mailto:[email protected]>> 
on behalf of Don Bosco Durai <[email protected]<mailto:[email protected]>>
Reply-To: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, August 4, 2015 at 9:09 PM

To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: master branch compilation issue

I have not seen any errors like this. At what stage of the build you got this 
error?

Thanks

Bosco


From: Hafiz Mujadid <[email protected]<mailto:[email protected]>>
Reply-To: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, August 4, 2015 at 11:42 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: master branch compilation issue

I tried compiling after deleting m2 directory now getting this errot
Failed to execute goal 
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:assembly 
(default-cli) on project ranger: Failed to create assembly: Error creating 
assembly archive src: Problem creating TAR: request to write '8192' bytes 
exceeds size in header of '566424' bytes

On Tue, Aug 4, 2015 at 9:12 PM, Don Bosco Durai 
<[email protected]<mailto:[email protected]>> wrote:
I don’t see anything obviously wrong. Can you try after deleting the folder 
~/.m2/repository

Thanks

Bosco


From: Hafiz Mujadid <[email protected]<mailto:[email protected]>>
Reply-To: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, August 4, 2015 at 8:57 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: master branch compilation issue

Hi same output again

attach is complete compilation output file

On Tue, Aug 4, 2015 at 8:45 PM, Don Bosco Durai 
<[email protected]<mailto:[email protected]>> wrote:
Hafiz

I was able to compile from the master branch. I have seen similar issues if 
there are issues with the internet. Can you try building a couple of times? If 
the problems keeps moving, then it is an internet issues. If not, can you 
create a JIRA and upload your complete build output?

Thanks

Bosco


From: Hafiz Mujadid <[email protected]<mailto:[email protected]>>
Reply-To: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, August 4, 2015 at 7:18 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: master branch compilation issue

Hi !

I am trying to compile code from master branch but facing following compiling 
error.

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] 
/root/dev/ranger/security-admin/src/main/java/org/apache/ranger/rest/XKeyREST.java:[40,33]
 error: package org.codehaus.jettison.json does not exist
[ERROR] 
/root/dev/ranger/security-admin/src/main/java/org/apache/ranger/rest/XKeyREST.java:[41,33]
 error: package org.codehaus.jettison.json does not exist
[ERROR] 
/root/dev/ranger/security-admin/src/main/java/org/apache/ranger/rest/XKeyREST.java:[191,4]
 error: cannot find symbol
[ERROR]   symbol:   class JSONObject
  location: class XKeyREST
/root/dev/ranger/security-admin/src/main/java/org/apache/ranger/rest/XKeyREST.java:[191,27]
 error: cannot find symbol
[ERROR]   symbol:   class JSONObject
  location: class XKeyREST
/root/dev/ranger/security-admin/src/main/java/org/apache/ranger/rest/XKeyREST.java:[193,4]
 error: cannot find symbol
[ERROR]   symbol:   class JSONObject
  location: class XKeyREST
/root/dev/ranger/security-admin/src/main/java/org/apache/ranger/rest/XKeyREST.java:[193,25]
 error: cannot find symbol
[ERROR]   symbol:   class JSONObject
  location: class XKeyREST
/root/dev/ranger/security-admin/src/main/java/org/apache/ranger/rest/XKeyREST.java:[195,12]
 error: cannot find symbol


any suggestion?

Thanks



--
Regards: HAFIZ MUJADID



--
Regards: HAFIZ MUJADID



--
Regards: HAFIZ MUJADID

Reply via email to