Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3601A200D15 for ; Thu, 5 Oct 2017 22:00:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 34F8F1609E2; Thu, 5 Oct 2017 20:00:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 55FCF1609D2 for ; Thu, 5 Oct 2017 22:00:53 +0200 (CEST) Received: (qmail 31200 invoked by uid 500); 5 Oct 2017 20:00:52 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 31188 invoked by uid 99); 5 Oct 2017 20:00:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Oct 2017 20:00:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6C0D3182BA4 for ; Thu, 5 Oct 2017 20:00:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 022RazCl44Yu for ; Thu, 5 Oct 2017 20:00:49 +0000 (UTC) Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 60E3F5FBEB for ; Thu, 5 Oct 2017 20:00:49 +0000 (UTC) Received: by mail-vk0-f54.google.com with SMTP id d12so8665368vkf.1 for ; Thu, 05 Oct 2017 13:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=3jsUoTOXo3/QH0A51qqteU+anBxdkRCSKuCIzdugAjE=; b=cDecEhKrhHqnRo8KUTmwU05MaJ1qsf9ERzRxXZ6YSAJMMElzgeku7inPXg+NmbT+HK xvmMvro28IZhYYSqMyp0QEPmow48EM2VOHrpq0ClVVg8/4Ow56YoY/jkMp8PctWDFeCk qM26gyH+62MyfaqZX18OCUMD5qq1It+BrGLXSpvbmBgMg1Ahw8o96BOvDsfXf29SLLRM yuZItHrqaJFTDzcwqtc/HgQ5NsFk3nX+4c/6QQQ2cvP6lJY/89kER7g3KMMGfN1FP1y4 KNu7D3hmP1qiTIIZMUyQ4qNa/J9swQpCClgEqn2Zslmh9UViBYrcroAcP9YIqJUzBsKu Yh1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=3jsUoTOXo3/QH0A51qqteU+anBxdkRCSKuCIzdugAjE=; b=d1ir/cRBhYSPTf+KjxrMV6Ou9t5NN4/KxC3mtlZOv2pxpRcsK/3JdFdKKIIMsx/qGE Ey29MQU2OA3GC1R+hA2KCwHKgy8VmKGu6bov3jHO7RDbOUAgInnUXF6sc0de0EWJtuhq /AqTgFeY9D1WGpJpoUYMbmbepLJneT5vCgym8he6Star92rz42dcRpwQgqOfbMn67TVv DDssCXQ5ir0iiUzPd9MYvEJHea/tDotpkXaR1KqmXeVo2ZD4GlXV8xpeKM2j+037Cwe2 7MHguh/ocAEHiZdJ2/CZTlbHmwlD60tzVXmKSfkY02Oh3juPLiN7+3MXeozQHV9vKPH8 UeWw== X-Gm-Message-State: AMCzsaXUY2l+pm30g37orBuQ5R/udrF3iL4VjyPRjs5htVZxyllk3tbX GOeJ8Bb1qClnwOV4qP925Cw7WkE51+TZ7FShL+Ul9J5s X-Google-Smtp-Source: AOwi7QCRMFB/NquclRIZX6P249t3FkuTxDbxJQTHM+1swsPTdxNojEnhX7ADMyWX164jbTiGEGEjBehuqUZhjyNuRNs= X-Received: by 10.31.155.139 with SMTP id d133mr36981vke.94.1507233647881; Thu, 05 Oct 2017 13:00:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.40.37 with HTTP; Thu, 5 Oct 2017 13:00:17 -0700 (PDT) In-Reply-To: References: From: Brian Long Date: Thu, 5 Oct 2017 16:00:17 -0400 Message-ID: Subject: Re: Issue running Brooklyn in Vagrant To: dev@brooklyn.apache.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable archived-at: Thu, 05 Oct 2017 20:00:54 -0000 Hi all, Sorry for the spam -- I'm just getting used to the plain text mailing list. If you prefer HTML formatting, I've uploaded my message here: https://gist.github.com/b-long/9156a3696d9c30c14a092fe4b0a01381 Thanks, b-long On Thu, Oct 5, 2017 at 3:12 PM, Brian Long wrote: > Hi Thomas, > > Sorry for my delayed response and thanks for your all of your work. > > Vagrant related > > I see that the brooklyn-dist PR that you referenced [0] was indeed merged > and I agree it appears that it would fix the symlink issue I=E2=80=99ve o= bserved. > However, when I download the Vagrant tar archive, I=E2=80=99m still getti= ng the same > MD5 sum that was produced back on September 27th: > 331ab054e08a0b8c0480621b2f2adfe4 . To download the Vagrant archive, I=E2= =80=99m > using the command found at https://brooklyn.apache.org/#get-started : > curl -SL --output apache-brooklyn-0.12.0-vagrant.tar.gz > "https://www.apache.org/dyn/closer.lua?action=3Ddownload&filename=3Dbrook= lyn/apache-brooklyn-0.12.0/apache-brooklyn-0.12.0-vagrant.tar.gz" > > So, this yields a new question about the update process for mirrors. Is i= t > working? Or perhaps I didn=E2=80=99t understand the release model with > brooklyn-dist. > > Anyhow, I still need to apply the fix I mentioned previously (linking and > restarting the service after vagrant up) [1]. Unfortunately, I=E2=80=99m = still > experiencing issues with the bento/centos-7.3 boxes too, so I=E2=80=99m c= ontinuing > to change the box variable to geerlingguy/centos7. I appreciate your help= in > debugging this. You referenced an error message with the text =E2=80=9CCo= uld not > find the X.Org or XFree86 Window System, skipping.=E2=80=9D . Is this exp= ected to > work on macOS? Is there a simple method of testing the integration? > > My approach is still working for me, and once the service is running I ca= n > access Brooklyn from my host, at http://localhost:8081 . > > Deployment related > > After getting Brooklyn started, the thing I=E2=80=99m eager to use more t= han > anything is Ambari. Here are the steps I=E2=80=99ve done, attempting depl= oyment: > > # Install the Brooklyn command line tool > brew install apache-brooklyn-cli > > # Authenticate to Brooklyn > br login http://localhost:8081/ > > # Get the Brooklyn Ambari repo > git clone https://github.com/brooklyncentral/brooklyn-ambari.git > > cd brooklyn-ambari > > # Add Ambari to Brooklyn's catalog > br add-catalog catalog.bom > > Next, in AWS, I had to establish my Security Group. I first created a > security group called test-ambari and opened ports 8080 according to the > brooklyn-ambari README. This failed, reasonably, since I know Ambari need= s > 8440 for coordinating agent nodes. In a third or fourth iteration, I saw = an > error that referenced port 22. At that point, I decided to just open thin= gs > up a lot wider, in hopes that the networking would get everything working > properly. My final Security Group, with speculative rules for TCP > connections from anywhere is the following: > > * 8080 # The Ambari web UI > * 24007 # I saw mention of GlusterFS in the logs > * 24008 # Again, for GlusterFS > * 8441 # Ambari Registration and Heartbeat Port > * 22 # It seems the Brooklyn control machine has to SSH to Ambari nod= es > * 8440 # Ambari Agent orchestration > * 2181 # ZooKeeper > > Next, from the Brooklyn web UI, I navigate to the Composer / editor and > enter this YAML: > > location: > jclouds:aws-ec2: > # edit these to use your credential (or delete if credentials specifi= ed > in brooklyn.properties) > identity: > credential: > > region: us-east-2 > > # we want Ubuntu, with a lot of RAM > osFamily: ubuntu > minRam: 8gb > > # set up this user and password (default is to authorize a public key= ) > user: sample > password: s4mpl3 > > services: > - type: ambari-cluster-application > name: Ambari Cluster > brooklyn.config: > securityGroup: test-ambari > initialSize: 3 > services: > - FALCON > - FLUME > - GANGLIA > - HBASE > - HDFS > - KAFKA > - KERBEROS > - MAPREDUCE2 > - OOZIE > - PIG > - SLIDER > - SQOOP > - YARN > - ZOOKEEPER > > After clicking the Deploy button, 4 instances are created in AWS. Here=E2= =80=99s a > screenshot: > https://drive.google.com/file/d/0B91hmcyKP8SzLTRHcTdTZFkzWG8/view > > I can watch, in the Brooklyn UI, that there is communication between the > Brooklyn Vagrant VM and these EC2 hosts. Screenshot: > https://drive.google.com/file/d/0B91hmcyKP8SzR0R2bFFDYWhCUk0/view > > Eventually, all 3 Ambari agent nodes seem to be in a happy state. > Unfortunately, the Ambari Server is not: > > Screenshot: > https://drive.google.com/file/d/0B91hmcyKP8SzZzZ1XzF1UmZQZkU/view > > Screenshot: > https://drive.google.com/file/d/0B91hmcyKP8SzYkQ4N1dXeVVnUEU/view > > When I attempt to open port 8080 (Ambari web UI) on the Ambari server, I= =E2=80=99m > receiving an error. Screenshot: > https://drive.google.com/file/d/0B91hmcyKP8SzUkF2MGJWeFNCNDQ/view > > I know that at one point, things were working to a greater degree than I = am > seeing now. Unfortunately, I don=E2=80=99t recall how I managed to accomp= lish that > (maybe using the newer BOM file from this PR [2] or perhaps it was the BY= ON > / Vagrant nodes). I was, at one point, able to login to Ambari. I found i= t > really great that there was a Brooklyn generated password for the service= . > As a last ditch effort for today, I did try the former on AWS and didn=E2= =80=99t > have success. > > Wrapping up > > My team and I need move quickly, and unfortunately, if I can=E2=80=99t ge= t things > working with Brooklyn soon - I=E2=80=99ll need to change my approach. > > I think the Brooklyn team has a very serious opportunity if you can suppo= rt > Ambari. I say that, since I=E2=80=99m not totally satisfied with the job = that > Hortonworks is doing supporting FLOSS deployments of the Hadoop ecosystem > and Ambari. Presumably, if you can support the baseline, you=E2=80=99ll i= nherit a > variety of other services. > > Furthermore, since Brooklyn has first-class support for load balancing an= d > resizing, Hadoop users get serious value in being able to scale workloads= . > The possibility of developing / testing distributed workloads on local VM= s > is another value not so well supported in the open source. > > Lastly, if we could get Apache Ranger working (via an Ambari + Brooklyn > configuration), then Brooklyn could provide a very rich feature set for > securing clusters, data, and custom endpoints. Perhaps some other Apache > folks would be willing to help with this integration? > > Thanks for all your help, > b-long > > 0: https://github.com/apache/brooklyn-dist/pull/111 > 1: https://gist.github.com/b-long/ab096f45a7867574b74f01adff9f6c22 > 2: https://github.com/brooklyncentral/brooklyn-ambari/pull/126