配置hadoop注意事项

<configuration>

	<property>
		<name>fs.default.name</name>
		<value>hdfs://192.168.100.140:9000</value>
	</property>

	<property>
		<name>hadoop.tmp.dir</name>
		<value>/home/YC/Programs/hadoopdata</value>
	</property>
</configuration>

配置core-site.xml文件时,内容为:



mapred-site.xml的内容为:

<configuration>

	<property>
		<name>mapred.job.tracker</name>
		<value>192.168.100.140:9001</value>
	</property>

</configuration>



其中NameNode和JobTracker的地址一定要写成IP地址,否则外界将不容使用IP地址连接hadoop

你可能感兴趣的:(配置hadoop注意事项)