我想从远程计算机运行oozie工作流,而我的配置文件存在于本地计算机上。你能帮助我如何实现这个目标吗?
我尝试了下面的方法,但它没有用:
ssh user@remote_host "oozie job -run -config" < config.properties
给出错误
Invalid sub-command: Missing argument for option: config
use 'help [sub-command]' for help details
答案 0 :(得分:0)
您可以使用Meteor.methods({
'c2b': function(recipientsNumber, recipientsAmount, payer) {
console.log("recipientsNumber: " + recipientsNumber);
console.log("recipientsAmount: " + recipientsAmount);
console.log("payer: " + payer);
var postData = {
params: {
"payer": payer,
"recipient": recipientsNumber,
"amount": recipientsAmount
}
}
HTTP.call('POST', 'http://2117c3a8.ngrok.io/TalkGateLane/escrow/c2b.php', {
headers: {
apiKey: '1c1f0df78c3b'
},
params: postData
},
function(error, response) {
if (error) {
console.log(error);
}
if (response) {
console.log(response);
}
}
);
}
});
在配置文件中传递属性,例如:
-D
如果您不提供,Oozie将从系统属性中读取特定值。