yinianmengtian / hadoop-snappy

Automatically exported from code.google.com/p/hadoop-snappy
Apache License 2.0
0 stars 0 forks source link

libsnappy.la is missing. #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. sudo mvn clean package 
-Dsnappy.prefix=~/hadoop-snappy-read-only/snappy-1.1.1/
2.
3.

What is the expected output? What do you see instead?
Fully built hadoop-snappy

What version of the product are you using? On what operating system?
Check out from source, and use on Mac OS 10.8.4

Please provide any additional information below.

After mvn building the package, I have:

Kevin-TBLT:Mac_OS_X-64 Kevin$ pwd
/Users/Kevin/code/apache/hadoop-snappy-read-only/target/hadoop-snappy-0.0.1-SNAP
SHOT/lib/native/Mac_OS_X-64
Kevin-TBLT:Mac_OS_X-64 Kevin$ ls -la
total 632
drwxrwxr-x  13 root  staff     442 Dec 29 10:47 .
drwxrwxr-x   3 root  staff     102 Dec 29 10:33 ..
-rwxrwxr-x   1 root  staff   15996 Dec 29 10:33 libhadoopsnappy.0.dylib
lrwxr-xr-x   1 root  staff      23 Dec 29 10:33 libhadoopsnappy.dylib -> 
libhadoopsnappy.0.dylib
-rwxrwxr-x   1 root  staff   34320 Dec 29 10:33 libsnappy.1.dylib
lrwxr-xr-x   1 root  staff      17 Dec 29 10:33 libsnappy.dylib -> 
libsnappy.1.dylib
lrwxr-xr-x   1 root  staff      15 Dec 29 10:33 libsnappy.la -> ../libsnappy.la
-rwxrwxr-x   1 root  staff     934 Dec 29 10:33 libsnappy.lai
-rwxrwxr-x   1 root  staff    6288 Dec 29 10:33 snappy-c.o
-rwxrwxr-x   1 root  staff   14420 Dec 29 10:33 snappy-sinksource.o
-rwxrwxr-x   1 root  staff   19020 Dec 29 10:33 snappy-stubs-internal.o
-rwxrwxr-x   1 root  staff  115648 Dec 29 10:33 snappy.o
-rwxrwxr-x   1 root  staff   90008 Dec 29 10:33 snappy_unittest

The libsnappy.la is just the link to itself, it doesn't exits. May I know if 
this is a problem because the hadoop still throwing me the exception:

 java.lang.RuntimeException: native snappy library not available
    at org.apache.hadoop.io.compress.SnappyCodec.getCompressorType(SnappyCodec.java:123)

But actually all files have been copied to the hadoop/lib/ except the 
libsnappy.la

/Users/Kevin/code/apache/hadoop/lib/native/Mac_OS_X-64
Kevin-TBLT:Mac_OS_X-64 Kevin$ ls -la
total 712
drwxr-xr-x  12 Kevin  staff     408 Dec 29 10:48 .
drwxr-xr-x@  5 Kevin  staff     170 Jul 22 15:26 ..
-rwxr-xr-x   1 Kevin  staff   15996 Dec 29 10:52 libhadoopsnappy.0.dylib
-rwxr-xr-x   1 Kevin  staff   15996 Dec 29 10:52 libhadoopsnappy.dylib
-rwxr-xr-x   1 Kevin  staff   34320 Dec 29 10:52 libsnappy.1.dylib
-rwxr-xr-x   1 Kevin  staff   34320 Dec 29 10:52 libsnappy.dylib
-rw-r--r--   1 Kevin  staff     934 Dec 29 10:52 libsnappy.lai
-rw-r--r--   1 Kevin  staff    6288 Dec 29 10:52 snappy-c.o
-rw-r--r--   1 Kevin  staff   14420 Dec 29 10:52 snappy-sinksource.o
-rw-r--r--   1 Kevin  staff   19020 Dec 29 10:52 snappy-stubs-internal.o
-rw-r--r--   1 Kevin  staff  115648 Dec 29 10:52 snappy.o
-rwxr-xr-x   1 Kevin  staff   90008 Dec 29 10:52 snappy_unittest

Would you please advise? Thanks.

Original issue reported on code.google.com by manch...@gmail.com on 29 Dec 2013 at 8:18