Hi Jinwei, Here's the wiki on how to build and run Ambari from source: https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development Please try it out. Please file JIRAs on any issues you encounter.
Thanks, Yusaku On Tue, Jan 22, 2013 at 12:28 AM, jinwei zhu <[email protected]> wrote: > ok, thanks, I have resolved that exception. And I am using ambari 1.2 rc > . > By the way, is there any docs for us to debug 1.2 rc code ? I have known > that there is a develop doc for ambari-666 in this wiki : > https://cwiki.apache.org/confluence/display/AMBARI/Ambari-666+Development > > > > > 2013/1/20 Jitendra Pandey <[email protected]> > > > The exception means that the datanode is already started. > > If the datanode is actually running, this is usually harmless. > > Are you using AMBARI-666 branch? The code is outdated there. Please use > > branch-1.2. > > > > > > On Fri, Jan 18, 2013 at 10:00 PM, jinwei zhu <[email protected]> > > wrote: > > > > > Hi, yusaku, here is the detail error log: > > > --------------------------------------------------- > > > 21:03:50,677 ERROR ServiceComponentHostImpl:639 - Can't handle > > > ServiceComponentHostEvent event at current state, > > > serviceComponentName=DATANODE, hostName=192.168.1.1, > > currentState=STARTED, > > > eventType=HOST_SVCCOMP_START, event=EventType: HOST_SVCCOMP_START > > > 21:03:50,679 INFO ActionScheduler:271 - Transition failed for host: > > > 192.168.1.1, role: DATANODE > > > org.apache.ambari.server.state.fsm.InvalidStateTransitionException: > > Invalid > > > event: HOST_SVCCOMP_START at STARTED > > > at > > > > > > > > > org.apache.ambari.server.state.fsm.StateMachineFactory.doTransition(StateMachineFactory.java:297) > > > at > > > > > > > > > org.apache.ambari.server.state.fsm.StateMachineFactory.access$300(StateMachineFactory.java:39) > > > at > > > > > > > > > org.apache.ambari.server.state.fsm.StateMachineFactory$InternalStateMachine.doTransition(StateMachineFactory.java:440) > > > at > > > > > > > > > org.apache.ambari.server.state.svccomphost.ServiceComponentHostImpl.handleEvent(ServiceComponentHostImpl.java:634) > > > at > > > > > > > > > com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:66) > > > at > > > > > > > > > org.apache.ambari.server.orm.dao.ClearEntityManagerInterceptor.invoke(ClearEntityManagerInterceptor.java:41) > > > at > > > > > > > > > org.apache.ambari.server.actionmanager.ActionScheduler.scheduleHostRole(ActionScheduler.java:267) > > > at > > > > > > > > > org.apache.ambari.server.actionmanager.ActionScheduler.doWork(ActionScheduler.java:134) > > > at > > > > > > > > > org.apache.ambari.server.actionmanager.ActionScheduler.run(ActionScheduler.java:84) > > > at java.lang.Thread.run(Thread.java:662) > > > 21:03:50,687 WARN ActionScheduler:136 - Could not schedule host role { > > > "commandType" : "EXECUTION_COMMAND", > > > "clusterName" : "second", > > > "taskId" : 5, > > > "commandId" : "2-1", > > > "hostname" : "192.168.1.1", > > > "role" : "DATANODE", > > > "hostLevelParams" : { > > > "jdk_location" : "http://192.168.1.1:8080/resources/", > > > "repo_info" : "[{\"baseUrl\":\" > > > http://public-repo-1.hortonworks.com/HDP-1.2.0/repos/centos6\ > > > > > > > > > ",\"osType\":\"redhat6\",\"repoId\":\"HDP-1.2.0\",\"repoName\":\"HDP\"},{\"osType\":\"redhat6\",\"repoId\":\"HDP-epel\",\"repoName\":\"HDP-epel\",\"mirrorsList\":\" > > > > > > > > > http://mirrors.fedoraproject.org/mirrorlist?repo\\u003depel-6\\u0026arch\\u003d$basearch\ > > > "}]" > > > }, > > > "roleParams" : { }, > > > "roleCommand" : "START", > > > "clusterHostInfo" : { > > > "ambari_db_server_host" : [ "192.168.1.1" ], > > > "namenode_host" : [ "192.168.1.1" ], > > > "slave_hosts" : [ "192.168.1.1" ] > > > }, > > > > > > -------------------------------------------------- > > > > > > ---------- Forwarded message ---------- > > > From: jinwei zhu <[email protected]> > > > Date: 2013/1/19 > > > Subject: Re: about AMBARI-666 ambari-web not login > > > To: [email protected] > > > > > > > > > Thx ,Yusaku. > > > I have installed a cluster successfully, but it seems to be that some > > > services of the cluster alwalys fail to start. For example, nameNode > > > service , here is it's log: > > > ERROR ServiceComponentHostImpl:639 - Can't handle > > ServiceComponentHostEvent > > > event at current state, serviceComponentName=NAMENODE, > > > > > > > > > > > > > > > 2013/1/16 Yusaku Sako <[email protected]> > > > > > > > Hi Jinwei, > > > > > > > > Great to hear that you were able to successfully install a cluster. > > > > API support to delete a cluster is something that we will be working > on > > > > soon. > > > > See https://issues.apache.org/jira/browse/AMBARI-1194. > > > > > > > > To delete the cluster on 1.2.0 RC0, you can issue "ambari-server > reset" > > > > from the command line. > > > > This clears all database entries made. > > > > You would need to manually stop all Java processes, perform yum erase > > to > > > > uninstall packages, etc., on the hosts that you installed the cluster > > on. > > > > > > > > We will be updating developer documentation in the next few days on > the > > > > Wiki. > > > > > > > > Thanks for your patience. > > > > > > > > Yusaku > > > > > > > > > > > > On Tue, Jan 15, 2013 at 2:30 AM, jinwei zhu <[email protected]> > > > wrote: > > > > > > > > > Thx, Yusaku, I have install release 1.2.0-rc0 , I have successfully > > > > created > > > > > a cluster with some hosts and services, but I can not find any page > > > that > > > > > could delete the cluster. Is there any method to delete the > cluster ? > > > > > By the way, is there some docs ( like ambari666 docs in this > wiki " > > > > > > > > > > > > > > > https://cwiki.apache.org/confluence/display/AMBARI/Ambari-666+Development" > > > > > ) for developers to run and to debug the code ? > > > > > > > > > > > > > > > 2013/1/14 Yusaku Sako <[email protected]> > > > > > > > > > > > We will call for a vote on a 1.2.0 release candidate tomorrow > > > (Monday). > > > > > > We will send out a link to the release branch as well as > > step-by-step > > > > > > instructions on how to deploy a cluster using Ambari. > > > > > > Thanks for your patience. > > > > > > > > > > > > Yusaku > > > > > > > > > > > > On Sun, Jan 13, 2013 at 7:41 PM, jinwei zhu < > [email protected] > > > > > > > > wrote: > > > > > > > > > > > > > Hi,Yusaku, I see you have committed many codes into git trunk > > > > > repository > > > > > > ( > > > > > > > git://git.apache.org/ambari.git) recently , could I use trunk > > > code > > > > to > > > > > > run > > > > > > > ambari? will it work? > > > > > > > By the way, this week , you will release 1.2 ,right? if yes, > > which > > > > day > > > > > > will > > > > > > > it release? > > > > > > > > > > > > > > Thx. > > > > > > > > > > > > > > 2013/1/11 Yusaku Sako <[email protected]> > > > > > > > > > > > > > > > Hi Jinwei, > > > > > > > > > > > > > > > > The way you are making a POST call to create a cluster looks > > > > correct. > > > > > > > > A successful POST results in HTTP Status Code 201 > ("Created"). > > > > > > > > Note that this only creates a Cluster resource, but there are > > > many > > > > > > other > > > > > > > > calls you would need to make in order to install a cluster > (for > > > > > > example, > > > > > > > > registering hosts to the cluster, creating services and its > > > > > components, > > > > > > > > assigning these components to specified hosts, creating and > > > > applying > > > > > > > > configurations to the services, initiating installation of > the > > > > > > services, > > > > > > > > starting the services, etc). > > > > > > > > > > > > > > > > We are only days away from having a release candidate of > Ambari > > > > 1.2.0 > > > > > > > > ready. > > > > > > > > I recommend you wait for the release candidate so that you > will > > > be > > > > > able > > > > > > > to > > > > > > > > try installing a cluster via Ambari Web and observe all the > API > > > > calls > > > > > > it > > > > > > > > makes. > > > > > > > > > > > > > > > > Thanks! > > > > > > > > Yusaku > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Jan 10, 2013 at 7:07 AM, jinwei zhu < > > > [email protected] > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > HI, Yusaku, since ambari web ui has not worked well, I am > > > trying > > > > > to > > > > > > > use > > > > > > > > > "httpclient" to send request by rest service , and the > > request > > > is > > > > > to > > > > > > > > create > > > > > > > > > a cluster. > > > > > > > > > Here is the java code : > > > > > > > > > String restURL=" > > > > > > http://myhostname:8080/api/clusters/mycluster" > > > > > > > > > HttpClient client=new HttpClient(); > > > > > > > > > PostMethod postMethod = new PostMethod(restURL); > > > > > > > > > String body="{\"hostname\":\"myhostname\"}"; > > > > > > > > > postMethod.setRequestBody(body); > > > > > > > > > int statusCode = client.executeMethod(postMethod); > > > > > > > > > > > > System.out.println(postMethod.getResponseBodyAsString()); > > > > > > > > > > > > > > > > > > after running this code, I try getMethod using that > restURL, > > > the > > > > > rest > > > > > > > > > server could return the cluster infomation, but only a > litter > > > > > > > infomation. > > > > > > > > > so , I doubt if the http body content is enough and if I > > > missed > > > > > some > > > > > > > > steps > > > > > > > > > before calling that restURL . Please correct me , thanks. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2013/1/7 Yusaku Sako <[email protected]> > > > > > > > > > > > > > > > > > >> Hi Peicheng, > > > > > > > > >> > > > > > > > > >> The documentation that you referred is outdated and you > will > > > not > > > > > be > > > > > > > > >> able to install a cluster if you simply follow it. Sorry > > > about > > > > > > > > >> that... > > > > > > > > >> AMBARI-666 was a development branch for the new, > unreleased > > > > 1.2.0 > > > > > > > > >> version of Ambari. The code from this branch was merged > to > > > > trunk > > > > > > > > >> about a month ago. > > > > > > > > >> We will be releasing 1.2.0 shortly (in a week or so) along > > > with > > > > > > > > >> updated documentation. > > > > > > > > >> Please try again when 1.2.0 is released. > > > > > > > > >> > > > > > > > > >> Thanks for your patience! > > > > > > > > >> > > > > > > > > >> Yusaku > > > > > > > > >> > > > > > > > > >> On Sat, Jan 5, 2013 at 6:32 AM, peicheng Liao < > > > > > [email protected]> > > > > > > > > >> wrote: > > > > > > > > >> > Hi all: > > > > > > > > >> > > > > > > > > > >> > I try to install Ambari-666 using the docs. > > > > > > > > >> > > > > > > > > > >> > Ambari-666 Development - Apache Ambari (Incubating) - > > Apache > > > > > > > Software > > > > > > > > >> Foundation > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > https://cwiki.apache.org/confluence/display/AMBARI/Ambari-666+Development > > > > > > > > >> > > > > > > > > > >> > I start my ambari-server , and I can it use > > > > > > > > >> > > > > > > > > > >> > http://am1:8080/api/check > > > > > > > > >> > staus return "RUNNING" > > > > > > > > >> > > > > > > > > > >> > Next I start ambari-web , > > > > > > > > >> > > > > > > > > > >> > #cd ambari-web > > > > > > > > >> > # brunch w > > > > > > > > >> > but not thing happend > > > > > > > > >> > so I turn on the config.coffee > > > > > > > > >> > > > > > > > > > >> > server: > > > > > > > > >> > port: 3333 > > > > > > > > >> > base: '/' > > > > > > > > >> > run: no > > > > > > > > >> > > > > > > > > > >> > to > > > > > > > > >> > server: > > > > > > > > >> > port: 3333 > > > > > > > > >> > base: '/' > > > > > > > > >> > run: yes > > > > > > > > >> > > > > > > > > > >> > 05 Jan 09:02:16 - info: application started on > > > > > > > http://localhost:3333/ > > > > > > > > >> > > > > > > > > > >> > ===== > > > > > > > > >> > so I try to login the web ( user "admin" password > "admin" > > ), > > > > > > > > >> > I found it sent request to > > > http://am1:3333/api/v1/users/admin > > > > > > > > >> > (am1 is my server hostname,i can connect am1) > > > > > > > > >> > When I try to open the url to check , It return > > > > > > > > >> > "Cannot GET /api/v1/users/admin " > > > > > > > > >> > > > > > > > > > >> > What kind mistake with me ? > > > > > > > > >> > Thank for your help ~ > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > <http://hortonworks.com/download/> > > >
