guoweiM commented on a change in pull request #10256: [FLINK-14467][runtime]
Let MesosJobClusterEntrypoint use user code class loader
URL: https://github.com/apache/flink/pull/10256#discussion_r350694319
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/clusterframework/overlays/FlinkDistributionOverlay.java
##########
@@ -43,13 +43,14 @@
* possible to bypass this overlay and rely on the normal installation method.
*
* <p>The following files are copied to the container:
- * - flink/bin/
- * - flink/conf/
- * - flink/lib/
+ * - bin/
+ * - conf/
+ * - lib/
+ * - plugins/
*/
public class FlinkDistributionOverlay extends AbstractContainerOverlay {
- static final Path TARGET_ROOT = new Path("flink");
+ static final File TARGET_ROOT = new File(Path.CUR_DIR);
Review comment:
Originally `FlinkDistributionOverlay` uses the `TARGET_ROOT` to set the
`ENV_FLINK_HOME_DIR`. But if the `Path TARGET_ROOT = new Path(Path.CUR_DIR)`
the `TARGET_ROOT.toString()` is empty.
This will lead `MESOS_TM_CMD`[1] to `/bin/mesos-taskmanager.sh` which can
not launched the TM.
-----
[1] `public static final ConfigOption<String> MESOS_TM_CMD =
key("mesos.resourcemanager.tasks.taskmanager-cmd")
.defaultValue("$FLINK_HOME/bin/mesos-taskmanager.sh"); //
internal`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services