†††††
††
†
††
†
††
$ ./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 cc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"\ -DPACKAGE_BUGREPORT=\"\" -g -DOPENSOLARIS -DSOL10 -m64 -xmodel=kernel -D_KERNEL -I. iumfs.c -o iumfs.o cc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" \ -DPACKAGE_BUGREPORT=\"\" -g -DOPENSOLARIS -DSOL10 -m64 -xmodel=kernel -D_KERNEL -I. iumfs_vnode.c -o iumfs_vnode.o cc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" \ -DPACKAGE_BUGREPORT=\"\" -g -DOPENSOLARIS -DSOL10 -m64 -xmodel=kernel -D_KERNEL -I. iumfs_cntl_device.c -o \ iumfs_cntl_device.o cc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" \ -DPACKAGE_BUGREPORT=\"\" -g -DOPENSOLARIS -DSOL10 -m64 -xmodel=kernel -D_KERNEL -I. iumfs_request.c -o \ iumfs_request.o ld -dn -r iumfs.o iumfs_vnode.o iumfs_cntl_device.o iumfs_request.o -o iumfs cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" \ -DPACKAGE_BUGREPORT=\"\" -g -DOPENSOLARIS -DSOL10 -m64 hdfs_mount.c -o mount cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" \ -DPACKAGE_BUGREPORT=\"\" -g -DOPENSOLARIS -DSOL10 -m64 fstestd.c -lsocket -lnsl -o fstestd cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" \ -DPACKAGE_BUGREPORT=\"\" -g -DOPENSOLARIS -DSOL10 -m64 fstest.c -o fstest # make install /usr/bin/ginstall -c -m 0644 -o root -g sys iumfs /kernel/fs/amd64 /usr/bin/ginstall -c -m 0644 -o root -g sys iumfs.conf /usr/kernel/drv /usr/bin/ln /kernel/fs/amd64/iumfs /usr/kernel/drv/amd64/iumfs /usr/sbin/add_drv iumfs /usr/sbin/devfsadm -t iumfs_devlink.tab /bin/chmod 0666 /devices/pseudo/iumfs@0:iumfscntl /usr/bin/ginstall -c -d -m 0755 -o root -g bin /usr/lib/fs/hdfs /usr/bin/ginstall -c -m 0755 -o root -g bin mount /usr/lib/fs/hdfs /usr/bin/ginstall -c -d -m 0755 -o root -g bin /usr/local/bin $ export HADOOP_HOME=/usr/local/hadoop $ export JAVA_HOME=/usr/java $ ant Buildfile: build.xml compile: [javac] Compiling 8 source files to /var/tmp/fs_3 dist: [jar] Building jar: /var/tmp/fs_3/hdfsd.jar BUILD SUCCESSFUL Total time: 6 seconds †
# make uninstall
††
% ${HADOOP_HOME}/bin/hadoop -cp ${CLASSPATH} hdfsd
% hadoop -cp ${HADOOP_HOME}/hdfsd.jar:${HADOOP_HOME}/conf:${HADOOP_HOME}/hadoop-0.20.2-core.jar:\ ${HADOOP_HOME}/lib/commons-logging-1.0.4.jar hdfsd % hadoop -Djava.util.logging.config.file=log.prop \ -cp ${HADOOP_HOME}/hdfsd.jar:${HADOOP_HOME}/conf:${HADOOP_HOME}/hadoop-0.20.2-core.jar:\ ${HADOOP_HOME}/lib/commons-logging-1.0.4.jar 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 hdfs base_path mount_point
# /usr/sbin/mount -F hdfs /user/myname /mnt ^^^^^^^^^^^^^ ^^^^ # /usr/sbin/mount : : /mnt on /user/myname read only/setuid/devices/dev=52c0001 on Fri May 21 22:36:59 2010 ^^^^^^^^^^^^^^^^^^^^ ††$ 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 $ †
$ chmod 777 file1 $ touch file1 $ chown nobody file1 $ cp /var/adm/messages file1 †Usage: umount mount_point
# umount /mnt # # pwd /mnt # umount /mnt † |