Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A4B67E89C for ; Thu, 10 Jan 2013 15:07:39 +0000 (UTC) Received: (qmail 10665 invoked by uid 500); 10 Jan 2013 15:07:39 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 10640 invoked by uid 500); 10 Jan 2013 15:07:39 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 10624 invoked by uid 99); 10 Jan 2013 15:07:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2013 15:07:39 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zhujinwei09@gmail.com designates 209.85.223.170 as permitted sender) Received: from [209.85.223.170] (HELO mail-ie0-f170.google.com) (209.85.223.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2013 15:07:32 +0000 Received: by mail-ie0-f170.google.com with SMTP id k10so880044iea.1 for ; Thu, 10 Jan 2013 07:07:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=txdjAejhO2feUzcfKdCL9OeNboNqOXs7O90Wr5/DZHc=; b=rO/PEeSuQcplfBfaYH4zjWlrKSzJLRryepoLtWEIs1WibPRXFk4CXNuLpulNaG98mw uezliIsYDCJgVCG7b57gP8jiIO2vB0XoZhe6SBeQR/s1XGuBIxVZHVaOw/wEaggo+xq5 qjf0WdN0UF/OXB+ExqxKsftxaGqAOd08x+61RxcHNFX69un8Lfhd1L2agiA8pWKjgLQi I5QaAgH7JEp7dz07xXAFTZVqYoPjUoOfZbP112q2BUSawAOFiXvgngYR18MMZ7odqX1R rYCNOsZ8Qkl4d2IHDOzWIYBV3cLBF5cZ1iOybzPSQo08MlcJHWS37tUYl/ikH+MI0Fkr ak1Q== MIME-Version: 1.0 X-Received: by 10.50.187.165 with SMTP id ft5mr6099323igc.12.1357830431232; Thu, 10 Jan 2013 07:07:11 -0800 (PST) Received: by 10.42.69.16 with HTTP; Thu, 10 Jan 2013 07:07:11 -0800 (PST) In-Reply-To: References: Date: Thu, 10 Jan 2013 23:07:11 +0800 Message-ID: Subject: Re: about AMBARI-666 ambari-web not login From: jinwei zhu To: ambari-user@incubator.apache.org, ambari-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=14dae934102784d2e204d2f088f2 X-Virus-Checked: Checked by ClamAV on apache.org --14dae934102784d2e204d2f088f2 Content-Type: text/plain; charset=ISO-8859-1 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 > 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 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 ~ > --14dae934102784d2e204d2f088f2--