Niftyクラウド環境の構築(15)

#
rm -rf /hadoop
#rm -rf /var/log/hadoop
rm -rf /var/run/hadoop
rm -rf /var/lib/hadoop-0.20/*

mkdir /hadoop
#mkdir /var/log/hadoop
mkdir /var/run/hadoop

chown -R hdfs:hadoop /hadoop
#chown -R hdfs:hadoop /var/log/hadoop
chown -R hdfs:hadoop /var/run/hadoop
chmod 777 /hadoop

rm -rf /hdfs_area/*
mkdir -p /hdfs_area/dfs/name /hdfs_area/dfs/data
chown -R hdfs:hadoop /hdfs_area/dfs/name /hdfs_area/dfs/data
chmod -R 700 /hdfs_area/dfs/name/
chmod -R 755 /hdfs_area/dfs/data/

mkdir -p /hdfs_area/mapred/local
chown -R mapred:hadoop /hdfs_area/mapred/local/
chmod -R 755 /hdfs_area/mapred/local/
#

#ネームノード側

#su – hdfs
$ hadoop namenode -format


#su – hdfs
$
hadoop fs -mkdir /mapred/system
hadoop fs -chown -R mapred:hadoop /mapred
hadoop fs -chmod -R 700 /mapred


# yum install hadoop


# vi /var/log/hadoop/hadoop-hadoop-tasktracker-cdh-04.log
# chown mapred:root /var/log/hadoop/hadoop-hadoop-tasktracker-cdh-xx.log


 

- Sponsored Link -