I found an issue with HDFS-Fuse on Pivotal HD 1.1 (and the workaround). Hopefully this saves someone a few minutes of troubleshooting.
With a simple
/usr/bin/hadoop-fuse-dfs dfs://MyNameNode:8020 /mnt/hdfs
I received
bash: /usr/bin/hadoop-fuse-dfs: /bin/base: bad interpreter: No such file or directory
There are some typos in the file /usr/bin/hadoop-fuse-dfs. The following sed commands fix the file:
#Make a backup copy first cp -p /usr/bin/hadoop-fuse-dfs /tmp/hadoop-fuse-dfs.`date +'%Y%m%d.%H%M'`.bak #Now fix typos sed -i 's|^#!/bin/base|#!/bin/bash|' /usr/bin/hadoop-fuse-dfs sed -i 's|^/sbin/modprob fuse|/sbin/modprobe fuse|' /usr/bin/hadoop-fuse-dfs sed -i '/^# Autodetect JAVA_HOME if not definedif \[ -e \/usr\/libexec\/bigtop-detect-javahome \]; then/ a\ if [ -e /usr/libexec/bigtop-detect-javahome ]; then ' /usr/bin/hadoop-fuse-dfs sed -i '/^. \/usr\/lib\/bigtop-utils\/bigtop-detect-javahome/ a\ fi ' /usr/bin/hadoop-fuse-dfs sed -i 's|\\\$|$|g' /usr/bin/hadoop-fuse-dfs sed -i 's|\\`|`|g' /usr/bin/hadoop-fuse-dfs sed -i 's|\$/|/|g' /usr/bin/hadoop-fuse-dfsNow hadoop-fuse-dfs works properly:
/usr/bin/hadoop-fuse-dfs dfs://MyNameNode:8020 /mnt/hdfs
ls /mnt/hdfs/ apps benchmarks hive mapred test tmp user yarnPivotal support said this should be fixed in Pivotal HD 2.0, until then the simple sed workaround works fine.
Another option for machines that are not part of the cluster (eg client machines accessing HDFS) is to use HDFS-Fuse from the Bigtop repo, however this may make support from Pivotal more difficult if issues arise.