[ 
https://issues.apache.org/jira/browse/HDFS-3296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Zhuge updated HDFS-3296:
-----------------------------
    Attachment: HDFS-3296.004.patch

I'd like to share a patch I have been using. Not totally polished or thoroughly 
tested yet.

Patch 004
* Work around domain socket path limitation by using "/tmp" instead of 
$java.io.tmpdir
* On Mac, {{shutdown0}} can not unblock {{accept0}} which still holds on to a 
refcount, thus {{DomainSocket#close}} stuck in the loop. Fix the issue by using 
the "self-pipe" method. See {{accept1}} implementation for details.
* Add syslog calls to DomainSocket.c for easier debugging
* Set DYLD_LIBRARY_PATH to hadoop-hdfs-native-client pom. All libhdfs tests 
pass including the zerocopy test.

TODO:
* {{TestDomainSocket#testAsyncCloseDuringWrite}} failed
* Pass all ShortCircuitRead tests

> Running libhdfs tests in mac fails
> ----------------------------------
>
>                 Key: HDFS-3296
>                 URL: https://issues.apache.org/jira/browse/HDFS-3296
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Chris Nauroth
>         Attachments: HDFS-3296.001.patch, HDFS-3296.002.patch, 
> HDFS-3296.003.patch, HDFS-3296.004.patch
>
>
> Running "ant -Dcompile.c++=true -Dlibhdfs=true test-c++-libhdfs" on Mac fails 
> with following error:
> {noformat}
>      [exec] dyld: lazy symbol binding failed: Symbol not found: 
> _JNI_GetCreatedJavaVMs
>      [exec]   Referenced from: 
> /Users/amareshwari.sr/workspace/hadoop/build/c++/Mac_OS_X-x86_64-64/lib/libhdfs.0.dylib
>      [exec]   Expected in: flat namespace
>      [exec] 
>      [exec] dyld: Symbol not found: _JNI_GetCreatedJavaVMs
>      [exec]   Referenced from: 
> /Users/amareshwari.sr/workspace/hadoop/build/c++/Mac_OS_X-x86_64-64/lib/libhdfs.0.dylib
>      [exec]   Expected in: flat namespace
>      [exec] 
>      [exec] 
> /Users/amareshwari.sr/workspace/hadoop/src/c++/libhdfs/tests/test-libhdfs.sh: 
> line 122: 39485 Trace/BPT trap: 5       CLASSPATH=$HADOOP_CONF_DIR:$CLASSPATH 
> LD_PRELOAD="$LIB_JVM_DIR/libjvm.so:$LIBHDFS_INSTALL_DIR/libhdfs.so:" 
> $LIBHDFS_BUILD_DIR/$HDFS_TEST
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to