Comments (6)
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.
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.
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.
I see.
Thanks a lot.
It works fine in vagrant-opensuse12.3
from docker-ambari.
@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.
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)
- public-hostname.sh no longer works in non-cloud environment. HOT 1
- Some questions : start, commit, restart... HOT 7
- can't work correctly in cloudbreak HOT 5
- ambari agent failed to start
- Why change SSHD port to 2022? HOT 4
- Best way to deploy with java 8 HOT 3
- hbase not working with blueprints HOT 3
- Install Apache Spark HOT 4
- Is it impossible to install HDP-1.3 stack by sequenceiq/ambari:1.7.0 image? HOT 2
- Best/Recommended upgrade path from Ambari 2.1/HDP 2.3 to Ambari 2.2/HDP 2.4 ? HOT 2
- mysql-connector-java-5.1.17.jar is outdated and doesn't work with RDS HOT 1
- RFI: Where is Dockerfile for sequenceiq/consul HOT 3
- Needs update to Ambari 2.4.1.0 & HDP 2.5 HOT 4
- What SSH private key can be used HOT 1
- Question: How can I access the Ambari UI from outside the host? HOT 3
- How to create Ambari cluster HOT 2
- How to change the value of USE_CONSUL_DNS HOT 1
- Image doesn't contain "which" command HOT 1
- Be able to customize the public ip resolver script
- Changing base url in ambari.repo to use latest version of Ambari doesnt take effect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-ambari.