You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Masahiro Tanaka <pl...@gmail.com> on 2016/02/21 01:24:34 UTC

Review Request 43805: AMBARI-15124: Can't install ambari-server in Docker environment

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43805/
-----------------------------------------------------------

Review request for Ambari and jun aoki.


Repository: ambari


Description
-------

I tried to install and run ambari-server with Docker referring to https://cwiki.apache.org/confluence/display/AMBARI/Development+in+Docker#DevelopmentinDocker-CreateDockerImage then I got an error.

```
$ sudo docker rm ambari1
$ sudo docker run --privileged -t -p 80:80 -p 5005:5005 -p 8080:8080 -h node1.mydomain.com --name ambari1 -v $(pwd):/tmp/ambari ambari/build /tmp/ambari-build-docker/bin/ambaribuild.py server -b

...(snip)...

Traceback (most recent call last):
  File "/tmp/ambari-build-docker/bin/ambaribuild.py", line 239, in <module>
    retcode = install_ambari_server()
  File "/tmp/ambari-build-docker/bin/ambaribuild.py", line 52, in install_ambari_server
    cwd="/tmp/ambari/ambari-server/target/rpm/ambari-server/RPMS/noarch")
  File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1238, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory: '/tmp/ambari/ambari-server/target/rpm/ambari-server/RPMS/noarch'
```

I think ambari-server-*.rpm is x86_64, and is in ambari-server/target/rpm/ambari-server/RPMS/x86_64


Diffs
-----

  dev-support/docker/docker/bin/ambaribuild.py 50db0e2 

Diff: https://reviews.apache.org/r/43805/diff/


Testing
-------

Manually testing done


Thanks,

Masahiro Tanaka


Re: Review Request 43805: AMBARI-15124: Can't install ambari-server in Docker environment

Posted by jun aoki <ju...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43805/#review120219
-----------------------------------------------------------


Ship it!





dev-support/docker/docker/bin/ambaribuild.py (line 50)
<https://reviews.apache.org/r/43805/#comment181646>

    Indeed, it has been changed to x86_64. Good catch!


- jun aoki


On Feb. 21, 2016, 12:24 a.m., Masahiro Tanaka wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43805/
> -----------------------------------------------------------
> 
> (Updated Feb. 21, 2016, 12:24 a.m.)
> 
> 
> Review request for Ambari and jun aoki.
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> I tried to install and run ambari-server with Docker referring to https://cwiki.apache.org/confluence/display/AMBARI/Development+in+Docker#DevelopmentinDocker-CreateDockerImage then I got an error.
> 
> ```
> $ sudo docker rm ambari1
> $ sudo docker run --privileged -t -p 80:80 -p 5005:5005 -p 8080:8080 -h node1.mydomain.com --name ambari1 -v $(pwd):/tmp/ambari ambari/build /tmp/ambari-build-docker/bin/ambaribuild.py server -b
> 
> ...(snip)...
> 
> Traceback (most recent call last):
>   File "/tmp/ambari-build-docker/bin/ambaribuild.py", line 239, in <module>
>     retcode = install_ambari_server()
>   File "/tmp/ambari-build-docker/bin/ambaribuild.py", line 52, in install_ambari_server
>     cwd="/tmp/ambari/ambari-server/target/rpm/ambari-server/RPMS/noarch")
>   File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
>     errread, errwrite)
>   File "/usr/lib64/python2.6/subprocess.py", line 1238, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory: '/tmp/ambari/ambari-server/target/rpm/ambari-server/RPMS/noarch'
> ```
> 
> I think ambari-server-*.rpm is x86_64, and is in ambari-server/target/rpm/ambari-server/RPMS/x86_64
> 
> 
> Diffs
> -----
> 
>   dev-support/docker/docker/bin/ambaribuild.py 50db0e2 
> 
> Diff: https://reviews.apache.org/r/43805/diff/
> 
> 
> Testing
> -------
> 
> Manually testing done
> 
> 
> Thanks,
> 
> Masahiro Tanaka
> 
>


Re: Review Request 43805: AMBARI-15124: Can't install ambari-server in Docker environment

Posted by Masahiro Tanaka <pl...@gmail.com>.

