Skip to main content

Posts

Showing posts from February, 2013

Mount NFS 4 shares from OSX

This is one of those things that goes to show: it's easy if you know how. I've got a zfs-based file server (currently using SmartOS) which uses NFSv4 shares. OSX can connect to NFS shares using "Connect To Server" from the finder" using a syntax like this: nfs://nas.example.com/share_name I've previously tried to use on my mbp but have never managed to get it to work in a stable fashion. Then, this evening, I stumbled across the solution: nfs://vers=4,nas.example.com/share_name That's all there is to it – I now have stable NFSv4 connections from my Mac!

hbase lzo compression on CentOS 6.3

The installation of hbase on CentOS is fairly painless thanks to those generous folks at Cloudera. Add their CDH4 repository and you're there: yum install hbase . However, adding lzo compression for hbase is a little more tricky. There are a few guides describing how to checkout from github, build the extension, and copy the resulting libraries into the right place, but I want a nice, simple RPM package to deploy. Enter the hadoop-lzo-packager project on github . Let's try and use this to build an RPM I can use to install lzo support for hbase. Get the source code: git clone git://github.com/toddlipcon/hadoop-lzo-packager.git Install the deps: yum install lzo-devel ant ant-nodeps gcc-c++ rpmbuild java-devel Build the RPMs: cd hadoop-lzo-packager export JAVA_HOME=/usr/lib/jvm/java ./run.sh --no-debs Et voila – cloudera-hadoop-lzo RPMS ready for installation. But wait… The libs get installed to /usr/lib/hadoop-0.20 … That's no good, I want them in /usr/li...