Return-Path: Delivered-To: apmail-hadoop-core-commits-archive@www.apache.org Received: (qmail 17890 invoked from network); 11 Oct 2008 02:10:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2008 02:10:44 -0000 Received: (qmail 23755 invoked by uid 500); 11 Oct 2008 02:10:43 -0000 Delivered-To: apmail-hadoop-core-commits-archive@hadoop.apache.org Received: (qmail 23720 invoked by uid 500); 11 Oct 2008 02:10:43 -0000 Mailing-List: contact core-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-commits@hadoop.apache.org Received: (qmail 23711 invoked by uid 99); 11 Oct 2008 02:10:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2008 19:10:43 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Oct 2008 02:09:38 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 63ED1118E8 for ; Sat, 11 Oct 2008 02:10:14 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: core-commits@hadoop.apache.org Date: Sat, 11 Oct 2008 02:10:14 -0000 Message-ID: <20081011021014.24894.60508@eos.apache.org> Subject: [Hadoop Wiki] Trivial Update of "Chukwa Quick Start" by andykonwinski X-Virus-Checked: Checked by ClamAV on apache.org 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 andykonwinski: http://wiki.apache.org/hadoop/Chukwa_Quick_Start New page: (This is copied from the README.TXT file that comes with the Chukwa distribution) The Chukwa monitoring system has a number of components. This section gives guidance on starting each of them on your local machine. You should start the collector first, then the agent, and finally any adaptors. * Compiling and installing Chukwa - If Chukwa is in the hadoop contrib directory, you should be able to just say ``ant'' in the project root directory. - Otherwise, * Configuring and starting the Collector - Copy conf/chukwa-collector-conf.xml.template to conf/chukwa-collector-conf.xml - Edit the writer.hdfs.filesystem property to point to a real filesystem. - If you are running hadoop, this should be the path to the namenode. - If you are not running hadoop, you can just juse a local path, of the form file:///tmp/chukwa. - Copy conf/chukwa-env.sh-template to conf/chukwa-env.sh. Set JAVA_HOME in file. - In the chukwa root directory, say ``bash bin/jettyCollector.sh'' * Configuring and starting the Local Agent - Copy conf/chukwa-agent-conf.xml.template to conf/chukwa-agent-conf.xml - Copy conf/collectors.template to conf/collectors - In the chukwa root directory, say ``bash bin/agent.sh'' * Starting Adaptors The local agent speaks a simple text-based protocol, by default over port 9093. Suppose you want Chukwa to start tailing a file /path/to/file of type MyFileType on localhost: - Telnet to localhost 9093 - Type [without quotation marks] "ADD CharFileTailerUTF8 MyFileType /path/to/file 0" - Chukwa internal Namenode's type is NameNodeType so for namenode log Type [without quotation marks] "ADD CharFileTailerUTF8 NameNodeType /path/to/nameNodeFie 0" - Type "list" -- you should see the adaptor you just started, listed as running. - Type "close" to break the connection. If you don't have telnet, you can get the same effect with netcat (``nc''). * Configuring and starting the demux job - Edit bin/chukwa-config.sh to match your system configuration - In the chukwa root directory, say ``bash bin/processSinkFiles.sh'' * Configuring and starting HICC - Download Apache Tomcat from http://tomcat.apache.org/download-60.cgi - Configure CHUKWA_HOME environment variable pointing to the Chukwa home directory. - Copy hicc.war into Apache Tomcat webapps directory. - Startup Tomcat. RUNNING CHUKWA -- NETWORKED Running Chukwa in a networked context is essentially similar to the single-machine deployment discussed above. However, in a network context, you would also need to tell the local agent where the collector[s] live, by listing them in conf/collectors.