Giter Site home page Giter Site logo

Comments (3)

CristianCantoro avatar CristianCantoro commented on July 21, 2024

Hi,

+1 @labianchin .

I am following the blog post about ambari 1.7.0.

First things first, the one-liner has problems with the command . .amb:

$ curl -Lo .amb j.mp/docker-ambari-170 && . .amb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   173  100   173    0     0     28      0  0:00:06  0:00:06 --:--:--    38
100  4676  100  4676    0     0    395      0  0:00:11  0:00:11 --:--:--  1086
.: no such file or directory: .amb

changing . to source makes it work:

$ curl -Lo .amb j.mp/docker-ambari-170 && source .amb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   173  100   173    0     0    474      0 --:--:-- --:--:-- --:--:--   475
100  4676  100  4676    0     0    723      0  0:00:06  0:00:06 --:--:--  1018

Then there is the even more puzzling error

$ amb-start-cluster 3                                                                                                                     
starting an ambari cluster with: 3 nodes
[DEBUG] docker run -d --dns 127.0.0.1 --entrypoint /usr/local/serf/bin/start-serf-agent.sh -e KEYCHAIN=<my-keychain-email> --name amb0 -h amb0.mycorp.kom sequenceiq/ambari:1.7.0 --tag ambari-server=true
flag provided but not defined: --dns 127.0.0.1 --entrypoint /usr/local/serf/bin/start-serf-agent.sh -e KEYCHAIN

Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

[snip docker run help text]

Error: No such image or container: amb0
amb-start-node:2: AMBARI_SERVER_IP: "AMBARI_SERVER_IP is needed"

But if I copy-paste the command above from the debug line and just plain execute it directly in the shell everything works.

$ docker run -d --dns 127.0.0.1 --entrypoint /usr/local/serf/bin/start-serf-agent.sh -e KEYCHAIN=<my-keychain-email> --name amb0 -h amb0.mycorp.kom sequenceiq/ambari:1.7.0 --tag ambari-server=true
15dfd0c21e19e64e262db08586f437b48adeff6a2246b08769278ef1b74406ec

Then I can execute amb-shell and it works.

from docker-ambari.

matyix avatar matyix commented on July 21, 2024

Hi

Thanks for letting us know - we currently use/support bash only. If you apply the modification for the scripts in order to run on ZSH please feel free to send us the pull request.

Janos

from docker-ambari.

matyix avatar matyix commented on July 21, 2024

Thanks @coderigo for the contribution.

from docker-ambari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.