Time for action – configuring the pseudo-distributed mode
Take a look in the conf
directory within the Hadoop distribution. There are many configuration files, but the ones we need to modify are core-site.xml
, hdfs-site.xml
and mapred-site.xml
.
Modify
core-site.xml
to look like the following code:<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <!-- Put site-specific property overrides in this file. --> <configuration> <property> <name>fs.default.name</name> <value>hdfs://localhost:9000</value> </property> </configuration>
Modify
hdfs-site.xml
to look like the following code:<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <!-- Put site-specific property overrides in this file. --> <configuration> <property> <name>dfs.replication</name> <value>1</value> </property> </configuration>
Modify
mapred...