gitava / Big-Data-Study

For studying big data
2 stars 0 forks source link

http://192.168.33.101:50030/jobtracker.jsp is not available. #4

Closed gitava closed 4 years ago

gitava commented 4 years ago

After starting up hadoop, can't access this url.

gitava commented 4 years ago

Configured mapred-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>mapreduce.framework.name</name>
        <value>yarn</value>
    </property>
    <!-- 
    ADD: configure tracker to provide service on port 50030
    连接jobtrack服务器的配置项,默认不写是local,map数1,reduce数1 
    -->
    <property>
        <name>mapred.job.tracker</name>
        <value>192.168.33.101::9001</value>
    </property>
    <!-- jobtracker的tracker页面服务监听地址 -->
    <property>
        <name>mapred.job.tracker.http.addressr</name>
        <value>0.0.0.0:50030</value>
    </property>

</configuration>
gitava commented 4 years ago

Hadoop 1.x use job tracker

Hadoop 2 using ResourceManager

So don't need to configure job tracker.