> On 2月 21, 2016, 11:39 p.m., Matt wrote:
> > Ship It!

Thank you for reviewing!


- Masahiro


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43805/#review120081
-----------------------------------------------------------


On 2月 21, 2016, 12:24 a.m., Masahiro Tanaka wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43805/
> -----------------------------------------------------------
> 
> (Updated 2月 21, 2016, 12:24 a.m.)
> 
> 
> Review request for Ambari and jun aoki.
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> I tried to install and run ambari-server with Docker referring to https://cwiki.apache.org/confluence/display/AMBARI/Development+in+Docker#DevelopmentinDocker-CreateDockerImage then I got an error.
> 
> ```
> $ sudo docker rm ambari1
> $ sudo docker run --privileged -t -p 80:80 -p 5005:5005 -p 8080:8080 -h node1.mydomain.com --name ambari1 -v $(pwd):/tmp/ambari ambari/build /tmp/ambari-build-docker/bin/ambaribuild.py server -b
> 
> ...(snip)...
> 
> Traceback (most recent call last):
>   File "/tmp/ambari-build-docker/bin/ambaribuild.py", line 239, in <module>
>     retcode = install_ambari_server()
>   File "/tmp/ambari-build-docker/bin/ambaribuild.py", line 52, in install_ambari_server
>     cwd="/tmp/ambari/ambari-server/target/rpm/ambari-server/RPMS/noarch")
>   File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
>     errread, errwrite)
>   File "/usr/lib64/python2.6/subprocess.py", line 1238, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory: '/tmp/ambari/ambari-server/target/rpm/ambari-server/RPMS/noarch'
> ```
> 
> I think ambari-server-*.rpm is x86_64, and is in ambari-server/target/rpm/ambari-server/RPMS/x86_64
> 
> 
> Diffs
> -----
> 
>   dev-support/docker/docker/bin/ambaribuild.py 50db0e2 
> 
> Diff: https://reviews.apache.org/r/43805/diff/
> 
> 
> Testing
> -------
> 
> Manually testing done
> 
> 
> Thanks,
> 
> Masahiro Tanaka
> 
>


Re: Review Request 43805: AMBARI-15124: Can't install ambari-server in Docker environment

Posted by Matt <mi...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43805/#review120081
-----------------------------------------------------------


Ship it!




Ship It!

- Matt


On Feb. 20, 2016, 4:24 p.m., Masahiro Tanaka wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43805/
> -----------------------------------------------------------
> 
> (Updated Feb. 20, 2016, 4:24 p.m.)
> 
> 
> Review request for Ambari and jun aoki.
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> I tried to install and run ambari-server with Docker referring to https://cwiki.apache.org/confluence/display/AMBARI/Development+in+Docker#DevelopmentinDocker-CreateDockerImage then I got an error.
> 
> ```
> $ sudo docker rm ambari1
> $ sudo docker run --privileged -t -p 80:80 -p 5005:5005 -p 8080:8080 -h node1.mydomain.com --name ambari1 -v $(pwd):/tmp/ambari ambari/build /tmp/ambari-build-docker/bin/ambaribuild.py server -b
> 
> ...(snip)...
> 
> Traceback (most recent call last):
>   File "/tmp/ambari-build-docker/bin/ambaribuild.py", line 239, in <module>
>     retcode = install_ambari_server()
>   File "/tmp/ambari-build-docker/bin/ambaribuild.py", line 52, in install_ambari_server
>     cwd="/tmp/ambari/ambari-server/target/rpm/ambari-server/RPMS/noarch")
>   File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
>     errread, errwrite)
>   File "/usr/lib64/python2.6/subprocess.py", line 1238, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory: '/tmp/ambari/ambari-server/target/rpm/ambari-server/RPMS/noarch'
> ```
> 
> I think ambari-server-*.rpm is x86_64, and is in ambari-server/target/rpm/ambari-server/RPMS/x86_64
> 
> 
> Diffs
> -----
> 
>   dev-support/docker/docker/bin/ambaribuild.py 50db0e2 
> 
> Diff: https://reviews.apache.org/r/43805/diff/
> 
> 
> Testing
> -------
> 
> Manually testing done
> 
> 
> Thanks,
> 
> Masahiro Tanaka
> 
>