2007年3月29日

          Haddop 配置引起的
          WARN org.mortbay.log: /getimage: java.io.IOException: GetImage failed. java.io.IOException: Content-Length header is not provided by  the namenode when trying to fetch http://127.0.1.1:50090/getimage?getimage=1

          最近在翻看NameNode的log時發現經常有這一段信息出現:



          看來是SecondNameNode在向NameNode獲取Image時出的問題。雖然不影響hdfs使用,但是SecondName
          備份功能失效,任其下去萬一NameNode掛了那可就無處申冤了。
          經過Google大神幫助,得知需要在hdfs-site.xml中手動配置dfs.secondary.http.address,這個配置項的默認值如下
          <property>
            
          <name>dfs.namenode.secondary.http-address</name>
            
          <value>0.0.0.0:50090</value>
            
          <description>
              The secondary namenode http server address and port.
              If the port is 
          0 then the server will start on a free port.
            
          </description>
          </property>
          需要明確指明SecondName,與conf/master里面的名稱一樣
          <property>
            
          <name>dfs.namenode.secondary.http-address</name>
            
          <value>test-dn2:50090</value>
            
          <description>
              The secondary namenode http server address and port.
              If the port is 
          0 then the server will start on a free port.
            
          </description>
          </property>
          posted @ 2011-09-13 11:44 Juliashine 閱讀(886) | 評論 (1)編輯 收藏
           
          1、IE有全局event對象window.event,FF沒有,FF中的?event?只能在事件發生的現場使用,即必須通過事件綁定函數的參數來使用。
          <input?type="text"?name="input_content"?onkeydown="exeCode(event)"/>

          <script?language="javascript">
          function?exeCode()?{
          ??
          //取得事件對象
          ??var?event?=?arguments[0]?||?window.event;
          ??
          //取得事件的發生源對象
          ??var?element?=?event.srcElement?||?event.target;
          }

          </script>


          2、FireFox下沒有preserveWhiteSpace這個屬性,即:把空白也當作一個節點。而IE則默認為false,即把空白不看成一個節點。所以在FireFox下previousSibling可能是空白節點,除非兩個HTML標簽之間沒有任何形式的空格。

          3、IE下可以用document.frames("name").document的方式取得frame中所嵌頁面的document對象,FF下卻會得到null,解決的的辦法是document.getElementById(framename).contentWindow.document,也可以使用
          window.frames[frameName].document 直接獲取frame里的document對象


          最后推薦一篇文章:Javascript的IE和Firefox兼容性匯編
          posted @ 2007-03-29 15:06 Juliashine 閱讀(752) | 評論 (0)編輯 收藏
           
          主站蜘蛛池模板: 贡山| 鄄城县| 积石山| 仪陇县| 苍南县| 霍邱县| 英吉沙县| 昌宁县| 偃师市| 清水河县| 甘孜县| 高雄县| 卢氏县| 西林县| 昭平县| 德兴市| 安吉县| 天津市| 通州市| 乌兰察布市| 平舆县| 襄垣县| 塔河县| 五原县| 正蓝旗| 荔波县| 神农架林区| 周宁县| 沁水县| 驻马店市| 长治市| 乌兰县| 桓台县| 钟山县| 慈溪市| 喜德县| 黔东| 淮北市| 阳山县| 沿河| 仙桃市|