[MacPorts] #35902: hadoop is missing native libs
#35902: hadoop is missing native libs -----------------------------+---------------------------------------------- Reporter: jeff@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: native,hadoop | Port: hadoop -----------------------------+---------------------------------------------- when building hadoop from src you can invoke ant -Dcompile.native=true to build the shared libs and jni bindings required to use snappy and gzip file compression. The current port is packaged with Linux shared libs -- Ticket URL: <https://trac.macports.org/ticket/35902> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35902: hadoop is missing native libs -----------------------------+---------------------------------------------- Reporter: jeff@… | Owner: hum@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: hadoop -----------------------------+---------------------------------------------- Changes (by macsforever2000@…): * keywords: native,hadoop => * owner: macports-tickets@… => hum@… Comment: In the future, please Cc the port maintainer(s). -- Ticket URL: <https://trac.macports.org/ticket/35902#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35902: hadoop is missing native libs -----------------------------+---------------------------------------------- Reporter: jeff@… | Owner: hum@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: hadoop -----------------------------+---------------------------------------------- Changes (by hum@…): * status: new => assigned Comment: Thanks for your report. I changed the Portfile to fetch the source tarball, and the native libraries are built and installed into ${prefix}/lib. I added a patchfile and dependency descriptions. Committed in r97460. Could you please check the revised port? -- Ticket URL: <https://trac.macports.org/ticket/35902#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35902: hadoop is missing native libs -----------------------------+---------------------------------------------- Reporter: jeff@… | Owner: hum@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: hadoop -----------------------------+---------------------------------------------- Comment(by jeff@…): Replying to [comment:2 hum@…]:
Thanks for your report. I changed the Portfile to fetch the source tarball, and the native libraries are built and installed into ${prefix}/lib. I added a patchfile and dependency descriptions. Committed in r97460. Could you please check the revised port?
I am not familiar with the process required to test the changes you committed. Is there a doc somewhere that explains how to pull the changes, where to put them etc? -- Ticket URL: <https://trac.macports.org/ticket/35902#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35902: hadoop is missing native libs -----------------------------+---------------------------------------------- Reporter: jeff@… | Owner: hum@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: hadoop -----------------------------+---------------------------------------------- Comment(by jeff@…): Replying to [comment:3 jeff@…]:
Replying to [comment:2 hum@…]:
Thanks for your report. I changed the Portfile to fetch the source tarball, and the native libraries are built and installed into ${prefix}/lib. I added a patchfile and dependency descriptions. Committed in r97460. Could you please check the revised port?
I am not familiar with the process required to test the changes you committed. Is there a doc somewhere that explains how to pull the changes, where to put them etc?
I figured out how to test it and it works great. There is another native lib for using fuse to mount hdfs that I just found a link on how to compile it. It would be great if you could get that working also. Here is a link to a doc decribing how to build the hdfs shared lib http://www.quora.com/How-can-I-get-proper-native-libraries-for- Hadoop-0-21-0-to-be-able-to-mount-HDFS-using-fuse-dfs -- Ticket URL: <https://trac.macports.org/ticket/35902#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35902: hadoop is missing native libs -----------------------------+---------------------------------------------- Reporter: jeff@… | Owner: hum@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: hadoop -----------------------------+---------------------------------------------- Comment(by hum@…): Replying to [comment:4 jeff@…]:
There is another native lib for using fuse to mount hdfs that I just found a link on how to compile it. It would be great if you could get that working also. Here is a link to a doc decribing how to build the hdfs shared lib http://www.quora.com/How-can-I-get-proper-native- libraries-for-Hadoop-0-21-0-to-be-able-to-mount-HDFS-using-fuse-dfs
Very nice information! I updated the port to build libhdfs and added fusedfs variant to build contrib/fuse-dfs. Committed in r97554. It is helpful to me if you could check the port with Fuse-DFS as following: {{{ $ sudo port selfupdate $ sudo port install hadoop +fusedfs ... }}} fuse_dfs and fuse_dfs_wrapper.sh are located in ${prefix}/bin and ${prefix}/share/java/hadoop-${version}/bin respectively. -- Ticket URL: <https://trac.macports.org/ticket/35902#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35902: hadoop is missing native libs -----------------------------+---------------------------------------------- Reporter: jeff@… | Owner: hum@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: hadoop -----------------------------+---------------------------------------------- Comment(by jeff@…): Replying to [comment:5 hum@…]:
Very nice information! I updated the port to build libhdfs and added fusedfs variant to build contrib/fuse-dfs. Committed in r97554. It is helpful to me if you could check the port with Fuse-DFS as following: {{{ $ sudo port selfupdate $ sudo port install hadoop +fusedfs ... }}} fuse_dfs and fuse_dfs_wrapper.sh are located in ${prefix}/bin and ${prefix}/share/java/hadoop-${version}/bin respectively. {{{ umount /Volumes/hc3; mkdir /Volumes/hc3;fuse_dfs_wrapper.sh dfs://cmc6-101.alpha.farecompare.com:8200 /Volumes/hc3/ -d umount: /Volumes/hc3: not currently mounted port=8200,server=cmc6-101.alpha.farecompare.com fuse-dfs didn't recognize /Volumes/hc3/,-2 fuse-dfs ignoring option -d FUSE library version: 2.8.7 nullpath_ok: 0 unique: 0, opcode: INIT (26), nodeid: 0, insize: 56 INIT: 7.12 flags=0x00000000 max_readahead=0x20000000 INIT: 7.12 flags=0x00000010 max_readahead=0x20000000 max_write=0x02000000 unique: 0, success, outsize: 40 unique: 0, opcode: STATFS (17), nodeid: 1, insize: 40 statfs / unique: 1, opcode: STATFS (17), nodeid: 1, insize: 40 statfs / unique: 2, opcode: STATFS (17), nodeid: 1, insize: 40 statfs / unique: 3, opcode: STATFS (17), nodeid: 1, insize: 40 statfs / unique: 4, opcode: STATFS (17), nodeid: 1, insize: 40 statfs / unique: 5, opcode: STATFS (17), nodeid: 1, insize: 40 statfs / unique: 6, opcode: GETATTR (3), nodeid: 1, insize: 56 getattr / dyld: lazy symbol binding failed: Symbol not found: _JNI_GetCreatedJavaVMs Referenced from: /opt/local/lib/libhdfs.dylib Expected in: flat namespace
dyld: Symbol not found: _JNI_GetCreatedJavaVMs Referenced from: /opt/local/lib/libhdfs.dylib Expected in: flat namespace /Users/jeffkreska/hadoop-dist/bin/fuse_dfs_wrapper.sh: line 29: 81221 Trace/BPT trap: 5 /opt/local/bin/fuse_dfs $@ }}} -- Ticket URL: <https://trac.macports.org/ticket/35902#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35902: hadoop is missing native libs ---------------------+---------------------- Reporter: jeff@… | Owner: hum@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: hadoop | ---------------------+---------------------- Comment (by hum@…): Replying to [comment:6 jeff@…]:
umount /Volumes/hc3; mkdir /Volumes/hc3;fuse_dfs_wrapper.sh dfs://cmc6-101.alpha.farecompare.com:8200 /Volumes/hc3/ -d ... dyld: lazy symbol binding failed: Symbol not found: _JNI_GetCreatedJavaVMs Referenced from: /opt/local/lib/libhdfs.dylib Expected in: flat namespace
I fixed the port to build libraries linking with Java and other depended libraries. The port now supports a universal build. Committed in r97746. -- Ticket URL: <https://trac.macports.org/ticket/35902#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35902: hadoop is missing native libs ---------------------+---------------------- Reporter: jeff@… | Owner: hum@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: hadoop | ---------------------+---------------------- Comment (by jeff@…): Replying to [comment:7 hum@…]:
Replying to [comment:6 jeff@…]:
umount /Volumes/hc3; mkdir /Volumes/hc3;fuse_dfs_wrapper.sh dfs://cmc6-101.alpha.farecompare.com:8200 /Volumes/hc3/ -d ... dyld: lazy symbol binding failed: Symbol not found: _JNI_GetCreatedJavaVMs Referenced from: /opt/local/lib/libhdfs.dylib Expected in: flat namespace
I fixed the port to build libraries linking with Java and other depended libraries. The port now supports a universal build. Committed in r97746.
It links fine but I am not able to see any files on the mount. It could be the fact that my hadoop cluster is running hadoop-0.20.2 not 1.0.3. I will know for sure when the port for hadoop-0.20.2-cdh3u5 is completed and I am comparing apples to apples. -- Ticket URL: <https://trac.macports.org/ticket/35902#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35902: hadoop is missing native libs ---------------------+-------------------- Reporter: jeff@… | Owner: hum@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: hadoop | ---------------------+-------------------- Changes (by hum@…): * status: assigned => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/35902#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts