[hadoop@hddcluster2 hadoop]$
pwd
/usr/local/hadoop/etc/hadoop
[hadoop@hddcluster2 hadoop]$
cat
core-site.xml
<?xml version=
"1.0"
encoding=
"UTF-8"
?>
<?xml-stylesheet
type
=
"text/xsl"
href=
"configuration.xsl"
?>
<!--
Licensed under the Apache License, Version 2.0 (the
"License"
);
you may not use this
file
except
in
compliance with the License.
You may obtain a copy of the License at
http:
//www
.apache.org
/licenses/LICENSE-2
.0
Unless required by applicable law or agreed to
in
writing, software
distributed under the License is distributed on an
"AS IS"
BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License
for
the specific language governing permissions and
limitations under the License. See accompanying LICENSE
file
.
-->
<!-- Put site-specific property overrides
in
this
file
. -->
<configuration>
<property>
<name>fs.defaultFS<
/name
>
<value>hdfs:
//hddcluster2
:9000<
/value
>
<
/property
>
<property>
<name>hadoop.tmp.
dir
<
/name
>
<value>
file
:
/usr/local/hadoop/tmp
<
/value
>
<description>Abase
for
other temporary directories.<
/description
>
<
/property
>
<
/configuration
>
[hadoop@hddcluster2 hadoop]$
cat
hdfs-site.xml
<?xml version=
"1.0"
encoding=
"UTF-8"
?>
<?xml-stylesheet
type
=
"text/xsl"
href=
"configuration.xsl"
?>
<!--
Licensed under the Apache License, Version 2.0 (the
"License"
);
you may not use this
file
except
in
compliance with the License.
You may obtain a copy of the License at
http:
//www
.apache.org
/licenses/LICENSE-2
.0
Unless required by applicable law or agreed to
in
writing, software
distributed under the License is distributed on an
"AS IS"
BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License
for
the specific language governing permissions and
limitations under the License. See accompanying LICENSE
file
.
-->
<!-- Put site-specific property overrides
in
this
file
. -->
<configuration>
<property>
<name>dfs.namenode.secondary.http-address<
/name
>
<value>hddcluster2:50090<
/value
>
<
/property
>
<property>
<name>dfs.replication<
/name
>
<value>3<
/value
>
<
/property
>
<property>
<name>dfs.namenode.name.
dir
<
/name
>
<value>
file
:
/usr/local/hadoop/tmp/dfs/name
<
/value
>
<
/property
>
<property>
<name>dfs.datanode.data.
dir
<
/name
>
<value>
file
:
/usr/local/hadoop/tmp/dfs/data
<
/value
>
<
/property
>
<
/configuration
>
[hadoop@hddcluster2 hadoop]$
[hadoop@hddcluster2 hadoop]$
cat
mapred-site.xml
<?xml version=
"1.0"
?>
<?xml-stylesheet
type
=
"text/xsl"
href=
"configuration.xsl"
?>
<!--
Licensed under the Apache License, Version 2.0 (the
"License"
);
you may not use this
file
except
in
compliance with the License.
You may obtain a copy of the License at
http:
//www
.apache.org
/licenses/LICENSE-2
.0
Unless required by applicable law or agreed to
in
writing, software
distributed under the License is distributed on an
"AS IS"
BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License
for
the specific language governing permissions and
limitations under the License. See accompanying LICENSE
file
.
-->
<!-- Put site-specific property overrides
in
this
file
. -->
<configuration>
<property>
<name>mapreduce.framework.name<
/name
>
<value>yarn<
/value
>
<
/property
>
<property>
<name>mapreduce.jobhistory.address<
/name
>
<value>hddcluster2:10020<
/value
>
<
/property
>
<property>
<name>mapreduce.jobhistory.webapp.address<
/name
>
<value>hddcluster2:19888<
/value
>
<
/property
>
<
/configuration
>
[hadoop@hddcluster2 hadoop]$
[hadoop@hddcluster2 hadoop]$
cat
yarn-site.xml
<?xml version=
"1.0"
?>
<!--
Licensed under the Apache License, Version 2.0 (the
"License"
);
you may not use this
file
except
in
compliance with the License.
You may obtain a copy of the License at
http:
//www
.apache.org
/licenses/LICENSE-2
.0
Unless required by applicable law or agreed to
in
writing, software
distributed under the License is distributed on an
"AS IS"
BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License
for
the specific language governing permissions and
limitations under the License. See accompanying LICENSE
file
.
-->
<configuration>
<!-- Site specific YARN configuration properties -->
<property>
<name>yarn.resourcemanager.
hostname
<
/name
>
<value>hddcluster2<
/value
>
<
/property
>
<property>
<name>yarn.nodemanager.aux-services<
/name
>
<value>mapreduce_shuffle<
/value
>
<
/property
>
<
/configuration
>
[hadoop@hddcluster2 hadoop]$
[hadoop@hddcluster2 hadoop]$
cat
slaves
hddcluster1
hddcluster2
hddcluster3
hddcluster4