Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 86938 invoked from network); 2 May 2007 22:08:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 May 2007 22:08:40 -0000 Received: (qmail 94052 invoked by uid 500); 2 May 2007 22:08:46 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 93939 invoked by uid 500); 2 May 2007 22:08:45 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 93930 invoked by uid 99); 2 May 2007 22:08:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2007 15:08:45 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [207.126.228.150] (HELO rsmtp2.corp.yahoo.com) (207.126.228.150) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2007 15:08:37 -0700 Received: from [10.0.1.4] (snvvpn1-10-72-72-c8.corp.yahoo.com [10.72.72.8]) by rsmtp2.corp.yahoo.com (8.13.8/8.13.6/y.rout) with ESMTP id l42M7wgX055025 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 2 May 2007 15:07:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:content-type:message-id: content-transfer-encoding:from:subject:date:to:x-mailer; b=NQsOv2HWk/W5Quf9SFxMEqdxpcB8VIar6L2PRNeMgQZZKQUYDDQdVD5waZj9P7jH Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <32753438.1178141175361.JavaMail.jira@brutus> References: <32753438.1178141175361.JavaMail.jira@brutus> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <4DFAB90F-A8A5-421F-A355-DB83EE2948A3@yahoo-inc.com> Content-Transfer-Encoding: 7bit From: Nigel Daley Subject: Re: [jira] Resolved: (HADOOP-435) Encapsulating startup scripts and jars in a single Jar file. Date: Wed, 2 May 2007 15:07:48 -0700 To: hadoop-dev@lucene.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Just expressing my disappointment that this patch wasn't applied as is and then another Jira opened to rework the scripts. Should have spoken up earlier. On May 2, 2007, at 2:26 PM, Benjamin Reed (JIRA) wrote: > > [ https://issues.apache.org/jira/browse/HADOOP-435? > page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] > > Benjamin Reed resolved HADOOP-435. > ---------------------------------- > > Resolution: Won't Fix > > The encapsulating Jar aspect doesn't seem to be an issue to most > people. This should probably be reopened as an issue to redo the > hadoop script since that seems to be the direction the issue is > heading. > >> Encapsulating startup scripts and jars in a single Jar file. >> ------------------------------------------------------------ >> >> Key: HADOOP-435 >> URL: https://issues.apache.org/jira/browse/HADOOP-435 >> Project: Hadoop >> Issue Type: New Feature >> Affects Versions: 0.12.1 >> Reporter: Benjamin Reed >> Fix For: 0.13.0 >> >> Attachments: hadoop-exe.patch, hadoop-exe.patch, hadoop- >> exe.patch, hadoop-exe.patch, hadoopit.patch, hadoopit.patch, >> hadoopit.patch, start.sh, stop.sh >> >> >> Currently, hadoop is a set of scripts, configurations, and jar >> files. It makes it a pain to install on compute and datanodes. It >> also makes it a pain to setup clients so that they can use hadoop. >> Everytime things are updated the pain begins again. >> I suggest that we should be able to build a single Jar file that >> has a Main-Class defined with the configuration built in so that >> we can distribute that one file to nodes and clients on updates. >> One nice thing that I haven't done would be to make the jarfile >> downloadable from the JobTracker webpage so that clients can >> easily submit the jobs. >> I currently use such a setup on my small cluster. To start the job >> tracker I used "java -jar hadoop.jar -l /tmp/log jobtracker" to >> submit a job I use "java -jar hadoop.jar jar wordcount.jar". I >> used the client on my linux and Mac OSX machines and I'll I need >> installed in java and the hadoop.jar file. >> hadoop.jar helps with logfiles and configurations. The default of >> pulling the config files from the jar file can be overridden by >> specifying a config directory so that you can easily have machine >> specific configs and still have the same hadoop.jar on all machines. >> Here are the available commands from hadoop.jar: >> USAGE: hadoop [-l logdir] command >> User commands: >> dfs run a DFS admin client >> jar run a JAR file >> job manipulate MapReduce jobs >> fsck run a DFS filesystem check utility >> Runtime startup commands: >> datanode run a DFS datanode >> jobtracker run the MapReduce job Tracker node >> namenode run the DFS namenode (namenode -format formats >> the FS) >> tasktracker run a MapReduce task Tracker node >> HadoopLoader commands: >> buildJar builds the HadoopLoader jar file >> conf dump hadoop configuration >> Note, I don't have the classes for hadoop streaming built into >> this Jar file, but if I had that would also be an option (it >> checks for needed classes before displaying an option). It makes >> it very easy for users that just write scripts to use hadoop >> straight from their machines. >> I'm also attaching the start.sh and stop.sh scripts that I use. >> These are the only scripts I use to startup the daemons. They are >> very simple and the start.sh script uses the config file to figure >> out whether or not to start the jobtracker and the nameserver. >> The attached patch adds the HadoopIt patch, modifies the >> Configuration class to find the config files correctly, and >> modifies the build to make a fully contained hadoop.jar. To update >> the configuration in a hadoop.jar you simply use "zip hadoop.jar >> hadoop-site.xml". > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. >