Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
Description
Tried to use BulkLoader with compression.
Would not work at it could not find the lz4 compression library.
This library is supplied with cloudera.
So we had to modify sqenvcom.sh as follows:
ls /usr/lib/hadoop/hadoop-cdh5.jar >/dev/null 2>&1
if [ $? -eq 0 ]; then
- we are on a cluster with Cloudera installed
- -------------------------------------------
- native library directories and include directories
- export HADOOP_LIB_DIR=/usr/lib64 <=== commented out this line.
export HADOOP_LIB_DIR=/usr/lib/hadoop/lib/native <=== added this line.
And later on:
- Library Path may include local over-rides
export LD_LIBRARY_PATH=$CC_LIB:$MPI_ROOT/lib/$MPILIB:$MY_SQROOT/export/lib"$SQ_MBTYPE":$HADOOP_LIB_DIR:$LOC_JVMLIBS:$HWMSLIBS:${SP_EXPORT_LIB}:.
Added $HADOOP_LIB_DIR: in the export above.
Please fix sqenvcom so that it works without needed these changes.