Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.
The following page has been changed by TerenceKwan: http://wiki.apache.org/hadoop/Chukwa_Console_Integration_Guide ------------------------------------------------------------------------------ === View Permission === - TDB. This will description the HICC user based permission system. - === Add Your Own Component === + === Add Your Own Widget === + In this section, I will describe how to create your own widget for HICC. First, we will build a '''Hello World widget'''. + * cd $CHUKWA_DATA_DIR + * create a hello_world.descriptor file. The same of the file is not important as long as it is unique. + * Inside the hello_world.descriptor file, put the following (remember, the content is in JSON format. Make sure that it is a valid JSON string). {{{ + { + "id":"hellow_word", + "title":"Hello Word", + "version":"1.0", + "categories":"Test,My Widget", + "module":"iframe/jsp/hello.jsp", + "description":"Hello world", + "screendump":"\/images\/start.png", + "refresh":"15", + "parameters":[ + ] + } + }}} + * create tomcat/webapps/hicc/jsp/hello.jsp and put "Hello world" in the file. + * remove the cache files + * remove $CONFIG_DATA_DIR/descriptors/*.cache + * remove $CONFIG_DATA_DIR/views/*.cache + * Congralution! You just finish your first HICC Widget. + You can now go to the HICC UI. Click on '''Options''' -> '''Add Widget'''. You will see the widget tree has a new category call "Test". Open it up and you will see your hello world widget. Click '''Add'''. Then it will add the widget to your view and it will display '''Hello world''' as in the hello.jsp file. +
