Skip to content

Instantly share code, notes, and snippets.

@maimai-swap
Created November 19, 2012 01:27
Show Gist options
  • Select an option

  • Save maimai-swap/4108493 to your computer and use it in GitHub Desktop.

Select an option

Save maimai-swap/4108493 to your computer and use it in GitHub Desktop.
hdfs を fuseするときのスクリプト
export HADOOP_PREFIX=/root/modules/hadoop-common
export OS_ARCH=amd64
export JAVA_HOME=/etc/alternatives/java_sdk
export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/$OS_ARCH/server:/usr/local/lib
export CLASSPATH=`find $HADOOP_PREFIX -name '*.jar' | grep -v 'test' | grep -v 'example' | perl -e '@jars=<STDIN>;chomp @jars; print join(":",@jars);'`
fuse_dfs -odebug -oserver=localhost -oport=9000 /mnt/hdfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment