You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "sonali shrivastava (JIRA)" <ji...@apache.org> on 2016/05/17 10:20:13 UTC
[jira] [Commented] (BIGTOP-2369) Unit test errors on spark-deb
gradle task (ppc64le)
[ https://issues.apache.org/jira/browse/BIGTOP-2369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15286365#comment-15286365 ]
sonali shrivastava commented on BIGTOP-2369:
--------------------------------------------
Hi Amir,
Was working on running smoke test for existing projects in Bigtop version-1.1.0 i.e. Spark. I am working on docker image with architecture i.e. ubuntu power and have also done necessary setup for Bigtop in docker container i.e. have executed install_bigtop script shared by Yussuf's Team.
But when i run smoke test for "Spark" than it gives below error :
"/tmp/snappy-unknown-991af1b9-5fa3-45c5-955b-54a9c56fcbe3-libsnappyjava.so: /tmp/snappy-unknown-991af1b9-5fa3-45c5-955b-54a9c56fcbe3-libsnappyjava.so: cannot open shared object file: No such file or directory (Possible cause: endianness mismatch)
Details of command used:
mvn clean verify -D'org.apache.maven-failsafe-plugin.testInclude=**/*TestSparkExample.*' -f bigtop-tests/test-execution/smokes/spark/pom.xml
To fix above error, have verified for libsnappy-java installation which is already installed in docker ubuntu power container. Have exported "export JAVA_TOOL_OPTIONS=-Dos.arch=ppc64le ", still could not able to fix it.
Thereafter got below error:
Caused by: java.lang.IllegalArgumentException: java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
As per Yussuf's team, have verified modifying pom.xml in Bigtop-1.1.0/bigtop/bigtop-tests/test-artifacts/spark to include snappy-java version i.e. 1.1.2.1 and also have verified "snappy-java-1.0.4.1.jar" does not support for power architecture and so have copied "ppc64le" support from http://central.maven.org/maven2/org/xerial/snappy/snappy-java/1.1.1-M2/snappy-java-1.1.1-M2.jar to extracted "snappy-java-1.0.4.1.jar" and recreated snappy-java-1.0.4.1.jar and copied it in maven repo and executed manual test case( that was present in TestSparkExample.groovy) i.e.
"./bin/spark-submit --class org.apache.spark.examples.JavaSparkPi --master spark://ee292dc7cdd8:7077 /usr/lib/spark/lib/spark-examples.jar" from /usr/lib/spark and still it gave same error i.e.
Caused by: java.lang.IllegalArgumentException: java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
I also can see similar issue updated by you in "https://issues.apache.org/jira/browse/BIGTOP-2369"
Amir: Can you please let us know if something more required to fix this issue?
Thanks & Regards,
Sonali Shrivastava
> Unit test errors on spark-deb gradle task (ppc64le)
> ---------------------------------------------------
>
> Key: BIGTOP-2369
> URL: https://issues.apache.org/jira/browse/BIGTOP-2369
> Project: Bigtop
> Issue Type: Bug
> Components: ppc64le, spark
> Affects Versions: 1.1.0
> Environment: Docker container image used: bigtop/slaves:trunk-ubuntu-15.04-ppc64le
> Reporter: Yussuf Shaikh
> Assignee: Amir Sanjar
> Priority: Critical
> Labels: pp64le
> Attachments: sparkdeb4.txt
>
>
> For Building Spark Project Core 1.5.1 getting exception trace with message:
> Caused by: java.lang.IllegalArgumentException: java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy
> Workaround applied:
> 1. Install libsnappy-java package
> 2. Add a line to do-component-build file: export JAVA_TOOL_OPTIONS=-Dos.arch=ppc64le
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)