Last active
January 17, 2018 07:22
-
-
Save majidalfifi/4063b62ce1a3ad0e6672bdb6df8281da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was getting the following error in the spark-shell when trying to load lzo files (CDH 5.4) | |
ERROR GPLNativeCodeLoader: Could not load native gpl library | |
java.lang.UnsatisfiedLinkError: no gplcompression in java.library.path | |
The fix invovles making spark-shell aware of this dependency by either of the follwoing | |
1. export LD_LIBRARY_PATH=/opt/cloudera/parcels/GPLEXTRAS/lib/hadoop/lib/native/ | |
2. add saftey value in spark configuration in cloudera manager | |
Spark (Standalone) Service Advanced Configuration Snippet (Safety Valve) for spark-conf/spark-env.sh | |
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cloudera/parcels/GPLEXTRAS/lib/hadoop/lib/native/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment