我的家園

          我的家園

          Hadoop使用常見問題以及解決方法6

          Posted on 2012-04-15 16:37 zljpp 閱讀(104) 評論(0)  編輯  收藏
          reduce exceed 100%
          "Reduce Task Progress shows > 100% when the total size of map outputs (for a
          single reducer) is high "
          造成原因:
          在reduce的merge過程中,check progress有誤差,導(dǎo)致status > 100%,在統(tǒng)計(jì)過程中就會出現(xiàn)以下錯誤:java.lang.ArrayIndexOutOfBoundsException: 3
                  at org.apache.hadoop.mapred.StatusHttpServer$TaskGraphServlet.getReduceAvarageProgresses(StatusHttpServer.java:228)
                  at org.apache.hadoop.mapred.StatusHttpServer$TaskGraphServlet.doGet(StatusHttpServer.java:159)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
                  at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
                  at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475)
                  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
                  at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
                  at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635)
                  at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
                  at org.mortbay.http.HttpServer.service(HttpServer.java:954)

          jira地址:

          counters
          3中counters:
          1. built-in counters: Map input bytes, Map output records...
          2. enum counters
             調(diào)用方式:
            enum Temperature {
              MISSING,
              MALFORMED
            }

          reporter.incrCounter(Temperature.MISSING, 1)
             結(jié)果顯示:
          09/04/20 06:33:36 INFO mapred.JobClient:   Air Temperature Recor
          09/04/20 06:33:36 INFO mapred.JobClient:     Malformed=3
          09/04/20 06:33:36 INFO mapred.JobClient:     Missing=66136856
          3. dynamic countes:
             調(diào)用方式:
             reporter.incrCounter("TemperatureQuality", parser.getQuality(),1);
             
             結(jié)果顯示:
          09/04/20 06:33:36 INFO mapred.JobClient:   TemperatureQuality
          09/04/20 06:33:36 INFO mapred.JobClient:     2=1246032
          09/04/20 06:33:36 INFO mapred.JobClient:     1=973422173
          09/04/20 06:33:36 INFO mapred.JobClient:     0=1
           
          7: Namenode in safe mode 
          解決方法
          bin/hadoop dfsadmin -safemode leave

          8:java.net.NoRouteToHostException: No route to host
          j解決方法:
          sudo /etc/init.d/iptables stop

          9:更改namenode后,在hive中運(yùn)行select 依舊指向之前的namenode地址
          這是因?yàn)椋篧hen youcreate a table, hive actually stores the location of the table (e.g.
          hdfs://ip:port/user/root/...) in the SDS and DBS tables in the metastore . So when I bring up a new cluster the master has a new IP, but hive's metastore is still pointing to the locations within the old
          cluster. I could modify the metastore to update with the new IP everytime I bring up a cluster. But the easier and simpler solution was to just use an elastic IP for the master
          所以要將metastore中的之前出現(xiàn)的namenode地址全部更換為現(xiàn)有的namenode地址

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 武清区| 舒兰市| 惠来县| 贺州市| 河东区| 平陆县| 于田县| 江城| 报价| 武平县| 汕尾市| 房产| 明水县| 榆中县| 洛浦县| 连云港市| 屯昌县| 南阳市| 资阳市| 湖南省| 保山市| 韩城市| 饶平县| 东阿县| 沂源县| 安新县| 宣汉县| 平邑县| 客服| 曲麻莱县| 马关县| 和林格尔县| 右玉县| 仪陇县| 太谷县| 晋宁县| 通州市| 桑日县| 榆树市| 抚州市| 云霄县|