Comments (4)
应该是文件路径挂在了其它地方导致jstack去调取文件按原来路径,导致了无法打开调试的socket文件。
from docker-debug.
我连java都没法执行,这个能想办法解决吗?
from docker-debug.
@xiongjy2104
可以尝试把原容器的 PATH 继承过来,你用的镜像是哪个呢?我试试效果,如果可以我加个参数来继承环境变量。
from docker-debug.
我用的s1mplecc/spark-hadoop:3,或者我把compose文件放上来你看看。我自己尝试添加JAVA_HOME映射也不行。诉求一个是java命令,另一个是里面的spark-shell命令能运行。
version: '2'
services:
spark:
#image: docker.io/bitnami/spark:3
image: s1mplecc/spark-hadoop:3
hostname: master
privileged: true
ipc: shareable
environment:
- SPARK_MODE=master
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
- JAVA_HOME=/opt/bitnami/java
volumes:
- /d/docker/spark/master/opt/share:/opt/share:rshared
- /d/docker/spark/master/opt:/opt:rshared
ports:
- '8080:8080'
- '4040:4040'
spark-worker-1:
image: s1mplecc/spark-hadoop:3
hostname: worker1
privileged: true
environment:
- SPARK_MODE=worker
- SPARK_MASTER_URL=spark://master:7077
- SPARK_WORKER_MEMORY=1G
- SPARK_WORKER_CORES=1
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
- JAVA_HOME=/opt/bitnami/java
volumes:
- /d/docker/spark/worker1/opt/share:/opt/share
ports:
- '8081:8081'
spark-worker-2:
image: s1mplecc/spark-hadoop:3
hostname: worker2
privileged: true
environment:
- SPARK_MODE=worker
- SPARK_MASTER_URL=spark://master:7077
- SPARK_WORKER_MEMORY=1G
- SPARK_WORKER_CORES=1
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
- JAVA_HOME=/opt/bitnami/java
volumes:
- /d/docker/spark/worker2/opt/share:/opt/share
ports:
- '8082:8081'
from docker-debug.
Related Issues (11)
- 文件系统没有挂载吗 HOT 3
- 编译失败 HOT 1
- brew install failed HOT 2
- 无法调试 HOT 15
- 是否可以提供webshell支持,如果只提供命令行,这个工具的意义不是特别大。如果我理解有问题,请指正我。 HOT 1
- container name should use container id HOT 1
- Some lib are missing in the go.mod HOT 2
- not find container HOT 4
- Invalid mount config for type "bind" HOT 6
- docker client版本太高了,请问哪个版本支持docker 18.09的 HOT 2
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-debug.