简体   繁体   English

Docker 和 Cloudera 快速入门:如何运行自己的 jar 文件?

[英]Docker and Cloudera Quick start: How to run own jar-file?

I installed Docker container and made next steps:我安装了 Docker 容器并进行了下一步:

docker pull cloudera/quickstart:latest
docker images # note the hash of the image and substitute it below
docker run --privileged=true \
--hostname=quickstart.cloudera \
-t -i ${HASH} \
/usr/bin/docker-quickstart

So, now I have: Cloudera is running.所以,现在我有:Cloudera 正在运行。 But I cant see any local files, so how to load my own files, especially jar-file to run it with Hadoop?但是我看不到任何本地文件,那么如何加载我自己的文件,尤其是 jar-file 以使用 Hadoop 运行它?

You may mount local folder into docker container as it described in official documentation您可以按照官方文档中的描述将本地文件夹挂载到 docker 容器中

docker run -i -t -v /path/to/my/data:/opt/data image docker run -i -t -v /path/to/my/data:/opt/data 镜像

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM