Hadoop to view the solution of no information in the Secondary Namenode management page

Hadoop to view the solution of no information in the Secondary Namenode management page

1. Problem description

 Open the SecondaryNamenode information management page, there is no information prompt

SN five any information

 Open the console of the developer tool of the browser and find the following prompt:

dfs-dust.js:61 Uncaught ReferenceError: moment is not defined
    at Object.date_tostring (dfs-dust.js:61)
    at Object.dust.filter (dust-full-2.0.0.min.js:1)
    at Chunk.reference (dust-full-2.0.0.min.js:1)
    at body_1 (eval at dust.loadSource (dust-full-2.0.0.min.js:1), <anonymous>:1:572)
    at Chunk.section (dust-full-2.0.0.min.js:1)
    at body_0 (eval at dust.loadSource (dust-full-2.0.0.min.js:1), <anonymous>:1:77)
    at Object.dust.load (dust-full-2.0.0.min.js:1)
    at Object.dust.render (dust-full-2.0.0.min.js:1)
    at render (snn.js:61)
    at Object.finished_request (snn.js:38)

2. Solution

【1】Method 1

 View dfs-dust.jsline 61

    'date_tostring' : function (v) {
    
    
      return moment(Number(v)).format('ddd MMM DD HH:mm:ss ZZ YYYY');
    },

 Cannot find momentfunction. Break here and modify the return value of the function:

    'date_tostring' : function (v) {
    
    
      return new Date(Number(v)).toLocaleString();
    },

 Then release the breakpoint

【2】Method 2

This problem does not exist in Hadoop  after source code compilation

Guess you like

Origin blog.csdn.net/adsl624153/article/details/100040310