</configuration> Dfs.name.dir Specify the directory where Namenode stores metadata, you can specify multiple directories, which are separated by commas; Dfs.data.dir Specify the directory where the data is stored datanode, you can specify multiple directories, and Fs.checkpoint.dir specify the directory where the secondary Namenode stores checkpoints.
<!--put site-specific property overrides in this file. -->
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:9001</value>
<final>true</final>
</property>
</configuration>3, Test
First format HDFs:
./hadoop-1.2.1/bin/hadoop namenode-format start HDFs and MapReduce processes:
$/hadoop-1.2.1/bin/start-dfs.sh
$./hadoop-1.2.1/bin/start-mapred.sh when an error is being started, such as Localhost:Error:JAVA_HOME is not set., you need to be in./hadoop-1.2.1/conf/ hadoop-env.sh file, export java_home, for example:
export java_home=~/jdk1.7.0_25 How to check for successful startup:
the first method is to use the JPS command (Java Virtual Machine Process Status Tool), which should have the following similar output:
$ JPS
13592 DataNode
13728 Secondarynamenode
13837 Jobtracker
12864 Namenode
13955 Tasktracker
16069 JPS The second method is the browser login http://localhost:50030 view jobtracker,http://localhost:50070 See Namenode. If you are using the flip-wall software, you may be able to make an error when you visit, the simplest way is to turn off the flip-wall software.
Another way to
is to view log files.
Now we create two files in the ~/hadoop-env/test/input directory:
$ echo "Hello World" > Test1.txt
$ echo "Hi,world" > Test2.txt import these two files into HDFs:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.