Giter Site home page Giter Site logo

Comments (6)

mhmxs avatar mhmxs commented on August 22, 2024

It looks like a DNS or other network issue. You should replace j.mp/docker-ambari to https://raw.githubusercontent.com/sequenceiq/docker-ambari/master/ambari-functions.

from docker-ambari.

zongwan avatar zongwan commented on August 22, 2024
curl -Lo .amb https://raw.githubusercontent.com/sequenceiq/docker-ambari/master/ambari-functions && . .amb && amb-deploy-cluster
docker@boot2docker:~/git/docker-ambari$ curl -Lo .amb https://raw.githubusercontent.com/sequenceiq/docker-ambari/master/ambari-functions && . .amb && amb-deploy-cluster
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5306  100  5306    0     0   8322      0 --:--:-- --:--:-- --:--:--  8435
-sh: .amb: line 20: syntax error: bad function name

I don't know what's happen..

from docker-ambari.

mhmxs avatar mhmxs commented on August 22, 2024

The default shell in boot2docker VM is sh, which doesn't support functions as well.

docker@boot2docker:~$ ps -p $$
  PID TTY          TIME CMD
  19277 pts/1    00:00:00 sh

To use the ambari-functions you have to execute it on Bash. If you are a mac user it's quite easy, because the default shell is bash. Just source ambari-functions locally. You only need to take care a routing rule, because otherwise the ambari-functions couldn't connect to the docker containers inside the VM.

sudo route add -net 172.17.0.0/16 192.168.59.103

If you are on Windows, you have to install bash first

tce-load -wi bash
bash

from docker-ambari.

zongwan avatar zongwan commented on August 22, 2024

I see.
Thanks a lot.

It works fine in vagrant-opensuse12.3

from docker-ambari.

qinzhaokun avatar qinzhaokun commented on August 22, 2024

@mhmxs Hi, I am a user in windows. I follow your step to install bash firstly, But it not works when using:

tce-load -wi bash

it shows: bash: tce-load: command not found
I don't know where is wrong?

from docker-ambari.

mhmxs avatar mhmxs commented on August 22, 2024

Hi @qinzhaokun, tce-load is the package manager of tiny core linux, so if you want to use ambari-functions, you have to log into the boot2docker machine boot2docker ssh, than install bash tce-load -wi bash && bash (you could check running shell version via ps -ef | grep $$ | grep -v grep | head -1). If you are done you should clone the repo into the virtual machine and source ambari-functions.

Sorry but i don't have any experience on Windows, maybe some bash implementation also works as well.

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.