†††††
††
†
††
†
†††
$ cd iumfs-0.1.2 $ ./configure checking for gcc... no checking for cc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... no checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/ginstall -c checking for isainfo... yes configure: creating ./config.status config.status: creating Makefile $ make cd module ; make gcc -c -DPACKAGE_NAME="IUMFS" -DPACKAGE_TARNAME="iumfs" -DPACKAGE_VERSION="0.1" -DPACKAGE_STRING="IUMFS 0.1.2" -DPACKAGE_BUGREPORT="admin2@whiteboard.ne.jp" -g -O2 -Wall -DOPENSOLARIS -DSOL10 -m64 -mcmodel=kernel -mno-red-zone -D_KERNEL -I. iumfs_vfsops.c -o iumfs_vfsops.o gcc -c -DPACKAGE_NAME="IUMFS" -DPACKAGE_TARNAME="iumfs" -DPACKAGE_VERSION="0.1" -DPACKAGE_STRING="IUMFS 0.1.2" -DPACKAGE_BUGREPORT="admin2@whiteboard.ne.jp" -g -O2 -Wall -DOPENSOLARIS -DSOL10 -m64 -mcmodel=kernel -mno-red-zone -D_KERNEL -I. iumfs_vnops.c -o iumfs_vnops.o : # make install cd module ; make install /bin/ginstall -c -m 0644 -o root -g sys iumfs /kernel/fs/amd64 /bin/ginstall -c -m 0644 -o root -g sys iumfs.conf /usr/kernel/drv : †$ export HADOOP_HOME=/usr/local/hadoop $ export JAVA_HOME=/usr/java $ cd cmd $ ant Buildfile: build.xml compile: [javac] Compiling 12 source files to /var/tmp/hdfs/cmd/build dist: [jar] Building jar: /var/tmp/hdfs/cmd/hdfsd.jar BUILD SUCCESSFUL Total time: 2 seconds †
# make uninstall
††
$ cd cmd $ ./start-hdfsd.sh Sep 11, 2010 12:55:37 AM hdfsd main INFO: % ${HADOOP_HOME}/bin/hadoop -cp ${CLASSPATH} hdfsd
% export CLASSPATH=./hdfsd.jar:${HADOOP_HOME}/conf:${HADOOP_HOME}/hadoop-common-0.21.0.jar:\ ${HADOOP_HOME}/hadoop-hdfs-0.21.0.jar:${HADOOP_HOME}/lib/commons-logging-1.1.1.jar % hadoop -cp $CLASSPATH hdfsd % hadoop -Djava.util.logging.config.file=log.prop hdfsd Can't set level for java.util.logging.ConsoleHandler May 22, 2010 3:46:25 PM hdfsd main FINE: Successfully open device. May 22, 2010 3:46:25 PM hdfsd main INFO: Started May 22, 2010 3:46:32 PM hdfsd main FINE: device returns 2240 bytes May 22, 2010 3:46:32 PM RequestFactory getInstance FINER: Buf info pos=0 limit=1048576 May 22, 2010 3:46:32 PM RequestFactory getInstance : †# /usr/sbin/mount -F iumfs hdfs://name_node/base_path mount_point
# /usr/sbin/mount -F iumfs hdfs://namenode.example.com/user/myname /mnt ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^ # /usr/sbin/mount : : /mnt on hdfs://namenode.example.com/user/myname read/write/setuid/devices/dev=91c0004 on Wed Jun 8 00:41:35 2011 ††$ cd /mnt/ $ /bin/ls inputs †$ /bin/ls -l total 3 drwxr-xr-x 1 root root 0 May 21 23:03 ./ drwxr-xr-x 1 root root 0 May 21 23:03 ../ drwxr-xr-x 1 root root 0 May 21 23:03 inputs/
†$ cd inputs $ cat file1 this is file1 this is file1 this is file1 this is file1 $ †$ cp file1 /var/tmp $ $ cp /etc/hosts /mnt †
$ chmod 777 file1 $ chown nobody file1 †Usage: umount mount_point
# umount /mnt # # pwd /mnt # umount /mnt † |