Skip to content

Instantly share code, notes, and snippets.

@amalgjose
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amalgjose/e34b69e6c64120a280b8 to your computer and use it in GitHub Desktop.
Save amalgjose/e34b69e6c64120a280b8 to your computer and use it in GitHub Desktop.
hadoop-conf-sample
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