Last active
August 29, 2015 14:26
-
-
Save amalgjose/e34b69e6c64120a280b8 to your computer and use it in GitHub Desktop.
hadoop-conf-sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir -p /app/hadoop/tmp | |
sudo chmod 777 /app/hadoop/tmp | |
sudo chown hdfs:hadoop /app/hadoop/tmp | |
<-- IN CORE-SITE.XML --> | |
<configuration> | |
<property> | |
<name>fs.defaultFS</name> | |
<value>hdfs://localhost:9000</value> | |
</property> | |
<property> | |
<name>hadoop.tmp.dir</name> | |
<value>/app/hadoop/tmp</value> | |
</property> | |
</configuration> | |
<--IN hdfs-site.xml--> | |
</configuration> | |
<property> | |
<name>dfs.replication</name> | |
<value>1</value> | |
</property> | |
</configuration> | |
---------------------------------- | |
Execute the following commands | |
sudo -u hdfs hadoop namenode -format | |
cd $HADOOP_HOME/bin | |
./start-all.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment