简体   繁体   English

使用流程命令通过Spring MVC执行hadoop jar

[英]Execute hadoop jar through Spring MVC using process command

I am new to Java and currently working on a project where a Hadoop job needs to be triggered from Spring MVC application. 我是Java新手,目前正在从事需要从Spring MVC应用程序触发Hadoop作业的项目。 The manager asked me to use "process" for which I have no clue. 经理要求我使用我不知道的“过程”。 I have written a shell script to trigger the job but the client wants it to be triggered directly from the Spring MVC app so that log can be written in local file system. 我已经编写了一个Shell脚本来触发作业,但是客户端希望直接从Spring MVC应用程序中触发它,以便可以将日志写入本地文件系统中。

Can anyone help me how to trigger a Hadoop jar (more specifically Yarn command with different arguments) to be triggered in edge node through Java process? 谁能帮助我如何通过Java流程在边缘节点中触发Hadoop jar(更具体地讲,Yarn命令具有不同的参数)?

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

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